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

Closed Thread
 
Thread Tools Display Modes
  #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()));
}
  #2  
Old 11-05-2009, 09:29 AM
Serryon123
Sarnak
 
Join Date: May 2009
Location: nj
Posts: 39
Default

where do i copy the codes and insert them at? id like to do this.
  #3  
Old 11-05-2009, 12:13 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,450
Default

Quote:
Originally Posted by Serryon123 View Post
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.
Closed Thread


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 04:38 PM.


 

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