Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Config
- local ITEM_ID = 6948
- function On_Gossip(event, player, item)
- if (player:IsInCombat()) then -- Show main menu
- player:GossipComplete()
- else
- -- Menus
- player:GossipMenuAddItem(1, "Mall", 0, 1)
- player:GossipMenuAddItem(2, "Booty Bay Fishing Extravaganza(5 silver)", 0, 2)
- player:GossipMenuAddItem(9, "Gurubashi Arena", 0, 3)
- player:GossipMenuAddItem(9, "Zul Gurub Arena", 0, 5)
- player:GossipMenuAddItem(7, "Elwynn Forest", 0, 4)
- player:GossipMenuAddItem(7, "Duskwood", 0, 6)
- player:GossipMenuAddItem(7, "Daily Quest Zone", 0, 7)
- player:GossipMenuAddItem(3, "Custom Instances", 0, 8)
- player:GossipMenuAddItem(5, "Nevermind..", 0, 30)
- player:GossipSendMenu(1, item)
- end
- end
- function On_Select(event, player, item, sender, intid, code)
- -- Teleports
- if (intid == 1) then
- player:Teleport(1, -7991.360840, -5284.311035, 0.574648, 3.484632)
- player:GossipComplete()
- end
- -- Booty Bay Fishing
- if (intid == 2) then
- if player:GetCoinage() >= 500 then
- else
- player:SendAreaTriggerMessage("You need 5 silver to be able to teleport to Booty Bay.")
- return false
- end
- player:SendAreaTriggerMessage("Shady Dealer has stolen 5 silver from you.")
- player:ModifyMoney(-500)
- player:Teleport(0, -14369.812500, 430.950867, 7.354751, 3.466343)
- player:GossipComplete()
- end
- -- Gurubashi Arena
- if (intid == 3) then
- player:Teleport(0, -13203.44, 221.771194, 33.225346, 3.179693)
- player:GossipComplete()
- end
- -- Hogger
- if (intid == 4) then
- player:Teleport(0, -10014.330078, 610.628235, 39.110691, 1.740194)
- player:GossipComplete()
- end
- -- Zul Gurub Arena
- if (intid == 5) then
- player:Teleport(0, -11953.691406, -1841.716064, 55.390076, 6.229768)
- player:GossipComplete()
- end
- -- Duskwood
- if (intid == 6) then
- player:Teleport(0, -10864.670898, 600.864197, 31.345909, 4.737879)
- player:GossipComplete()
- end
- -- Alcaz Island
- if (intid == 7) then
- player:GossipComplete()
- player:Teleport(1, -2697.097900, -4671.856934, 10.163723, 3.114920)
- end
- if (intid == 8) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(0, "Ragefire Chasm (Tier 1)", 0, 9)
- player:GossipMenuAddItem(0, "Shadowfang Keep (Tier 2)", 0, 10)
- player:GossipMenuAddItem(0, "Razorfen Kraul (Tier 3)", 0, 11)
- player:GossipMenuAddItem(0, "Hellfire Ramparts (Tier 4)", 0, 12)
- player:GossipMenuAddItem(0, "Blood Furnace (Tier 5)", 0 , 13)
- player:GossipMenuAddItem(0, "Shadow Labyrinth (Tier 6)", 0, 14)
- player:GossipMenuAddItem(0, "Zul Farrak (Tier 7)", 0, 15)
- player:GossipMenuAddItem(0, "Nevermind..", 0 , 30)
- player:GossipSendMenu(1, item)
- end
- if (intid == 9) then
- player:Teleport(389, 1.092663, -22.955704, -20.326614, 4.390)
- player:GossipComplete()
- end
- if (intid == 30) then
- player:GossipComplete()
- end
- end
- RegisterItemGossipEvent(ITEM_ID, 1, On_Gossip)
- RegisterItemGossipEvent(ITEM_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement