Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.93 KB | None | 0 0
  1. #Crushbone Revamp - Orc Trainer npc id 999446
  2. #NPCID: 304021
  3.  
  4. sub EVENT_SPAWN {
  5. quest::modifynpcstat("special_attacks", "ERFTrMCNIDfdL");
  6. quest::shout("HA!  I am the master of arms for all of clan Crushbone.  You believe you can defeat me $name?!");
  7. }
  8.  
  9. sub EVENT_COMBAT {
  10. if ($combat_state == 1) {
  11.     quest::emote("Laughs Loudly");
  12.     quest::shout("You will never defeat this form!  Let alone my True form!");
  13.     quest::settimer("fear",25);
  14.     quest::setnexthpevent(85);
  15.     }
  16. if ($combat_state == 0) {
  17.     quest::stoptimer("fear");
  18.     quest::stoptimer("reengage");
  19.     quest::stoptimer("pbaekb");
  20.     quest::stoptimer("lifetap");
  21.    
  22.     }
  23. }
  24.  
  25. sub EVENT_TIMER {
  26. if ($timer eq "fear") {
  27.     my $RTarget = $npc->GetHateRandom();
  28.     if ($RTarget) {
  29.         $npc->SpellFinished(9091,$RTarget);
  30.         }
  31.     }
  32. if ($timer eq "reengage") {
  33.     quest::shout("You were fools to come here!");
  34.     quest::modifynpcstat("special_attacks","SERFTrMCNIDfdL");
  35.     quest::stoptimer("reengage");
  36.     }
  37. if ($timer eq "pbaekb") {
  38.     my $TTarget = $npc->GetHateTop();
  39.     my $RTarget = $npc->GetHateRandom();
  40.         if ($RTarget ne $TTarget) {
  41.             $npc->SpellFinished(7912,$RTarget);
  42.             }
  43.         }
  44. if ($timer eq "lifetap") {
  45. my $TTarget = $npc->GetHateTop();
  46.     if ($TTarget) {
  47.         $npc->SpellFinished(11423,$TTarget);
  48.         }
  49.     }
  50. if ($timer eq "heal") {
  51.     my $hpz = $npc->GetHP();
  52.     $npc->SetHP($hpz + 25000)
  53.     }
  54. }
  55.  
  56. sub EVENT_HP {
  57.  
  58. if ($hpevent <= 85 && $hpevent >= 84) {
  59.     quest::emote("Begins to Shimmer and Split..");
  60.     quest::spawn2 (304029,0,0,-161.97,383.79,58.95,142.5);
  61.     quest::spawn2 (304030,0,0,-252.29,380.81,58.95,107.8);
  62.     quest::spawn2 (304031,0,0,-251.00,164.07,58.95,15.3);
  63.     quest::spawn2 (304032,0,0,-160.63,164.25,58.95,240.3);
  64.     quest::modifynpcstat("special_attacks","ABERFTrMCNIDfdL");
  65.     quest::settimer("reengage",120);
  66.     }
  67. }
  68.  
  69. sub EVENT_SIGNAL {
  70. if ($signal == 0) {
  71.     quest::settimer("pbaekb",13);
  72.     quest::emote("Begins to Radiate with Energy");
  73.     }
  74. if ($signal == 1) {
  75.     quest::emote("Appears to Writhe in pain");
  76.     quest::shout("No!");
  77.     my $hpz = $npc->GetHP();
  78.     $npc->SetHP($hpz - 25000);
  79.     }
  80. if ($signal == 2) {
  81.     quest::settimer("lifetap",15);
  82.     quest::emote("Begins to channel Dark Energy");
  83.     }
  84. if ($signal == 3) {
  85.     quest::emote("Appears to Writhe in pain");
  86.     quest::shout("No!");
  87.     my $hpz = $npc->GetHP();
  88.     $npc->SetHP($hpz - 25000);
  89.     }
  90. if ($signal == 4) {
  91.     quest::modifynpcstat("special_attacks","AERFTrMCNIDfdL");
  92.     quest::emote("Roars in Delight as his Skin takes a metallic Sheen");
  93.     }
  94. if ($signal == 5) {
  95.     quest::emote("Appears to Writhe in pain");
  96.     quest::shout("No!");
  97.     my $hpz = $npc->GetHP();
  98.     $npc->SetHP($hpz - 25000);
  99.     }
  100. if ($signal == 6) {
  101.     quest::settimer("heal",20);
  102.     }
  103. if ($signal == 7) {
  104.     quest::emote("Appears to Writhe in pain");
  105.     quest::shout("No!");
  106.     my $hpz = $npc->GetHP();
  107.     $npc->SetHP($hpz - 25000);
  108.     }
  109. }
  110.  
  111. sub EVENT_KILLED_MERIT
  112. {
  113.     $client->AddCrystals(0, 25);
  114. }
  115.  
  116. sub EVENT_DEATH_COMPLETE
  117. {
  118.     {
  119.     quest::spawn2 (304022,0,0,($x + 20),$y,$z,$h);
  120.     }
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement