Log in

View Full Version : qglobal Flags for players


Joetuul
01-10-2009, 07:07 AM
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..


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?


-----------------------------------------
| 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.php?wakka=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?