Hello, i was writing this script:
Code:
function Nex_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "I am a living death!")
end
function Nex_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
function Nex_OnKilledTarget(Unit, Event)
end
function Nex_OnDied(Unit, Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(100132, 1, "Nex_OnCombat")
RegisterUnitEvent(100132, 2, "Nex_OnLeaveCombat")
RegisterUnitEvent(100132, 3, "Nex_OnKilledTarget")
RegisterUnitEvent(100132, 4, "Nex_OnDied")
its only a SendChatMessage script but only today i started to learn
so when i start arcemu world.exe i get no errors on this script but when i come to the mob and start attacking it ingame, it wont speak and arcemu is writing this error: [string "scripts\Nex.lua"] :2: bad argument to 'SendChatMessage' (number expected, got table). So im wondering whats wrong because for me it seems fine, hope someone will answer
thanks.