Depends on how you would want to implement things.okay dokie well where would i start?
You need call that functions inside of hook chose form here
https://github.com/ElunaLuaEngine/Eluna/blob/master/HookMgr.h#L31
And register hook at the bottom of file.
I can't help really more because i don't understand what you wanna do with that flag.
Use the on gossip hello hook for the gameobject and when that triggers, despawn the gameobject and apply the aura on the clicker. (how does wsg flag work?)
local flagid = 100000 -- GO id 100000 for ally 100001 for horde
function Tagflag(event, player, go)
do stuff
end
RegisterGameObjectGossipEvent(flag_id, 1, Tagflag)
RegisterGameObjectGossipEvent(flag_id+1, 1, Tagflag)
that still didnt work