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, "Alliance Mall", 50, 0)
item:GossipMenuAddItem(4, "Horde Mall", 20, 0)
item:GossipMenuAddItem(4, "Hyjal", 21, 0)
item:GossipMenuAddItem(4, "Gurubashi Arena", 22, 0)
item:GossipSendMenu(player)
end
end
function OnSelect(item, event, player, id, intid, code )
if (intid == 20) then
player:Teleport(1, 000,000, 000)
player:GossipComplete()
end
if (intid == 21) then
player:Teleport(1, 4611.194824, -3863.295898, 944.186096)
player:GossipComplete()
end
if (intid == 22) then
player:Teleport(0, -13284.796875, 124.646034, 25.565922)
player:GossipComplete()
end
if (intid == 50) then
player:Teleport(1, 000, 000, 000)
player:GossipComplete()
end
if (intid == 90) then
item:GossipCreateMenu(3543, player, 0)
item:GossipMenuAddItem(4, "Health", 91, 0)
item:GossipMenuAddItem(4, "Mana", 92, 0)
item:GossipSendMenu(player)
end
if (intid == 1000) then
item:GossipCreateMenu(3543, player, 0)
item:GossipMenuAddItem(4, "Alliance Mall", 50, 0)
item:GossipMenuAddItem(4, "Horde Mall", 20, 0)
item:GossipMenuAddItem(4, "Hyjal", 21, 0)
item:GossipSendMenu(player)
end
end
RegisterItemGossipEvent(itemid,1,"Item_Trigger")
RegisterItemGossipEvent(itemid,2,"OnSelect")-Made by Arthax [aka me]: Give credit when due!














