Thread: qglobal
View Single Post
  #1  
Old 05-21-2014, 09:17 PM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default 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 {
	if ($signal == 1) { ###Egg Death
		$eggdeath += 1;
		if ($eggdeath == 16) {
			quest::setglobal("EmpoweredAseisa",1,1,"H12");
			}
		}
	}
Reply With Quote