NatedogServer

valdeholm

Mar 9th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.09 KB | None | 0 0
  1. sub EVENT_SPAWN {
  2.     if($npc->GetOwnerID() > 0) { return; }
  3.    
  4.     if($instanceversion > 0) {
  5.         my $npctype_id = $npc->GetNPCTypeID();
  6.         plugin::AddCash(50000, 150000);
  7.         plugin::AddLoot(1, 25, 140073);
  8.         my $StartMove = int(rand(25)) + 5;
  9.         if ($mname=~/ooze|warwolf|mammoth|die wolf|ice tiger|lakeskater/i) { quest::settimer("roam", $StartMove); }
  10.         if ($mname=~/smith|worker/i) { quest::settimer("smith", 5); }
  11.         if ($npc->GetRace()=~/523|453/) { plugin::AddLoot(1, 5, 140071); } else { plugin::AddLoot(1, 10, 140072); }
  12.        
  13.         if($npctype_id == 401288) { #Animal Tender Bealon
  14.             my @boss_items = (122610, 122613, 122612, 122611, 122609);
  15.             plugin::AddLoot(1, 1, @boss_items);
  16.         }
  17.         elsif($npctype_id == 401275) { #Fergarin bardon I
  18.             my @boss_items = (122600, 122608, 122607, 122606, 122605, 122604, 122603, 122602, 122601);
  19.             plugin::AddLoot(1, 1, @boss_items);
  20.         }
  21.         elsif($npctype_id == 401363) { #Gatewatch_Urgwit
  22.             my @boss_items = (122618,122617,122616,122615,122614);
  23.             plugin::AddLoot(1, 1, @boss_items);
  24.         }
  25.         elsif($npctype_id == 401360) { #Kellet,_Royal_Guard_Captain
  26.             my @boss_items = (122623,122622,122621,122620,122619);
  27.             plugin::AddLoot(1, 1, @boss_items);
  28.         }
  29.         elsif($npctype_id == 401345) { #Master_Smith_Goil
  30.             my @boss_items = (122624,122625,122626,122627,122628);
  31.             plugin::AddLoot(1, 1, @boss_items);
  32.         }
  33.         elsif($npctype_id == 401370) { #Royal_Cryptguard_Zerakt
  34.             my @boss_items = (122633,122632,122631,122630,122629);
  35.             plugin::AddLoot(1, 1, @boss_items);
  36.         }
  37.         #elsif($npctype_id == 401200) { #Wraithguard_Hunter_Grethmar
  38.         #   my @boss_items = (122641,122640,122639,122638,122637,122636,122635,122634);
  39.         #   plugin::AddLoot(1, 1, @boss_items);
  40.         #}
  41.         #elsif($npctype_id == 401199) { #Wraithguard_Sergeant_Thavin
  42.         #   my @boss_items = (122642,122643,122644,122645);
  43.         #   plugin::AddLoot(1, 1, @boss_items);
  44.         #}
  45.         elsif($npctype_id == 401375) {
  46.             quest::ze(335, "A concentrated storm appears..");
  47.             quest::settimer("rain", 3);
  48.             quest::set_proximity( $x-5,$x+5,$y-5,$y+5,$z-10,$z+10);
  49.             $npc->TempName("");
  50.             quest::settimer("depop", 30);
  51.         }  
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment