EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Quest command: Get Instance Flag (https://www.eqemulator.org/forums/showthread.php?t=26504)

Rocker8956 10-13-2008 03:00 PM

Quest command: Get Instance Flag
 
Below is a quest function for getting the instance flag of a character.

Zone\perlparser.cpp
Above XSRETURN_YES;
Insert
Code:

newXS(strcpy(buf, "getinstflag"), XS__getinstflag, file);
zone\perlparser.cpp
Above /*This is the callback perl will look for to setup the
Insert
Code:

XS(XS__getinstflag);
XS(XS__getinstflag)
{
    dXSARGS;
    if (items != 0)
        Perl_croak(aTHX_ "Usage: getinstflag()");

    int                RETVAL;
    dXSTARG;

        RETVAL = quest_manager.getinstflag();
        XSprePUSH; PUSHu((IV)RETVAL);

        XSRETURN(1);
}

Zone\questmgr.h
Near line 179 Insert
Code:

int getinstflag();
zone\questmgr.cpp
At end Insert
Code:

int QuestManager::getinstflag()
{
        return (database.GetCharInstFlagNum(initiator->CharacterID()));
}


Serryon123 11-05-2009 09:29 AM

where do i copy the codes and insert them at? id like to do this.

Secrets 11-05-2009 12:13 PM

Quote:

Originally Posted by Serryon123 (Post 180839)
where do i copy the codes and insert them at? id like to do this.

This is horribly outdated. The new instancing support does this and much more, read up on the quest sections of the wiki.


All times are GMT -4. The time now is 10:52 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.