Advertisement
Rochet2

Untitled

Jan 28th, 2012
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.61 KB | None | 0 0
  1. function Dengeon_Graveyard_OnStart(punit, event)
  2.     punit:RegisterEvent("Start_Graveyard_Check", 1000, 0)
  3. end
  4.  
  5. function Start_Graveyard_Check(punit, event)
  6.     local plr = punit:GetClosestPlayer()
  7.     if(plr) then
  8.         if punit:GetDistanceYards(plr) <= 10 then
  9.             punit:RemoveEvents()
  10.             punit:RegisterEvent("Intro_Start", 1000, 1)
  11.         end
  12.     end
  13. end
  14.  
  15. function Intro_Start(punit, event)
  16.     punit:SendChatMessage(14, 0, "Heros of Azeroth, your here...")
  17.     punit:RegisterEvent("Intro_Two", 5000, 1)
  18. end
  19.  
  20. function Intro_Two(punit, event)
  21.     punit:SendChatMessage(14, 0, "I think that he is in here")
  22.     punit:RegisterEvent("Intro_Tree", 6000, 1)
  23. end
  24.  
  25. function Intro_Tree(punit, event)
  26.     punit:SendChatMessage(14, 0, "We Have to move out now before is to late!")
  27.     punit:RegisterEvent("Intro_Four", 5500, 1)
  28. end
  29.  
  30. function Intro_Four(punit, event)
  31.     punit:SendChatMessage(14, 0, "Wait... What was that? did you ear that noise?")
  32.     punit:RegisterEvent("Intro_Five", 7000, 1)
  33. end
  34.  
  35. function Intro_Five(punit, event)
  36.     punit:SendChatMessage(14, 0, "They know that we are here! Be Ready Warriors! The Fight of your Lives is closer then ever!")
  37.     punit:RegisterEvent("Intro_End", 7000, 1)
  38. end
  39.  
  40. function Intro_End(punit, event)
  41.     punit:RegisterEvent("First_Wave", 3000, 1)
  42. end
  43.  
  44. function First_Wave(punit, event)
  45.     punit:RemoveEvents()
  46.     punit:SendChatMessage(42, 0, "Wave 1/99")
  47.     punit:SpawnCreature(26, 1717.20, 1094.70, 6.82, 2.17, 15, 60000)
  48.     punit:SpawnCreature(26, 1728.83, 1101.58, 6.82, 3.45, 15, 60000)
  49.     punit:SpawnCreature(26, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  50.     punit:SpawnCreature(26, 1747.81, 1099.11, 6.82, 2.58, 15, 60000)
  51.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  52.     punit:RegisterEvent("Wave_Two", 30000, 1)
  53. end
  54.  
  55. function Wave_Two(punit, event)
  56.     punit:RemoveEvents()
  57.     punit:SendChatMessage(42, 0, "Wave 2/99")
  58.     punit:SpawnCreature(26, 1715.59, 1100.28, 6.82, 5.64, 15, 60000)
  59.     punit:SpawnCreature(26, 1724.89, 1098.12, 6.82, 3.10, 15, 60000)
  60.     punit:SpawnCreature(26, 1734.85, 1101.54, 6.82, 3.34, 15, 60000)
  61.     punit:SpawnCreature(26, 1728.83, 1101.58, 6.82, 3.45, 15, 60000)
  62.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  63.     punit:RegisterEvent("Wave_three", 30000, 1)
  64. end
  65.  
  66. function Wave_three(punit, event)
  67.     punit:RemoveEvents()
  68.     punit:SendChatMessage(42, 0, "Wave 3/99")
  69.     punit:SpawnCreature(26, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  70.     punit:SpawnCreature(26, 1747.81, 1099.11, 6.82, 2.58, 15, 60000)
  71.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  72.     punit:SpawnCreature(26, 1715.59, 1100.28, 6.82, 5.64, 15, 60000)
  73.     punit:SpawnCreature(26, 1724.89, 1098.12, 6.82, 3.10, 15, 60000)
  74.     punit:RegisterEvent("Wave_Four", 30000, 1)
  75. end
  76.  
  77. function Wave_Four(punit, event)
  78.     punit:RemoveEvents()
  79.     punit:SendChatMessage(42, 0, "Wave 4/99")
  80.     punit:SpawnCreature(26, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  81.     punit:SpawnCreature(26, 1747.81, 1099.11, 6.82, 2.58, 15, 60000)
  82.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  83.     punit:SpawnCreature(26, 1715.59, 1100.28, 6.82, 5.64, 15, 60000)
  84.     punit:SpawnCreature(26, 1724.89, 1098.12, 6.82, 3.10, 15, 60000)
  85.     punit:RegisterEvent("Wave_Five", 30000, 1)
  86. end
  87.  
  88. function Wave_Five(punit, event)
  89.     punit:RemoveEvents()
  90.     punit:SendChatMessage(42, 0, "Wave 5/99")
  91.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  92.     punit:SpawnCreature(27, 1734.85, 1101.54, 6.82, 3.34, 15, 60000)
  93.     punit:SpawnCreature(26, 1728.83, 1101.58, 6.82, 3.45, 15, 60000)
  94.     punit:SpawnCreature(27, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  95.     punit:SpawnCreature(26, 1717.20, 1094.70, 6.82, 2.17, 15, 60000)
  96.     punit:RegisterEvent("Wave_Sixe", 30000, 1)
  97. end
  98.  
  99. function Wave_Sixe(punit, event)
  100.     punit:RemoveEvents()
  101.     punit:SendChatMessage(42, 0, "Wave 6/99")
  102.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  103.     punit:SpawnCreature(27, 1734.85, 1101.54, 6.82, 3.34, 15, 60000)
  104.     punit:SpawnCreature(26, 1728.83, 1101.58, 6.82, 3.45, 15, 60000)
  105.     punit:SpawnCreature(27, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  106.     punit:SpawnCreature(26, 1717.20, 1094.70, 6.82, 2.17, 15, 60000)
  107.     punit:RegisterEvent("Wave_Seven", 35000, 1)
  108. end
  109.  
  110. function Wave_Seven(punit, event)
  111.     punit:RemoveEvents()
  112.     punit:SendChatMessage(42, 0, "Wave 7/99")
  113.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  114.     punit:SpawnCreature(27, 1734.85, 1101.54, 6.82, 3.34, 15, 60000)
  115.     punit:SpawnCreature(26, 1728.83, 1101.58, 6.82, 3.45, 15, 60000)
  116.     punit:SpawnCreature(27, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  117.     punit:SpawnCreature(26, 1717.20, 1094.70, 6.82, 2.17, 15, 60000)
  118.     punit:RegisterEvent("Wave_eight", 35000, 1)
  119. end
  120.  
  121. function Wave_eight(punit, event)
  122.     punit:RemoveEvent()
  123.     punit:SendChatMessage(42, 0, "Wave 8/99")
  124.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  125.     punit:SpawnCreature(27, 1734.85, 1101.54, 6.82, 3.34, 15, 60000)
  126.     punit:SpawnCreature(26, 1728.83, 1101.58, 6.82, 3.45, 15, 60000)
  127.     punit:SpawnCreature(27, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  128.     punit:SpawnCreature(26, 1717.20, 1094.70, 6.82, 2.17, 15, 60000)
  129.     punit:RegisterEvent("Wave_Nine", 35000, 1)
  130. end
  131.  
  132.  
  133. function Wave_Nine(punit, event)
  134.     punit:RemoveEvent()
  135.     punit:SendChatMessage(42, 0, "Wave 9/99")
  136.     punit:SpawnCreature(26, 1736.81, 1093.51, 6.82, 2.56, 15, 60000)
  137.     punit:SpawnCreature(27, 1734.85, 1101.54, 6.82, 3.34, 15, 60000)
  138.     punit:SpawnCreature(26, 1728.83, 1101.58, 6.82, 3.45, 15, 60000)
  139.     punit:SpawnCreature(27, 1737.10, 1095.60, 6.82, 5.71, 15, 60000)
  140.     punit:SpawnCreature(26, 1717.20, 1094.70, 6.82, 2.17, 15, 60000)
  141.     punit:RegisterEvent("Wave_Ten_FirstBoss", 60000, 1)
  142. end
  143.  
  144. RegisterUnitEvent(24, 18, "Dengeon_Graveyard_OnStart")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement