+++rep exacute! nice work. but i have a question and it´s not about your script.
I´ve made a simple gameobject script to summon a npc at the player who clicked the gameobject position. here´s the code:
function footmanarmy_OnUse(pUnit,event)
x = pUnit:GetX();
y = pUnit:GetY();
z = pUnit:GetZ();
o = pUnit:GetO();
pUnit:SpawnCreature(17257, x, y, z, o, 80, 43200000);
end
RegisterGameObjectEvent(1000084, 2, "footmanarmy_OnUse");
is something wrong with my code? I´ve made the script with notepad, changed the extension of it to .lua and had saved it in the scripts folder in my "Scripted's 2.4.3 Blizzlike Repack" (can´t remember who made it). The gameobject in question its a gameobject with id 1000084 and its a button (code 1 in mysql) and still the script doesn´t work when i click it in game. What´s possibly could be wrong? It´s because it hasn´t been loaded in the arc-emu world.exe when i open the server? What can i do to make it be loaded? (Obs: i know it won´t summon a footman but magtheridon. This is just a test script. )