Guest User

Untitled

a guest
Jan 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.17 KB | None | 0 0
  1.  --=---------------------------------------------------------------=--
  2. --= Neuz -==- This script is not for sale -==- Free for all Users! ==--
  3.  --=---------------------------------------------------------------=--
  4. function OnCombat(pUnit, Event)
  5.     pUnit:RegisterEvent("Phase1", 1000, 1)
  6.     pUnit:SendChatMessage(12, 0, "You dare enter my cave uninvited! For this you will pay with your life's!")
  7. end
  8.  
  9. function Phase1(pUnit, Event)
  10.     if pUnit:GetHealthPct(98)
  11.         then pUnit:RegisterEvent("Phase1_Minion", 120000,5)
  12.              pUnit:SendChatMessage(12, 0, " Let's even out the odds abit! hahaha!")
  13.                 else
  14.     end
  15.    
  16.     if pUnit:GetHealthPct(86)
  17.         then pUnit:RegisterEvent("Phase1_Minion", 120000,5)
  18.              pUnit:SendChatMessage(12, 0, " The best feeling in the world is when you kill somone!")
  19.                 else
  20.     end
  21.    
  22.     if pUnit:GetHealthPct(77)
  23.         then pUnit:RegisterEvent("Phase1_Minion", 120000,5)
  24.              pUnit:SendChatMessage(12, 0, " You might think im crazy... And you are complitly correct!")
  25.                 else
  26.     end
  27. end
  28.  
  29. function Phase1_Minion(pUnit, Event)
  30.     local x = pUnit:GetX(pUnit:GetRandomPlayer(0))
  31.     local y = pUnit:GetY(pUnit:GetRandomPlayer(0))
  32.     local z = pUnit:GetZ(pUnit:GetRandomPlayer(0)) 
  33.         pUnit:SpawnCreature(74001, x, y, z, 0, 18)
  34.         pUnit:RegisterEvent("Phase1_Poison", 14000, 0)
  35. end
  36.  
  37. function Phase1_Minion(pUnit, Event)
  38.     local x = pUnit:GetX(pUnit:GetRandomPlayer(0))
  39.     local y = pUnit:GetY(pUnit:GetRandomPlayer(0))
  40.     local z = pUnit:GetZ(pUnit:GetRandomPlayer(0)) 
  41.         pUnit:SpawnCreature(74001, x, y, z, 0, 18)
  42.         pUnit:RegisterEvent("Phase1_Poison", 14000, 0)
  43. end
  44.  
  45. function Phase1_Minion(pUnit, Event)
  46.     local x = pUnit:GetX(pUnit:GetRandomPlayer(0))
  47.     local y = pUnit:GetY(pUnit:GetRandomPlayer(0))
  48.     local z = pUnit:GetZ(pUnit:GetRandomPlayer(0)) 
  49.         pUnit:SpawnCreature(74001, x, y, z, 0, 18)
  50.         pUnit:RegisterEvent("Phase1_Poison", 14000, 0)
  51. end
  52.  
  53. function Phase1_Poison(pUnit, Event)
  54.     pUnit:GetRandomPlayer(0, pUnit:CastSpellOnTarget(64157))
  55.     pUnit:RegisterEvent("Phase1_Change1", 1000, 1)
  56. end
  57.  
  58. function Phase1_Change1(pUnit, Event)
  59.     if pUnit:GetHealthPct (75)
  60.     then pUnit:RegisterEvent("Phase2", 1000, 1)
  61.         else
  62.             end
  63. end
  64.  
  65. ------------------------------------------
  66. --=--------------PHASE 2---------------=--
  67. ------------------------------------------
  68.  
  69. function Yx_Phase2(pUnit, Event)
  70.     pUnit:RegisterEvent("Phase2_Flame", 14000, 0)
  71.     if pUnit:GetHealthPct(74)
  72.         then pUnit:SendChatMessage(12, 0, " Prepair youself for disepointment! ")
  73.             else
  74.     end
  75.    
  76.     if pUnit:GetHealthPct(68)
  77.         then pUnit:SendChatMessage(12, 0, " You are such a hot heads! Now die! ")
  78.             else
  79.     end
  80.    
  81.     if pUnit:GetHealthPct(57)
  82.         then pUnit:SendChatMessage(12, 0, " ohh, forgot that you guy's were here! So Weak! ")
  83.             else
  84.     end
  85. end
  86.  
  87. function Phase2_Flame(pUnit, Event)
  88.     local x = pUnit:GetX(pUnit:GetRandomPlayer(0))
  89.     local y = pUnit:GetY(pUnit:GetRandomPlayer(0))
  90.     local z = pUnit:GetZ(pUnit:GetRandomPlayer(0)) 
  91.         pUnit:CastSpellOnTarget(x,y,z,25786)
  92.         pUnit:RegisterEvent("Phase2_FireBreath", 7000, 0)
  93. end
  94.  
  95. function Phashe2_FireBreath(pUnit, Event)
  96.     pUnit:GetRandomPlayer(0, pUnit:CastSpellOnTarget(36921))
  97.     pUnit:RegisterEvent("Phase2_FlameKnock", 9000, 0)
  98. end
  99.  
  100. function Phase_FlameKnock(pUnit, Event)
  101.     pUnit:GetRandomPlayer(0, pUnit:CastSpellOnTarget(90693))
  102.     pUnit:RegisterEvent("Phase2_Change2", 1000, 1)
  103. end
  104.  
  105. function Phase2_Change2(pUnit, Event)
  106.     if pUnit:GetHealthPct (50)
  107.     then pUnit:RegisterEvent("Phase3", 1000, 1)
  108.         else
  109.             end
  110. end
  111.  
  112. ------------------------------------------
  113. --=--------------PHASE 3---------------=--
  114. ------------------------------------------
  115.  
  116. function Phase3(pUnit, Event)
  117.     pUnit:RegisterEvent("Phase3_Blizzard", 18000, 1)
  118.     if pUnit:GetHealthPct(50)
  119.         then pUnit:SendChatMessage(12, 0, " What happen's to iron when it's expsed to too much heat, and then gets cooled? Lets finde out! ")
  120.             else
  121.     end
  122.    
  123.     if pUnit:GetHealthPct(37)
  124.         then pUnit:SendChatMessage(12, 0, " Die! I feel your weakness! you are an inbarresment!")
  125.             else
  126.     end
  127.    
  128.     if pUnit:GetHealthPct(26)
  129.         then pUnit:SendChatMessage(12, 0, " Flee while you have the chanse! ")
  130.             else
  131.     end
  132. end
  133.  
  134. function Phase3_Blizzard(pUnit, Event)
  135.     local x = pUnit:GetX(pUnit:GetRandomPlayer(0))
  136.     local y = pUnit:GetY(pUnit:GetRandomPlayer(0))
  137.     local z = pUnit:GetZ(pUnit:GetRandomPlayer(0)) 
  138.         pUnit:CastSpellOnTarget(x,y,z,71118)
  139.         pUnit:RegisterEvent("Phase3_Chill", 20000, 1)
  140. end
  141.  
  142. function Phase3_Chill(pUnit, Event)
  143.     local x = pUnit:GetX(pUnit:GetRandomPlayer(0))
  144.     local y = pUnit:GetY(pUnit:GetRandomPlayer(0))
  145.     local z = pUnit:GetZ(pUnit:GetRandomPlayer(0)) 
  146.         pUnit:CastSpellOnTarget(x,y,z,28547)
  147.         pUnit:RegsiterEvent("Phase3_Shield", 10000, 1)
  148. end
  149.  
  150. function Phase3_Shield(pUnit, Event)
  151.     pUnit:CastSpell(31256)
  152.     pUnit:RegsiterEvent("Phase3_ChillingBreath", 17000, 1)
  153. end
  154.    
  155. function Phase3_ChillingBreath(pUnit, Event)
  156.     pUnit:CastSpell(88308)
  157.     pUnit:RegisterEvent("Phase3_Change3", 1000, 1)
  158. end
  159. function Phase3_Change3(pUnit, Event)
  160.     if pUnit:GetHealthPct (25)
  161.     then pUnit:RegisterEvent("Phase4", 1000, 1)
  162.         else
  163.             end
  164. end
  165.  
  166. ------------------------------------------
  167. --=--------------PHASE 4---------------=--
  168. ------------------------------------------
  169.  
  170. function Phase4(pUnit, Event)
  171.     pUnit:RegisterEvent("Phase4_MagicProtection", 300000, 1)
  172.     if pUnit:GetHealthPct(24)
  173.         then pUnit:SendChatMessage(12, 0, " Your armor wont protect you from this! ")
  174.             else
  175.     end
  176.    
  177.     if pUnit:GetHealthPct(16)
  178.         then pUnit:SendChatMessage(12, 0, " Now you will die! Hahaha... ")
  179.             else
  180.     end
  181.    
  182.     if pUnit:GetHealthPct(5)
  183.         then pUnit:SendChatMessage(12, 0, " I see your mana is running low! hahaha ")
  184.             else
  185.     end
  186. end
  187.  
  188. function Phase4_MagicProtection(pUnit, Event)
  189.     pUnit:CastSpell(20620)
  190.     pUnit:RegisterEvent("Phase4_Minions", 700000, 1)
  191. end
  192.  
  193. function Phase4_Minions(pUnit, Event)
  194.     local x = pUnit:GetX(pUnit:GetRandomPlayer(0))
  195.     local y = pUnit:GetY(pUnit:GetRandomPlayer(0))
  196.     local z = pUnit:GetZ(pUnit:GetRandomPlayer(0)) 
  197.         pUnit:SpawnCreature(74002, x, y, z, 0, 18)
  198.         pUnit:SpawnCreature(74002, x, y, z, 0, 18)
  199.         pUnit:SpawnCreature(74002, x, y, z, 0, 18)
  200.         pUnit:RegisterEvent("Phase4_Stab", 4000, 1)
  201. end
  202.  
  203. function Phase4_Stab(pUnit, Event)
  204.     pUnit:GetMainTank(0, pUnit:CastSpellOnTarget(70400))
  205.     pUnit:RegisterEvent("Phase4_Stun", 10000, 1)
  206. end
  207.  
  208. function Phase4_stun(pUnit, Event)
  209.     pUnit:GetRandomPlayer(0, pUnit:CastSpellOnTarget(90719))
  210.     pUnit:RegisterEvent("Phase4_Protection", 300000, 1)
  211. end
  212.  
  213. function Phase4_protection(pUnit, Event)
  214.     if  pUnit:GetHealthPct(3)
  215.         then pUnit:CastSpell(66010)
  216.              pUnit:SendChatMessage(12, 0, "You dont know what you have gotten yourself into!")
  217.              pUnit:CastSpell(67874)
  218.              pUnit:RegisterEvent("Phase4_OnDeath" 1000, 0)
  219.             else
  220.                 end
  221. end
  222.    
  223.  
  224.  
  225. function OnLeaveCombat(pUnit, Event)
  226.     pUnit:SendChatMessage(12, 0, "Make it a challange next time!")
  227. end
  228.  
  229. function OnKilledTarget(pUnit, Event)
  230.     pUnit:SendChatMessage(12, 0, "Hahaha! U Mad Bro?!")
  231. end
  232.  
  233. function OnDied(pUnit, Event)
  234.     pUnit:SendChatMessage(12, 0, "You win this time! But I will Retur...n!!")
  235. end
  236.  
  237. RegisterUnitEvent(97780, 1, "OnCombat")
  238. RegisterUnitEvent(97780, 2, "OnLeaveCombat")
  239. RegisterUnitEvent(97780, 3, "OnKilledTarget")
  240. RegisterUnitEvent(97780, 4, "OnDied")
Add Comment
Please, Sign In to add comment