Code:
local NPC_ID = 133799
local MallMapId = 0
local MallMapX = -11247.885741
local MallMapY = -1791.946289
local MallMapZ = -19.141843
local LevMapId = 530
local LevMapX = -1603.850098
local LevMapY = 7751.247559
local LevMapZ = -20.850187
function Tele_OnGossipTalk(pUnit, event, player)
pUnit:GossipCreateMenu(1, player, 0)
pUnit:GossipMenuAddItem(1,"|cFF0000FFMall", 1, 0)
pUnit:GossipMenuAddItem(1,"|cFFFF0000World PvP", 2, 0)
pUnit:GossipMenuAddItem(0,"|cFF800080NPC Windows", 3,0)
pUnit:GossipMenuAddItem(0,"|cFF00FF00Player Tools", 4,0)
pUnit:GossipMenuAddItem(0,"|cFF87CEEBShow My Honor", 5,0)
pUnit:GossipMenuAddItem(0,"|cFFDC143CShow My Arena Points", 6,0)
pUnit:GossipMenuAddItem(1,"|cFF808080Nevermind.", 999, 0)
pUnit:GossipSendMenu(player)
end
function Tele_OnGossipSelect(pUnit, Event, player, id, intid, code, pMisc)
if(intid == 1) then
player:Teleport(MallMapId, MallMapX, MallMapY, MallMapZ)
player:GossipComplete()
end
if(intid == 2) then
player:Teleport(LevMapId, LevMapX, LevMapY, LevMapZ)
player:GossipComplete()
end
if(intid == 3) then
pUnit:GossipCreateMenu(3545, player, 0)
pUnit:GossipMenuAddItem(0,"|cFFFFC0CBTrainer", 7,0)
pUnit:GossipMenuAddItem(0,"|cFFDB7093Bank Window", 9,0)
pUnit:GossipMenuAddItem(0,"|cFF808080Nevermind", 999,0)
pUnit:GossipSendMenu(player)
end
if(intid == 4) then
pUnit:GossipCreateMenu(3546, player, 0)
pUnit:GossipMenuAddItem(0,"|cFFC0C0C0Sex Changer", 12,0)
pUnit:GossipMenuAddItem(0,"|cFF4682B4Remove Rezz Sickness", 16,0)
pUnit:GossipMenuAddItem(0,"|cFFD8BFD8Repair", 17,0)
pUnit:GossipMenuAddItem(0,"|cFF808080Nevermind", 999,0)
pUnit:GossipSendMenu(player)
end
if (intid == 5) then
player:GetTotalHonor()
player:GossipComplete()
end
if (intid == 6) then
player:GetArenaPoints()
player:GossipComplete()
end
if (intid == 7) then
player:SendTrainerWindow(unit)
player:GossipComplete()
end
if (intid == 9) then
player:SendBankWindow(unit)
player:GossipComplete()
end
if (intid == 16) then
if(player:HasAura(15007) == true) then
player:RemoveAura(15007)
player:SendBroadcastMessage(" Resurrection Sickness Has been removed!")
else
player:SendBroadcastMessage("You do not currently have Resurrection Sickness!")
player:GossipComplete()
end
if (intid == 17) then
player:RepairAllPlayerItems()
player:GossipComplete()
end
if (intid == 12 and Player:GetGender() == 0) then
player:SendBroadcastMessage("Your gender has been changed!")
Player:SetGender(1)
elseif (Player:GetGender() == 1) then
Player:SendBroadcastMessage("Your gender has been changed!")
Player:SetGender(0)
end
if(intid == 999) then
player:GossipComplete()
end
end
RegisterUnitGossipEvent(NPC_ID, 1, "Tele_OnGossipTalk")
RegisterUnitGossipEvent(NPC_ID, 2, "Tele_OnGossipSelect")