View Single Post
  #1  
Old 08-05-2010, 03:43 PM
Bellos
Hill Giant
 
Join Date: Jul 2007
Posts: 111
Default Can you make a custom local type variable for quests?

Say kills or somthing and then once it hits 4 have an npc spawn.

if some can someone tell me how you define variables in perl?


How does this look?

Code:
$orcmysticsdead = 0;

sub EVENT_DEATH {
	$orcmysticsdead = $orcmysticsdead + 1
	
	if ($orcmysticsdead = 4){
	quest::unique_spawn(999149,0,0,1652,1535,-9,heading=69)
	}
}
is that the correct usage of

quest::unique_spawn(npc_type,grid,guildwarset,x,y, z,heading=0)
Reply With Quote