View Single Post
  #5  
Old 10-06-2015, 02:47 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Custom spells using quests? Because I love doing that!

AoE rez spell I wrote awhile ago... (edited it a bit)
uses spell 994 to resurrect.. but whatever spell its attached to needs to be self only targettype to trigger the quest script..

spellid.pl (example 11.pl) in the global\spells folder
Code:
sub EVENT_SPELL_EFFECT_CLIENT {
	my @corpselist = $entity_list->GetCorpseList();
	foreach $CL (@corpselist) {
		next unless $CL->IsPlayerCorpse();
		next if $CL->IsRezzed();
		next if $client->CalculateDistance($CL->GetX(), $CL->GetY(), $CL->GetZ()) > 100;
		quest::castspell(994,$CL->GetID()); 
	}
}
Reply With Quote