View Single Post
  #4  
Old 03-28-2015, 09:21 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Well I would think this would work, been worken on it and tryen to get it to work but it does not and i am blinded by the reason why.

Its fairly simple, It looks like it would work but it doesnt.

Code:
sub EVENT_SPAWN{
quest::settimer(1, 3);
}
 
sub EVENT_TIMER{
	if($timer == 1) {
		my @nlist = $entity_list->GetNPCList(); #::: Use Entity List Object to get this
		foreach my $n (@nlist){ #::: Iterate through each NPC in the @nlist array
			if(plugin::CheckDistBetween2Ents($mob, $n, 50)){
			#$n->AddToHateList($client,1);
			$n->Shout("Hi I am an NPC that is within your distance check");
			}
		}
	}
}
__________________
Reply With Quote