Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Ascent [Lua] Archavon the Stone Watcher

C++ WoW Scripter
Joined
Mar 20, 2008
Messages
130
Reaction score
2
Hi,

I've been learning Lua now for like 2 weeks and have been working on scripts for the bosses in Vault of Archavon for people who have servers with this instance working.

(Works in Arcemu you just need to spawn the bosses and trash)

Disclaimer: This script is the first ever script i have made in Lua and i can guarantee it is NOT 100% blizzlike as i cannot afford to play retail to run the proper encounter.

If you find any errors with it, feel free to fix them.

PHP:
function Arch_OnCombat(pUnit, event)
    pUnit:RegisterEvent("Arch_Shards", 6000, 0)
    pUnit:RegisterEvent("Arch_Leap", 11200, 0)
    pUnit:RegisterEvent("Arch_Cloud", 25000, 0)
    pUnit:RegisterEvent("Arch_Stomp", 20000, 0)
    pUnit:RegisterEvent("Arch_Impale", 15000, 0)
end

function Arch_Shards(pUnit, event)
    pUnit:FullCastSpellOnTarget(58695, pUnit:GetMainTank())
end

function Arch_Leap(pUnit, event)
    pUnit:FullCastSpell(58963, pUnit:GetRandomPlayer(0))
end

function Arch_Cloud(pUnit, event)
    pUnit:FullCastSpellOnTarget(58965, pUnit:GetMainTank())
end

function Arch_Stomp(pUnit, event)
    pUnit:FullCastSpellOnTarget(58663, pUnit:GetMainTank())
end

function Arch_Impale(pUnit, event)
    pUnit:FullCastSpellOnTarget(58666, pUnit:GetMainTank())
end

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

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

function Arch_KillTarget(pUnit, event)
end

RegisterUnitEvent(31125, 1, "Arch_OnCombat")
RegisterUnitEvent(31125, 2, "Arch_LeaveCombat")
RegisterUnitEvent(31125, 3, "Arch_KillTarget")
RegisterUnitEvent(31125, 4, "Arch_Death")
 
Back
Top