Thread: client casting
View Single Post
  #3  
Old 01-20-2016, 04:51 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Here is a small example..

Code:
sub EVENT_ITEM_CLICK {
	my $target = $client->GetTarget();
	if ($target && $target->IsNPC() && !($target->GetOwnerID() && $entity_list->GetMobByID($target->GetOwnerID())->IsClient())) {  #Only cast on NPCs and ignore player pets
		$client->SpellFinished(982, $target);  #Cast Cazic Touch
	}
}
Reply With Quote