Corporal
Can someone please help me with my lua script.
Hello, I'm trying to make a small questing hub for my girlfriend when she goes on my private server and I wanted some npc's to automatically say stuff when you go within range of them, kind of like the begger in stormwind. I looked at a guide on internet on how to do such a script and what I came up with is
function FarmerGriffith_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "Hey, Can you please help me?")
end
function FarmerGriffith_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
function FarmerGriffith_OnKilledTarget(Unit, Event)
end
function FarmerGriffith_OnDied(Unit, Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(20123, 1, "FarmerGriffith_OnCombat")
RegisterUnitEvent(20123, 2, "FarmerGriffith_OnLeaveCombat")
RegisterUnitEvent(20123, 3, "FarmerGriffith_OnKilledTarget")
RegisterUnitEvent(20123, 4, "FarmerGriffith_OnDied")
I don't know if it will work, can any good lua scripters tell me if this will do what I want it to, and how I can add it into my server, I have MySQL and I'm using ArcEmu.
Thanks in advance.
Last edited by ConnorJ; 08-19-2013 at 06:16 PM.
These ads disappear when you log in.