View Single Post
  #6  
Old 10-06-2015, 02:53 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

Quote:
Originally Posted by NatedogEZ View Post
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()); 
	}
}
That's pretty badass.
__________________
Clumsy's World: Resurgence [2019-Present]
Clumsy's World 2.0 [2014-2016]
Clumsy's World [2006-2012]
Reply With Quote