Tag Board
500
Our poll
Rate my site
Total of answers: 8
Statistics
Thursday, 2025-01-30, 5:33 PM
Welcome Guest

A new script =P - Forum

[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: hells-labrinth  
A new script =P
hells-labrinthDate: Saturday, 2009-05-02, 11:12 PM | Message # 1
Admin
Group: Administrators
Messages: 20
Reputation: 0
Status: Offline
Code
RegisterUnitEvent(12435, 1, "ris_oncombat")

function ris_oncombat(punit, event)
pUnit:SendChatMessage(12, 0, "I am the Soul Harvester!"
pUnit:RegisterEvent("ris_Spell", 5000, 20)
pUnit:RegisterEvent("ris_second", 1000, 0)
pUnit:RegisterEvent("ris_math", 15000, 0)
end

function ris_spell(pUnit, event)
pUnit: FullCastSpell(48782)
StopMovement(2600)
pUnit:FullCastSpellOnTarget(59171, 16000, 10)
StopMovement(2600)
end

funcation ris_math(pUnit, event)
local choice = math.random(1, 3)
  if choice == 1 and (4 ~=nil) then
  pUnit:SendChatMessage(12, 0, "I have picked a random number between 1 and 3, watch out you mana, energy, or rage users. MWHAHAHA"
  pUnit:FullCastSpellOnTarget(58534, 12000, 5)
  pUnit:GetRandomPlayer(4))
elseif choice == 2 and(5 ~= nil) then
  pUnit:SendChatMessage(12, 0, "I have picked a random number between 1 and 3, watch out you mana, energy, or rage users. MWHAHAHA"
  pUnit:FullCastSpellOnTarget(42435, 20000, 7)
  pUnit:GetRandomPlayer(5))
elseif choice == 3 and(6 ~= nil) then
pUnit:SendChatMessage (12, 0, "I have picked a random number between 1 and 3, watch out you mana, energy, or rage users. MWHAHAHA"
pUnit:FullCastSpellOnTarget(55360, 15000, 8)
pUnit:GetRandomPlayer(6))
end
end

function ris_second(pUnit, event)
  if pUnit:GetHealthPct() <= 80 then
  pUnit:RemoveEvents()
pUnit:SendChatMessage(12, 0, "How Dare you try to Destroy The Soul harvestor!!!!")
  local mt = pUnit:GetMaainTank()
  if phase == 2 and (mt ~= nil) then
  pUnit:FullCastSpellOnTarget(19813, mt)
end
end

function ris_table(pUnit, event)
      local tbl=pUnit:if v:GetDistance(pUnit) <= 10 then
   for k,v in pairs(tbl) do
               pUnit:CastSpellOnTarget(59172, v)
            end
          end  

function ris_leavecombat (pUnit, event)
pUnit: RemoveEvents()
end

function ris_died(pUnit, event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(12345, 2, "ris_leavecombat")
RegisterUnitEvent(12345, 2, "ris_died")   


 
  • Page 1 of 1
  • 1
Search:

Login form
Search
Site friends
  • Create your own site