Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-06-2008, 09:38 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

You can use sub EVENT_KILLED_MERIT and then use quest globals to define the flags. Quest globals are much better IMO, as I think flags may have some issues.

You will need to make sure to enable the NPC for quest globals as well as any NPC who is supposed to see that flag. You do that by changing the qglobal field in the npc_types table from 0 to 1.

Then, you should be able to use something like this on your flagging NPC when it dies:

Code:
sub EVENT_KILLED_MERIT {

  quest::setglobal("myflag",1,5,"F");

}
Then, to check for the flag, you would just use:

Code:
if($qglobals{myflag} == 1);
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
 


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:53 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3