Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.45 KB | None | 0 0
  1. #Trials script - terror
  2. sub EVENT_COMBAT
  3. {
  4.     if ($combat_state == 1)
  5.     {
  6.         quest::emote("begins to channel destructive energy.");
  7.         quest::settimer("death",20);
  8.     }
  9.     if ($combat_state == 0)
  10.     {
  11.         quest::stoptimer("death");
  12.     }
  13. }
  14.  
  15. sub EVENT_TIMER
  16. {
  17.     if ($timer eq "death")
  18.     {
  19.         my $RTarget = $npc->GetHateRandom();
  20.     if ($RTarget) {
  21.         $npc->SpellFinished(23053,$RTarget);
  22.     }
  23. }
  24. }
  25.  
  26. sub EVENT_KILLED_MERIT
  27. {
  28.     $client->AddCrystals(0, 5);
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement