Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.90 KB | None | 0 0
  1. sub EVENT_SPAWN {
  2. quest::settimer(5, 10);
  3. }
  4. sub EVENT_TIMER {
  5. if ($timer == 5) {
  6. my @nlist = $entity_list->GetMobList();
  7. my @badpets = (29, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514,
  8. 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 643, 652, 682, 683, 684, 685, 686, 687,
  9. 688, 689, 690, 691, 692, 693, 694, 695, 696, 812, 813, 814, 815, 816, 2701755, 2701756, 2701874, 2701879, 2701897, 2701957, 2702054, 2702096, 2702138, 2702383, 2702428, 2702441, 2702455, 2702456, 2702457, 2702458,
  10. 2702687, 2703111, 2703152, 2703190);
  11. foreach my $n (@nlist){
  12. #  if ($n->GetPetID() > 0) {
  13. #      my $pet = $entity_list->GetMobByID($n->GetPetID());
  14. #      for (my $i = 1; $i < 9; $i++) {
  15. #          if ($pet->GetEquipment($i) > 0) {
  16. #              if ($n->IsClient()) {
  17. #                  $n->Message(15, "Your minion crumbles under the burden of the temporal anomaly in its possession.");
  18. #              }
  19. #              $pet->Kill();
  20. #              last;
  21. #          }
  22. #      }
  23. #      #make sure pet is still alive before continuing
  24. #      if ($n->GetPetID() > 0) {
  25. #          foreach my $badpetid (@badpets) {
  26. #              if ($pet->GetNPCTypeID() == $badpetid) {
  27. #                  $pet->Kill();
  28. #                  last;
  29. #              }
  30. #          }
  31. #      }
  32. #  }
  33. if($n->GetCleanName()=~/Knight/i || $n->GetCleanName()=~/Monk/i || $n->GetCleanName()=~/Fighter/i || $n->GetCleanName()=~/Savior/i || $n->GetCleanName()=~/Archer/i || $n->GetCleanName()=~/Caster/i || $n->GetCleanName()=~/Ranger/i || $n->GetCleanName()=~/Wizard/i || $n->GetCleanName()=~/Muse/i){
  34. if ($n->IsClient()) {
  35. #doNothing
  36. } else {
  37. $n->CastToNPC()->Kill();
  38. }
  39. }
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement