Share Pastebin
Guest
Public paste!

chosmos

By: a guest | Mar 11th, 2010 | Syntax: Lua | Size: 9.20 KB | Hits: 70 | Expires: Never
Copy text to clipboard
  1. local C
  2. local CO
  3. local CC
  4. local ID = 99776
  5. local COI = 99777
  6. local CCI = 99778
  7.  
  8.  
  9. ------------------------
  10. \------/\------energy
  11.  )-------------] =
  12. /------\/------mass
  13. \------/\------speed
  14.  )-------------- 2
  15. /------\/------E=MC2
  16.  
  17.  
  18.  
  19.  
  20.  
  21. ------------------------
  22. ------------------------
  23. ------------------------
  24.  
  25.  
  26.  
  27. function Phase(pUnit, event)-----------1
  28.         local target = C:GetRandomPlayer(0)
  29.                 C:FullCastSpellOnTarget(29953, C:MainTank(0))
  30.                 C:MoveTo(target:GetX(), target:GetY() - 2, target:GetZ(), target:GetO())
  31.                 C:ClearHateList()
  32.                 C:SetFaction(21)
  33.                 C:RemoveAura(50161)
  34.                 C:CastSpell(29973)
  35.                 C:RegisterEvent("Slash", 8000, 0)
  36.                 C:RegisterEvent("Blast", 11000, 1)
  37.                 C:RegisterEvent("AE", 10000, 4)
  38.                 C:RegisterEvent("CL", 7000, 2)
  39.                 C:RegisterEvent("PhaseOne", 1000, 0)
  40.                 C:RegisterEvent("Enraged", 600000, 1)
  41.         end
  42. end
  43.  
  44.  
  45. function PhaseOne(pUnit, event)-----------2
  46.         if C:GetHealthPct() <= 95 then
  47.                         C:RemoveEvents()
  48.                         local target = C:GetRandomPlayer(0)
  49.                         C:FullCastSpellOnTarget(29953, C:MainTank(0))
  50.                         C:MoveTo(target:GetX(), target:GetY() - 2, target:GetZ(), target:GetO())
  51.                         C:CastSpell(29973)
  52.                         C:ClearHateList()
  53.                         C:RegisterEvent("Slash", 8000, 0)
  54.                         C:RegisterEvent("Blast", 11000, 1)
  55.                         C:RegisterEvent("AE", 10000, 4)
  56.                         C:RegisterEvent("CL", 7000, 2)
  57.                         C:RegisterEvent("Portal", 1000, 0)
  58.                 end
  59. end
  60.  
  61. function Portal(pUnit, event)------------3
  62.     if C:GetHealthPct() <= 80 then
  63.             C:RemoveEvents()
  64.                 local target = C:GetRandomPlayer(0)
  65.                 local X = target:GetX()
  66.                 local Y = target:GetY()
  67.                 local Z = target:GetZ()
  68.                 local O = target:GetO()
  69.                 C:SpawnGameObject(177243, x, y, z, o, 350000)
  70.                 C:SpawnCreature(357, X, Y, Z, O, 33237, 35000)
  71.                 C:SpawnCreature(363, X, Y, Z, O, 33237, 35000)
  72.                 C:SpawnCreature(357, X, Y, Z, O, 33237, 35000)
  73.                 C:SpawnCreature(363, X, Y, Z, O, 33237, 35000)
  74.                 C:SpawnCreature(357, X, Y, Z, O, 33237, 35000)
  75.                 C:SpawnCreature(363, X, Y, Z, O, 33237, 35000)
  76.                 C:Root()
  77.                 C:CastSpell(50161)
  78.                 C:CastSpell(29973)
  79.                 C:RegisterEvent("Blast", 11000, 1)
  80.                 C:RegisterEvent("AE", 10000, 4)
  81.                 C:RegisterEvent("CL", 7000, 2)
  82.                 C:RegisterEvent("Portalone", 1000, 0)
  83.         end
  84. end
  85.  
  86. function Portalone(pUnit, event)----------4
  87.     if C:GetHealthPct() <= 70 then
  88.             C:RemoveEvents()
  89.                 local target = C:GetRandomPlayer(0)
  90.                 local X = target:GetX()
  91.                 local Y = target:GetY()
  92.                 local Z = target:GetZ()
  93.                 local O = target:GetO()
  94.                 C:SpawnGameObject(177243, x, y, z, o, 350000)
  95.                 C:SpawnCreature(367, X, Y, Z, O, 32953, 35000)
  96.                 C:SpawnCreature(363, X, Y, Z, O, 33237, 35000)
  97.                 C:SpawnCreature(357, X, Y, Z, O, 32953, 35000)
  98.                 C:SpawnCreature(363, X, Y, Z, O, 33237, 35000)
  99.                 C:SpawnCreature(357, X, Y, Z, O, 32953, 35000)
  100.                 C:SpawnCreature(363, X, Y, Z, O, 33237, 35000)
  101.                 C:SpawnCreature(357, X, Y, Z, O, 32953, 35000)
  102.                 C:SpawnCreature(363, X, Y, Z, O, 33237, 35000)
  103.                 C:CastSpell(50161)
  104.                 C:RegisterEvent("Plat", 5000, 1)
  105.                 C:RegisterEvent("ReturnOne", 30000, 1)
  106.         end
  107. end
  108.  
  109.  
  110. function Plat(pUnit, event)
  111.         local X = C:GetSpawnX()
  112.         local Y = C:GetSpawnY()
  113.         local Z = C:GetSpawnZ()
  114.         local O = C:GetSpawnO()
  115.         C:SpawnGameObject(190816, x + 5, y + 10, z, o, 350000)
  116.         C:MoveTo(x + 5, y + 10, z, o)
  117.         C:Root()
  118.         C:RegisterEvent("SBomb",10000,2)
  119. end
  120.  
  121.  
  122. function ReturnOne(pUnit, event)------------5
  123.                 C:RemoveEvents()
  124.                 local target = C:GetRandomPlayer(0)
  125.                 local X = target:GetX()
  126.                 local Y = target:GetY()
  127.                 local Z = target:GetZ()
  128.                 local O = target:GetO()
  129.                 C:SpawnGameObject(177243, x, y, z, o, 350000)
  130.                 C:SpawnCreature(367,x - 5,y - 10, z, O, 32953, 35000)
  131.                 C:SpawnCreature(363,X - 5,Y - 10, Z, O, 33237, 35000)
  132.                 C:SpawnCreature(357,X - 5,Y - 10, Z, O, 32953, 35000)
  133.                 C:SpawnCreature(363,X - 5,Y - 10, Z, O, 33237, 35000)
  134.                 C:RemoveAura(50161)
  135.                 C:RegisterEvent("Blast", 11000, 1)
  136.                 C:RegisterEvent("AE", 10000, 4)
  137.                 C:RegisterEvent("CL", 7000, 2)
  138.                 C:RegisterEvent("Return", 5000, 1)
  139.                 C:RegisterEvent("Dread", 1000, 0)
  140.         end
  141. end
  142.  
  143.  
  144. function Return(pUnit, event)
  145.         local X = C:GetSpawnX()
  146.         local Y = C:GetSpawnY()
  147.         local Z = C:GetSpawnZ()
  148.         local O = C:GetSpawnO()
  149.         C:MoveTo(x - 5, y - 10, z, o)
  150. end
  151.  
  152.  
  153. function Dread(pUnit, event)-------------6
  154.                 C:RemoveEvents()
  155.                 C:RemoveAura(50161)
  156.                 C:RegisterEvent("Flame", 4000, 3)
  157.                 C:RegisterEvent("Slash", 8000, 0)
  158.                 C:RegisterEvent("Blast", 11000, 5)
  159.                 C:RegisterEvent("AE", 10000, 4)
  160.                 C:RegisterEvent("CL", 7000, 5)
  161.                 C:RegisterEvent("DUP", 30000, 0)
  162.                 C:RegisterEvent("Duplicate", 600000, 1)
  163. end
  164.  
  165.  
  166. function Duplicate(pUnit, event)
  167.                 local X = target:GetX()
  168.                 local Y = target:GetY()
  169.                 local Z = target:GetZ()
  170.                 local O = target:GetO()
  171.                 C:SpawnCreature(COI,x,y,z, O, 32953, 350000)
  172.                 C:SpawnCreature(CCI,x,y,z, O, 32953, 350000)
  173. end
  174.  
  175.  
  176. function DUP(pUnit, event)----------7
  177.                 C:RemoveEvents()
  178.                 C:RemoveAura(50161)
  179.                 C:RegisterEvent("Strike", 8000, 0)
  180.                 C:RegisterEvent("Phase", 11000, 1)
  181.                 C:RegisterEvent("Sky", 10000, 4)
  182.                 C:RegisterEvent("BB", 30000, 1)
  183.                 C:RegisterEvent("endign", 1000, 0)
  184. end
  185.  
  186.  
  187.  
  188. function ending(pUnit, event)-------------last phase
  189.         if C:GetHealthPct() <= 2 then
  190.                 C:CastSpell(50770)
  191.                 C:CastSpell(64487)
  192.                 C:RegisterEvent("Absolute",1000,0)
  193.         end
  194. end
  195.  
  196.  
  197. function Absolute(pUnit,event)--------dying
  198.         C:RemoveEvents()
  199.         C:SendChatMessage(14, 0, "")
  200.         C:ReturnToSpawnPoint()
  201.         C:Emote(68, 30000)
  202.         C:Root()
  203.         C:SetFaction(35)
  204.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  205.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  206.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  207.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  208.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  209.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  210.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  211.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  212.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  213.         C:ResurrectPlayer(C:GetRandomPlayer(0))
  214. end
  215.  
  216.  
  217.  
  218.  
  219. function C_OnS(pUnit, Event)
  220.         C = pUnit
  221.         C:SendChatMessage(14, 0, "")
  222.         C:CastSpell(40425)
  223.                 C:RegisterEvent("Phase", 1000, 1)
  224. end
  225.  
  226.  
  227. function CO_OnS(pUnit, Event)
  228.         CO = pUnit
  229.         CO:SendChatMessage(14, 0, "")
  230.         CO:CastSpell(40425)
  231.         CO:Despawn(45000,0)
  232.                 CO:RegisterEvent("Slash", 1000, 1)
  233.                         CO:RegisterEvent("AE", 1000, 1)
  234.                                 CO:RegisterEvent("CL", 1000, 1)
  235. end
  236.  
  237.  
  238. function CC_OnS(pUnit, Event)
  239.         CC = pUnit
  240.         CC:SendChatMessage(14, 0, "")
  241.         CC:CastSpell(40425)
  242.         CC:ReturnToSpawnPoint()
  243.         CC:Despawn(45000,0)
  244.         CC:RegisterEvent("Slash", 8000, 0)
  245.                 CC:RegisterEvent("AE", 14000, 0)
  246.                         CC:RegisterEvent("CL", 20000, 0)
  247. end
  248.  
  249.  
  250.  
  251.  
  252. function OnLC(pUnit, Event)
  253.         C:RemoveEvents()
  254.         C:SendChatMessage(14, 0, "")
  255.         C:CastSpell(40425)
  256.         C:ReturnToSpawnPoint()
  257.         C:Despawn(30000,15000)
  258.         C:RegisterEvent("Heaven", 1000, 3)
  259. end
  260.  
  261.  
  262. function OnKilledTarget(pUnit, Event)
  263.         C:SendChatMessage(12, 0, "avoidable. yet also unavoidable")
  264.         C:CastSpell(50804, C:GetRandomPlayer(0))
  265. end
  266.  
  267.  
  268. RegisterUnitEvent(ID, 18, "C_OnS")
  269. RegisterUnitEvent(COI, 18, "CO_OnS")
  270. RegisterUnitEvent(CCI, 18, "CC_OnS")
  271. RegisterUnitEvent(ID, 2, "OnLC")
  272. RegisterUnitEvent(ID, 3, "OnKilledTarget")
  273. RegisterUnitEvent(ID, 4, "Boss_OnDeath")
  274.  
  275.  
  276.  
  277. function Strike(pUnit, Event)
  278. C:FullCastSpellOnTarget(64592, C:GetMainTank())
  279. end
  280.  
  281.  
  282. function Phase(pUnit, Event)
  283. C:FullCastSpellOnTarget(64412, C:GetRandomPlayer(0))
  284. end
  285.  
  286.  
  287. function Sky(pUnit, Event)
  288.         local plr = C:GetRandomPlayer(0)
  289.         local x = plr:GetX()
  290.         local y = plr:GetY()
  291.         local z = plr:GetZ()
  292.         C:CastSpellAoF(X, Y, Z, 62301)
  293. end
  294.  
  295.  
  296. function SBomb(pUnit, Event)
  297.         local PS = C:GetRandomPlayer(0)
  298.         local x = PS:GetX()
  299.         local y = PS:GetY()
  300.         local z = PS:GetZ()
  301.         C:CastSpellAoF(X, Y, Z, 67475)
  302. end
  303.  
  304.  
  305. function Flame(pUnit, Event)
  306.         local plr = C:GetRandomPlayer(0)
  307.         local x = plr:GetX()
  308.         local y = plr:GetY()
  309.         local z = plr:GetZ()
  310.         C:CastSpellAoF(X, Y, Z, 41481)
  311. end
  312.  
  313.  
  314. function BB(pUnit, Event)
  315. C:CastSpell(64584)
  316. end
  317.  
  318.  
  319. function Heaven(pUnit, Event)
  320. C:FullCastSpellOnTarget(64487, C:GetMainTank(0))
  321. end
  322.  
  323.  
  324. function Enraged(pUnit, Event)
  325. C:CastSpell(47008)
  326. end
  327.  
  328.  
  329. function MI(pUnit, event)
  330. C:ChannelSpell(29956, C:GetRandomPlayer(0))
  331. end
  332.  
  333.  
  334.  
  335. function AoF(pUnit, event)
  336.         local plr = C:GetRandomPlayer(0)
  337.         sTimer=math.random(1, 6)
  338.         local x = plr:GetX()
  339.         local y = plr:GetY()
  340.         local z = plr:GetZ()
  341.         if sTimer == 1 then
  342.         C:CastSpellAoF(X, Y, Z,62301)
  343.         end
  344.         if sTimer == 2 then
  345.         C:CastSpellAoF(X, Y, Z, 62301)
  346.         end
  347.         if sTimer == 3 then
  348.         C:CastSpellAoF(X, Y, Z, 62301)
  349.         end
  350.         if sTimer == 4 then
  351.         C:CastSpellAoF(X, Y, Z, 59382)
  352.         end
  353.         if sTimer == 5 then
  354.         C:CastSpellAoF(X, Y, Z, 59382)
  355.         end
  356.         if sTimer == 6 then
  357.         C:CastSpellAoF(X, Y, Z, 59382)
  358.         end
  359. end
  360.  
  361.  
  362.  
  363. function Slash(pUnit, Event)
  364. C:FullCastSpellOnTarget(63493, C:GetMainTank(0))
  365. end
  366.  
  367.  
  368. function Slash(pUnit, Event)
  369. CC:FullCastSpellOnTarget(63493, CC:GetMainTank(0))
  370. end
  371.  
  372.  
  373. function Slash(pUnit, Event)
  374. CO:FullCastSpellOnTarget(63493, CO:GetMainTank(0))
  375. end
  376.  
  377.  
  378. function Blast(pUnit, Event)
  379. C:FullCastSpellOnTarget(67999, C:GetRandomPlayer(0))
  380. end
  381.  
  382. function AE(pUnit, Event)
  383. C:CastSpell(29973)
  384. end
  385.  
  386.  
  387. function AE(pUnit, Event)
  388. CO:CastSpell(29973)
  389. end
  390.  
  391.  
  392. function AE(pUnit, Event)
  393. CC:CastSpell(29973)
  394. end
  395.  
  396.  
  397. function CL(pUnit, Event)
  398. C:FullCastSpellOnTarget(62445, C:GetRandomPlayer(0))
  399. end
  400.  
  401.  
  402. function CL(pUnit, Event)
  403. CC:FullCastSpellOnTarget(62445, CC:GetRandomPlayer(0))
  404. end
  405.  
  406.  
  407. function CL(pUnit, Event)
  408. CO:FullCastSpellOnTarget(62445, CO:GetRandomPlayer(0))
  409. end