Okay, well.. I've been using alot of LUA scripts lately that did not work. I thought it was the npcs I was using. I tried a very simple LUA script just now and it did not work. I've came to the conclusion that LUA is not working on my server.
I have LUA enabled in the config file and still no-go. I respawned the npc and everything..
The script I tested that concluded my decision:
Code:
function Mikhir_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "Testing LUA")
end
function Grr Test_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "testing")
end
function testing_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "testing")
end
function testing_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(12, 0, "testing")
end
RegisterUnitEvent(35005, 1, "Mikhir_OnCombat")
RegisterUnitEvent(35005, 2, "Grr Test_OnLeaveCombat")
RegisterUnitEvent(35005, 3, "testing_OnKilledTarget")
RegisterUnitEvent(35005, 4, "testing_OnDied")
This was not the only script I tested but this is the easiest one I got and it did not work. 35005 is my NPC entry ID in the database so that is not the problem.
Code:
<ScriptBackends LUA="1"
AS="1">
AS was disabled but I enabled to test to see if that was the problem.
- I am currently using ArcEmu revision 2562