For guards point of interest (markers on map)
If you're using the Eluna lua engine you can do it with Lua
Here's a working example i wrote which you can use.
-- Guards POI --
local NPC_GUARD = 90351 -- Change this to your NPC id.
local Guard = {}
function Guard.OnGossipHello(event, player, creature)
player:GossipClearMenu()
player:GossipMenuAddItem(0, "Locations", 0, 1)
player:GossipSendMenu(100, creature, menu_id)
end
function Guard.OnGossipSelect(event, player, creature, sender, id, code)
if (id == 1) then
player:GossipClearMenu()
player:GossipMenuAddItem(0, "Location One", 0, 2)
player:GossipMenuAddItem(0, "Location Two", 0, 3)
player:GossipSendMenu(100, creature, menu_id)
end
if (id == 2) then
player:GossipSendPOI(2238, 2995, 7, 75, 0, "Npc or location one") -- X,Y,icon,flags,data
player:GossipSendMenu(100, creature, menu_id)
end
if (id == 3) then
player:GossipSendPOI(2238, 2980, 7, 75, 0, "Npc or location two") -- X,Y,icon,flags,data
player:GossipSendMenu(100, creature, menu_id)
end
end
RegisterCreatureGossipEvent(NPC_GUARD, 1, Guard.OnGossipHello)
RegisterCreatureGossipEvent(NPC_GUARD, 2, Guard.OnGossipSelect)