View Single Post
  #12  
Old 05-08-2011, 12:37 AM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Ok still having problems it doesnt trigger if im in a group or solo


Code:
$g = $client->GetGroup();			
	if(quest::istaskactive(504)) 
	{
		if(quest::istaskactivityactive(504,1)) {
		
			if($text=~/Hail/i) {
				quest::shout("Ahhh the orcses they are after meeez"); 
				#despawn gollum and respawn him at the next location
				quest::depop(999303);
				#spawn orc lieutants
				quest::spawn(999204,0,0,-866.3,357.1,90.3);
				#spawn gollum in dif loc
				quest::spawn(999303,0,0,-1023.7,-344.3,7.5);
				
				if(!$g)# No Group
				{ 
				$c->UpdateTaskActivity(504, 1, [1]);
				quest::shout("It works"); 
				}
                
				## Find Group Members
				else
				{
					for($i = 0; $i < 6; ++$i)
					{
					$c = $g->GetMember($i);
                               
						if($c)
						{
							# Update the group task
						$c->UpdateTaskActivity(504, 1, [1]);
						quest::shout("It works"); 
						}

					}	
				}
			}	
		}
Reply With Quote