Share Pastebin
Guest
Public paste!

Ucator Chosmos

By: a guest | Apr 15th, 2010 | Syntax: Lua | Size: 2.67 KB | Hits: 117 | Expires: Never
Copy text to clipboard
  1. A = altogasal
  2. H = herbio
  3. Au = Aurora
  4. Ca = Cathaklysmos
  5. Ar = ariound
  6. Hi = Hirindal
  7. Cap = Captain Narmalus
  8. Cr = Cronos(big boss)
  9.  
  10.  
  11.  
  12. function AOnS(pUnit, event)
  13.         A = pUnit
  14.     pUnit:SendChatMessage(14, 0,"")
  15. end
  16.  
  17. function HOnS(pUnit, event)
  18.         H = pUnit
  19.     pUnit:SendChatMessage(14, 0,"")
  20. end
  21.  
  22. function AuOnS(pUnit, event)
  23.         Au = pUnit
  24.     pUnit:SendChatMessage(14, 0,"")
  25. end
  26.  
  27. function CaOnS(pUnit, event)
  28.         Ca = pUnit
  29.     pUnit:SendChatMessage(14, 0,"")
  30. end
  31.  
  32. function HOnS(pUnit, event)
  33.         Ar = pUnit
  34.     pUnit:SendChatMessage(14, 0,"")
  35. end
  36.  
  37. function HiOnS(pUnit, event)
  38.         Hi = pUnit
  39.     pUnit:SendChatMessage(14, 0,"")
  40. end
  41.  
  42. function ArOnS(pUnit, event)
  43.         Cap = pUnit
  44.     pUnit:SendChatMessage(14, 0,"")
  45. end
  46.  
  47.  
  48.  
  49. function phase_two(pUnit, event)
  50. A:UnRoot()
  51. H:UnRoot()
  52. Cap:Root()
  53. Au:Root()
  54. Ca:Root()
  55. Ar:Root()
  56. Hi:Root()
  57. Cr:Root()
  58. A:RegisterEvent("AdolaminPhase2", 1000, 0)
  59. H:RegisterEvent("AdolaminPhase2", 1000, 0)
  60. Au:RegisterEvent("AdolaminPhase2", 1000, 0)
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. function AOnS(pUnit, event)
  108.         A = pUnit
  109.     pUnit:SendChatMessage(14, 0,"")
  110. end
  111.  
  112.  
  113.  
  114. function ALeave(pUnit, event)
  115.     pUnit:RemoveEvents()
  116.     pUnit:SendChatMessage(14, 0,"")
  117. end
  118.  
  119.  
  120. function ADie(pUnit, event)
  121.     pUnit:RemoveEvents()
  122.     pUnit:SendChatMessage(12, 0," ")
  123. end
  124.  
  125.  
  126. function ASlay(pUnit, event)
  127.     local kill = math.random(1, 3)
  128.         if kill == 1 then
  129.     pUnit:PlaySoundToSet(8827)
  130.     pUnit:SendChatMessage(14, 0, "You..are next!")
  131.         end
  132.         if kill == 2 then
  133.     pUnit:PlaySoundToSet(8825)
  134.     pUnit:SendChatMessage(14, 0, "You..are mine now!")
  135.         end
  136.         if kill == 3 then
  137.     pUnit:PlaySoundSet(8827)
  138.     pUnit:SendChatMessage(14, 0, " ")
  139.         end
  140. end
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148. function Leave(pUnit, event)
  149.     pUnit:RemoveEvents()
  150.     pUnit:SendChatMessage(14, 0,"")
  151. end
  152.  
  153.  
  154. function Die(pUnit, event)
  155.     pUnit:RemoveEvents()
  156.     pUnit:SendChatMessage(12, 0," ")
  157. end
  158.  
  159.  
  160. function Slay(pUnit, event)
  161.     local kill = math.random(1, 3)
  162.         if kill == 1 then
  163.     pUnit:PlaySoundToSet(8827)
  164.     pUnit:SendChatMessage(14, 0, "You..are next!")
  165.         end
  166.         if kill == 2 then
  167.     pUnit:PlaySoundToSet(8825)
  168.     pUnit:SendChatMessage(14, 0, "You..are mine now!")
  169.         end
  170.         if kill == 3 then
  171.     pUnit:PlaySoundSet(8827)
  172.     pUnit:SendChatMessage(14, 0, " ")
  173.         end
  174. end
  175.  
  176.  
  177. RegisterUnitEvent(350, 1, "AAggro")
  178. RegisterUnitEvent(350, 2, "ALeave")
  179. RegisterUnitEvent(350, 3, "ASlay")
  180. RegisterUnitEvent(350, 4, "ADie")
  181. RegisterUnitEvent(350, 18, "AOnS")
  182. RegisterUnitEvent(350, 1, "Aggro")
  183. RegisterUnitEvent(350, 2, "ALeave")
  184. RegisterUnitEvent(350, 3, "Slay")
  185. RegisterUnitEvent(350, 4, "Die")