I have just started to script, like I have only been doing this for 30 minutes or so. I am working on a script that I am going to try and run on my own private server, fix it and then make it available for public release. Now the question I have is when using the GetHealthPct command will MobX in this script Change phases properly, or do I need to edit the way this is set up. Right now in the structure it is in I don't see how that work's correctly but like I said I am new. Feel free to PM me with help
Also when using the time in milliseconds information. Will this make the NPC cast the spell once every X amount of milliseconds or will the mob wait X seconds and then spam the spell however many times
function Salix On_combat (pUnit, Event)
pUnit:GetHealthPct() <90
pUnit:RemoveEffects();
pUnit:SendChatMessage (12, 0,"Do you not know who I am? I have trampled worlds much more powerful than your own. It's to bad, you would have been a welcome addition to my army. Don't worry, I'll make this quick.")
pUnit:RegisterEvent ("Salix_Deathcoil", 10000, 1)
pUnit:RegisterEvent ("phase_1", 1000, 0)
end
end
#DeathCoil Info
function Salix_Deathcoil (pUnit, Event)
pUnit:CastSpellOnTarget (27223, pUnit:GetMainTank())
end
#Phase 1
function phase_1(pUnit, Event)
if pUnit:GetHealthPct() < 75
pUnit:RemoveEffects();
pUnit:SendChatMessage(12, 0,"Enough Fooling Around, Time to Die!")
pUnit:RegisterEvent ("Salix_ManaBomb", 45000, 3)
pUnit:RegisterEvent ("Salix_ManaBurn", 10000, 1000)
pUnit:RegisterEvent ("Salix_AESilence", 6000, 30)
pUnit:RegisterEvent ("phase_2", 1000, 0)
end
end
<spell info and such folows as well as phase 2 info>