View Single Post
  #6  
Old 09-26-2009, 08:24 PM
Dibalamin
Hill Giant
 
Join Date: Dec 2007
Posts: 182
Default

Code:
sub EVENT_COMBAT {
	if ($combat_state == 1) {
	quest::settimer("Water",1);
	}
	
	if ($combat_state == 0) {
	quest::stoptimer("Water");
	}
}

sub EVENT_TIMER {
#quest::shout("Water, water, water");
	my $z = $npc->GetZ();
		if ($z>=XX) {
		$npc->WipeHateList();
		$mob->sethp($mob->GetMaxHP());
		quest::stoptimer("Water");
		}
}
Ok fixed, update the XX in red to the Z coords and you'll be good to go till the pathing stuff gets implemented =).
__________________
Retired EMarr
Project1999 Developer
Reply With Quote