Code:
local itemid = 24066
function Item_Trigger(item, event, player)
Item_menu(item, player)
end
function Item_menu(item, player)
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("You are in combat!")
else
item:GossipCreateMenu(3543, player, 0)
item:GossipMenuAddItem(4, "Leveling road start", 1, 0)
item:GossipMenuAddItem(4, "Remove Resurrection Sickness", 2, 0)
item:GossipMenuAddItem(4, "Mall", 3, 0)
item:GossipMenuAddItem(4, "Stair event", 4, 0)
item:GossipMenuAddItem(4, "Ring of Anahiliation PvP", 5, 0)
item:GossipSendMenu(player)
end
end
function OnSelect(item, event, player, id, intid, code)
if (intid == 1) then
player:Teleport(1, 4615.451172, -3863.259521, 944.180542)
player:GossipComplete()
end
if (intid == 2) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
player:GossipComplete()
end
if (intid == 3) then
player:Teleport(1, -8510.530273, 2016.457642, 104.749130)
player:GossipComplete()
end
if (intid == 4) then
player:Teleport(1, -7756.266602, -4964.673340, 6.632889)
player:GossipComplete()
end
if (intid == 5) then
player:Teleport(1, -3639.852051, 1093.125610, 154.786072)
player:GossipComplete()
end
end
RegisterItemGossipEvent(24066,1,"Item_Trigger")
RegisterItemGossipEvent(24066,2,"OnSelect")
I am using LuaHypArc.