qglobal
Hi,
Trying to set a qglobal to characters on a signal. This is what I'm using so far, but the global is setting for the mob it's on, not for the character. i.e. in the charid it's showing up the "-npcid" instead of a character id. I'm thinking I need to draw on clients in the zone, and then set that global onto those characters currently in the zone. Someone able to point me in the direction of an example or help me out? Thinking something like $clientlist or something like that. I want to draw on all the players currently in the zone and assign the qglobal to all of them though, not just one. Thanks in advance for any help! Code:
sub EVENT_SIGNAL { |
Try here, this should help you out.
|
Read that, still can't seem to get what I'm trying to do to work.
Trying to use qglobals to determine whether or not someone has killed a boss. If they have and they enter that instance I want there to be a warning that they entered and a 2 minute window before they either leave or the bosses they have killed are despawned. I've got the bosses setting the qglobal perfectly using this: Code:
sub EVENT_DEATH_COMPLETE { Code:
sub EVENT_SIGNAL { Code:
sub EVENT_ENTERZONE { Code:
sub EVENT_SIGNAL { Code:
if(!defined $qglobals{"AncientGlaucoideIsDead"}){ |
Why not just boot the player from the zone if they zone in with the global? :p
Signaling the boss to despawn seems really easy to grief other players... Kill boss.. then keep zoning in so no one else can kill it :) |
Writing quest::setglobal(quest global name, value, type of quest global, how long the quest global lasts);
Try quest::setglobal("Blah", 1, 5, "H12"); It sets it on the current player in all zones and in all NPCs for 12 hours., so that all NPCs can read it and it can be read in all zones, as you can see, 1 only does ALL NPCs, current player, current zone for 12 hours. http://i.imgur.com/Nsqmq84.png |
I tried 5, didn't work.
Will try again. Natedog, It will be an instance. So,i idea of giving people 2 minutes is so that if the people leave they don't have to reget the instance to get the boss up again. Edit: Sort of misread your question Natedog: Also, gives people who may of only killed one boss in their instance the ability to pair up with others from another instance, or if their group falls apart etc. |
I didn't say that setting the global to 5 would fix your issue, you'd need to re-write what you wrote as Natedog said.
|
Don't see him saying that, but, okay.
Question I was asking was does anyone have an example of *how* to call on that qglobal for clients within the zone. Since I assume my issue is on this line checking to see if it's defined AT ALL vs. for an npc within the zone at that time. Code:
if(!defined $qglobals{"AncientGlaucoideIsDead"}){ |
All times are GMT -4. The time now is 05:42 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.