Code:
local npcid = 100000
function warp_on_gossip_talk(unit, event, player)
unit:CreatGossipMenuForPlayer(3543, player)
unit:MenuAddItem(player, 0, "Horde Cities", 1, 0)
unit:MenuAddItem(player, 0, "Azeroth Instances", 2, 0)
unit:MenuAddItem(player, 0, "Kalimdor Instances", 3, 0)
unit:MenuAddItem(player, 0, "Remove Rez Sickness", 5, 0)
unit:MenuSendToPlayer(player)
end
function warp_on_gossip_select(unit, event, player, id, intid, code)
if(intid == 1) then
unit:CreateGossipMenuForPlayer(3542, player)
unit:MenuAddItem(player, 1, "Orgrimmar", 6, 0)
unit:MenuAddItem(player, 1, "Undercity", 7, 0)
unit:MenuAddItem(player, 1, "Thunder Bluff", 8, 0)
unit:MenuAddItem(player, 1, "Silvermoon City", 9, 0)
unit:MenuAddItem(player, 1, "[Back]", 100, 0)
unit:MenuSendToPlayer(player)
end
if(intid == 2) then
unit:CreatGossipMenuForPlayer(3542, player)
unit:MenuAddItem(player, 2, "Azeroth Raids", 101, 0)
unit:MenuAddItem(player, 2, "Shadowfang Keep", 10, 0)
unit:MenuAddItem(player, 2, "Scarlet Monestary", 11, 0)
unit:MenuAddItem(player, 2, "Stratholme", 12, 0)
unit:MenuAddItem(player, 2, "Scholomance", 13, 0)
unit:MenuAddItem(player, 2, "Gnomeregan", 14, 0)
unit:MenuAddItem(player, 2, "Uldaman", 15, 0)
unit:MenuAddItem(player, 2, "Sunken Temple", 16, 0)
unit:MenuAddItem(player, 2, "Blackrock Spire", 17, 0)
unit:MenuAddItem(player, 2, "Deadmines", 21, 0)
unit:MenuAddItem(player, 2, "[Back]", 100, 0)
unit:MenuSendToPlayer(player)
end
if(intid == 3) then
unit:CreateGossipMenuForPlayer(3542, player)
unit:MenuAddItem(player, 3, "Zul'Farrak", 18, 0)
unit:MenuAddItem(player, 3, "Ragefire Chasm", 19, 0)
unit:MenuAddItem(player, 3, "Wailing Caverns", 20, 0)
unit:MenuAddItem(player, 3, "Blackfathom Depths", 22, 0)
unit:MenuAddItem(player, 3, "Razorfen Downs", 23, 0)
unit:MenuAddItem(player, 3, "Razorfen Kraul", 24, 0)
unit:MenuAddItem(player, 3, "Maraudon", 25, 0)
unit:MenuAddItem(player, 3, "Dire Maul", 26, 0)
unit:MenuAddItem(player, 3, "[Back]", 100, 0)
unit:MenuSendToPlayer(player)
end
if(intid == 5) then
pUnit:CastSpellOnTarget(15007)
player:UnlearnSpell(15007)
pUnit:GossipComplete(player)
end
if(intid == 6) then
player:Teleport(1, 1498.845215, -4414.937988, 22.203)
end
if(intid == 7) then
player:Teleport(1, 1530.256592, 210.98, -43.1)
end
if(intid == 8) then
player:Teleport(0, -1284.997437, 179.616898, 129)
end
if(intid == 9) then
player:Teleport(0, 9459.475586, -7280.01, 14.23)
end
if(intid == 10) then
player:Teleport(0, -246.061758, 1533.107544, 77.09)
end
if(intid == 11) then
player:Teleport(0, 2892.173584, -811.338379, 160.34)
end
if(intid == 12) then
player:Teleport(0, 3354.986084, -3379.198486, 144.7871937)
end
if(intid == 13) then
player:Teleport(0, 1243.319825, -2591.356201, 90.192810)
end
if(intid == 14) then
player:Teleport(0, -5182.606934, 617.909424, 405.46)
end
if(intid == 15) then
player:Teleport(0, -6070.064941, -2955.942627, 209.78)
end
if(intid == 16) then
player:Teleport(0, -10451.191406, -3822.810303, 18.07)
end
if(intid == 17) then
player:Teleport(0, -7495.056129, -1116.887695, 265.74)
end
if(intid == 21) then
player:Teleport(0, -11209.875000, 1669.595093, 24.933108)
end
if(intid == 22) then
player:Teleport(1, 4139.332031, 891.448730, -18.947780)
end
if(intid == 23) then
player:Teleport(1, -4653.043945, -2501.171143, 81.194329)
end
if(intid == 24) then
player:Teleport(1, -4464.919922, -1666.239990, 81.892128)
end
if(intid == 25) then
player:Teleport(349, 752.909973, -616.530029, -33.110001)
end
if(intid == 26) then
player:Teleport(1, -3752.292725, 1044.019287, 162.183167)
end
RegisterGossipEvent(600002 , 1, "warp_on_gossip_talk")
RegisterGossipEvent(600002 , 2, "warp_on_gossip_select")
Code:
INSERT INTO `creature_names` VALUES ('100000', 'Teleport', 'MMOwned', '', '0', '7', '0', '0', '0', null, '16202', '16202', '0', '0', '1', '1', '1', null);
INSERT INTO `creature_proto` VALUES ('100000', '70', '70', '35', '10000000', '10000000', '10000000', '1', '1', '1800', '0', '1500', '2500', '1800', '500', '650', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '36000', '0', '0', '0', '0', '0', '0', '0', '1', '0', 'MEMO', '0', '0', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0');