EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   qglobal Flags for players (https://www.eqemulator.org/forums/showthread.php?t=27207)

Joetuul 01-10-2009 07:07 AM

qglobal Flags for players
 
Question is...

would there be a way to have an NPC give all players in a group/raid the flag for something upon death, like access to a zone using..

Code:

quest::setglobal([varname],[value],[options],[duration]);
or
would it be better to have the NPC on death spawn another NPC that you hail and receive the flag? just like how POP flags people for the next tier/zones. using the same code?

Also... which would be the best "options" to use?

Code:

-----------------------------------------
|  value |  npcid  |  player |  zone  |
-----------------------------------------
|  0    |  this  |  this  |  this  |
|  1    |  all    |  this  |  this  |
|  2    |  this  |  all  |  this  |
|  3    |  all    |  all  |  this  |
|  4    |  this  |  this  |  all    |
|  5    |  all    |  this  |  all    |
|  6    |  this  |  all  |  all    |
|  7    |  all    |  all  |  all    |
-----------------------------------------

it would be option 5 if I am understanding it correctly. cause any NPC and ZONE could use the flag, but only the player that made the flag, I am correct?

sorry for all the questions. just trying to understand all of this. Ive read the wiki a good number of times, just need confirmation that I am understanding it correctly and not have to post my quests asking if I am doing it right since I cant get it to work.

thanks

trevius 01-10-2009 10:13 AM

Yes, option 5 is correct. And, if you want to flag everyone on a kill, try using sub EVENT_KILLER_MERIT. Anyone who would get credit for the kill (group or raid) can be given globals or whatever using this event type.

http://www.eqemulator.net/wiki/wikka...=QuestTutorial

Joetuul 01-10-2009 03:15 PM

Thanks Trevius, sorry for the questions, I am just trying to understand all of this. I think I am starting to get a good grasp on quest writing.

You said to try using sub EVENT_KILLER_MERIT . I dont see that one on the list, are you refering to EVENT_KILLED_MERIT? or is it a command that is not in the wiki?


All times are GMT -4. The time now is 09:16 PM.

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