Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-13-2008, 03:00 PM
Rocker8956
Hill Giant
 
Join Date: Sep 2007
Posts: 117
Default 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()));
}
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:09 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3