Advertisement
NatedogServer

AOE REZ

May 22nd, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. sub EVENT_SPELL_EFFECT_CLIENT {
  2. my @corpselist = $entity_list->GetCorpseList();
  3. foreach $CL (@corpselist)
  4. {
  5. my $PCL = $CL->CastToCorpse();
  6. next unless $PCL->IsPlayerCorpse();
  7. next if $PCL->IsRezzed();
  8. my $targid = $PCL->GetID();
  9. my $PCLx = $PCL->GetX();
  10. my $PCLy = $PCL->GetY();
  11. my $PCLz = $PCL->GetZ();
  12. my $Distance = $client->CalculateDistance($PCLx, $PCLy, $PCLz);
  13. next if $Distance > 100;
  14. quest::castspell(994,$targid);
  15. }
  16. #added a shout to this spell - you can remove if you want lol
  17. quest::shout("Casting Mass Resurrection!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement