Title says it all
Heres my script:
function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("You Can't Access This NPC When You Are In Combat!")
else
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(2, "Mall", 1, 0)
pUnit:GossipMenuAddItem(2, "Arena", 2, 0)
pUnit:GossipMenuAddItem(2, "Teddy", 3, 0)
pUnit:GossipMenuAddItem(2, "Gurtogg",4, 0)
pUnit:GossipMenuAddItem(2, "Ragefire Chams (Gear of Fire)",5, 0)
pUnit:GossipMenuAddItem(2, "Deadmines (Gear of Death)",6, 0)
pUnit:GossipMenuAddItem(2, "Magister's Terrace (Gear of Light)",7, 0)
pUnit:GossipMenuAddItem(2, "Utgarde Keep (Gear of Ice)",8, 0)
pUnit:GossipMenuAddItem(8, "Remove Ressurection Sickness", 92, 0)
pUnit:GossipSendMenu(player)
end
end
function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code)
if(intid == 1) then
player:Teleport(1, 16206.001953, 16216.397461, 1.107386)
end
if(intid == 2) then
player:Teleport(0, -13261.779297, 162.637390, 36.176392)
end
if(intid == 3) then
player:Teleport(0, -13037.130859, -639.039124, 53.037117)
end
if(intid == 4) then
player:Teleport(0, -13172.045898, 335.059357, 42.980564)
end
if(intid == 5) then
player:Teleport(389, 2.293890, -15.234735, -17.857386)
end
if(intid == 6) then
player:Teleport(0, -11207.960938, 1674.364380, 24.62722
end
if(intid == 7) then
player:Teleport(585, 8.906498, 6.065192, -2.795297)
end
if(intid ==then
player:Teleport(574, 262.385101, -76.708809, 190.421875)
end
if(intid == 92) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
player:GossipComplete()
end
end
RegisterUnitGossipEvent(316, 1, "WarpNPC_OnGossipTalk")
RegisterUnitGossipEvent(316, 2, "WarpNPC_OnGossipSelect")