Code:
function Ro_OnCombat(pUnit, event)
Unit:SendChatMessage(14, 0, "Wanna play with cold You will get frozen")
end
RegisterUnitEvent(99008, 1, "Ro_OnCombat")
function Ro_CastFrostbolt(pUnit, event)
Unit:FullCastSpellOnTarget(61594, pUnit:GetRandomPlayer(0))
Unit:SendChatMessage(14, 0, "Frost vaess! Wux geou lapiet malrak ias Ro uikulph arcaniss!")
end
RegisterUnitEvent(99008, 1, "Ro_CastFrostbolt")
function Ro_OnCombat(pUnit, event)
Unit:RegisterEvent("Ro_CastFrostbolt", 180000, 1)
end
function Ro_SummonGulSpeak1(pUnit, event)
if Unit:GetHealthPct() <= 75 then
Unit:SendChatMessage(14, 0, "De wer veditoa part di wer malrunwa, sI symmn thes Gul!")
end
end
RegisterUnitEvent(99008, 1, "Ro_SummonGulSpeak1")
function Ro_SummonGul1(pUnit, event)
if Unit:GetHealthPct() <= 75 then
Unit:SpawnCreature(99009, -6.53875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -6.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.53875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -9.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -9.63875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.63875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.93875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -11.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -11.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.73875, 156.701659, 40.384003)
end
end
RegisterUnitEvent(99008, 1, "Ro_SummonGul1")
function Ro_SummonGulSpeak2(pUnit, Event)
if Unit:GetHealthPct() <= 50 then
Unit:SendChatMessage(14, 0, "De wer veditoa part di wer malrunwa, sI symmn thes Gul!")
end
end
RegisterUnitEvent(99008, 1, "Ro_SummonGulSpeak2")
function Ro_SummonGul2(pUnit, Event)
if Unit:GetHealthPct() <= 50 then
Unit:SpawnCreature(99009, -6.53875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -6.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.53875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -9.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -9.63875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.63875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.93875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -11.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -11.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.73875, 156.701659, 40.384003)
end
end
RegisterUnitEvent(99008, 1, "Ro_SummonGul2")
function Ro_SummonGulSpeak3(pUnit, Event)
if Unit:GetHealthPct() <= 25 then
Unit:SendChatMessage(14, 0, "De wer veditoa part di wer malrunwa, sI symmn thes Gul!")
end
end
RegisterUnitEvent(99008, 1, "Ro_SummonGulSpeak3")
function Ro_SummonGul3(pUnit, Event)
if Unit:GetHealthPct() <= 25 then
Unit:SpawnCreature(99009, -6.53875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -6.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -7.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.53875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -8.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -9.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -9.63875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.63875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -10.93875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -11.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -11.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.03875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.33875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.73875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -12.83875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.13875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.43875, 156.701659, 40.384003)
Unit:SpawnCreature(99009, -13.73875, 156.701659, 40.384003)
end
end
RegisterUnitEvent(99008, 1, "Ro_SummonGul3")
Whats wrong??? I was having a "unable to load" arcemu.world error, then I chnged it this way and loads fine but ..... THE DAMN NPC doesn't do anything!!! I'm getting crazy!