Code:
logcol(7)
print "AMP Gaming Teleporter v.2 is Now Loaded!"
print " Scripted and Modded by Dimie "
logcol(13)
local npcid = 1000040 ---- This tells the Script to use the local npc id of your Teleporter (set this to yours!)
function On_Gossip_Talk(unit, event, player)
if(player:IsInCombat() == true) then
else
end
unit:GossipCreateMenu(3544, player, 0)
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then ----- This is telling the teleporter to recognize the Alliance Race Only
unit:GossipMenuAddItem(6, "|c0033CCMain Cities", 600, 0)
unit:GossipMenuAddItem(7, "|cCC0000Attack Orgrimmar!", 299, 0)
unit:GossipMenuAddItem(7, "|c0033CCAlliance Mall", 701, 0)
unit:GossipMenuAddItem(6, "|c0033CCAlliance Custom Areas", 199, 0)
end
if(player:IsInCombat() == true) then
else
local race=player:GetPlayerRace()
if race==2 or race==5 or race==6 or race==8 or race==10 then ----- This is telling the teleporter to recognize the Horde Race Only
unit:GossipMenuAddItem(4, "|cCC0000Main Cities", 601, 0)
unit:GossipMenuAddItem(7, "|c0033CCAttack Stormwind!", 298, 0)
unit:GossipMenuAddItem(7, "|cCC0000Horde Mall", 700, 0)
unit:GossipMenuAddItem(4, "|cCC0000Horde Custom Areas", 198, 0)
end
unit:GossipMenuAddItem(0, "|cFF6600Gurubashi Arena", 45, 0)
unit:GossipMenuAddItem(0, "|cFF6600DireMaul Arena", 43, 0)
unit:GossipMenuAddItem(0, "|cFF6600Arena of Blood", 39, 0)
unit:GossipMenuAddItem(0, "|cFF6600Ring of Trials", 37, 0)
unit:GossipMenuAddItem(6, "|cFF6600Please Buff Me!", 209, 0)
unit:GossipMenuAddItem(6, "|cFF6600Heal Me Please!", 102, 0)
unit:GossipMenuAddItem(0, "|cFF6600Remove Ressurection Sickness", 900, 0)
end
end
function On_Gossip_Select (unit, event, player, id, intid, code)
if(intid == 298) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "|c0033CCAttackStormwind!", 298, 0)
unit:GossipSendMenu(player)
end
if(intid == 299) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "|cCC0000AttackOrgrimmar!", 299, 0)
unit:GossipSendMenu(player)
end
if(intid == 601) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "|cCC0000Orgrimmar", 602, 0)
unit:GossipMenuAddItem(2, "|cCC0000Undercity", 603, 0)
unit:GossipMenuAddItem(2, "|cCC0000Thunder Bluff", 604, 0)
unit:GossipMenuAddItem(2, "|cCC0000Silvermoon", 605, 0)
unit:GossipSendMenu(player)
end
if(intid == 600) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "|c0033CCStormwind", 606, 0)
unit:GossipMenuAddItem(2, "|c0033CCIronforge", 607, 0)
unit:GossipMenuAddItem(2, "|c0033CCDarnassus", 608, 0)
unit:GossipMenuAddItem(2, "|c0033CCExodar", 609, 0)
unit:GossipSendMenu(player)
end
if(intid == 700) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "|cCC0000Horde Mall", 702, 0)
end
if(intid == 701) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "|c0033CCAlliance Mall", 703, 0)
end
if(intid == 209) then
unit:GossipCreateMenu(3543, player, 0)
unit:FullCastSpellOnTarget(48100, player)
unit:FullCastSpellOnTarget(48102, player)
unit:FullCastSpellOnTarget(48104, player)
unit:FullCastSpellOnTarget(58449, player)
unit:FullCastSpellOnTarget(58451, player)
unit:FullCastSpellOnTarget(58452, player)
unit:FullCastSpellOnTarget(53307, player)
unit:FullCastSpellOnTarget(48469, player)
unit:FullCastSpellOnTarget(48470, player)
unit:GossipSendMenu(player)
end
if(intid == 102) then
unit:GossipCreateMenu(3543, player, 0)
unit:FullCastSpellOnTarget(71782, player)
unit:GossipSendMenu(player)
end
if(intid == 900) then
unit:GossipCreateMenu(62, player, 0)
player:LearnSpell(15007)
player:UnlearnSpell(15007)
unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
unit:GossipSendMenu(player)
end
if(intid == 602) then
player:Teleport(1, 1484, -4417, 25)
end
if(intid == 603) then
player:Teleport(0, 1831, 238, 60)
end
if(intid == 604) then
player:Teleport(1, -1277, 118, 131)
end
if(intid == 605) then
player:Teleport(530, 9413, -7277, 14)
end
if(intid == 606) then
player:Teleport(0, -8913.23, 554.633, 94.7944)
end
if(intid == 607) then
player:Teleport(0, -4981.25, -881.542, 502.66)
end
if(intid == 608) then
player:Teleport(1, 9948, 2413, 1327)
end
if(intid == 609) then
player:Teleport(530, -4014.080078, -11895.799805, -1.990842)
end
if(intid == 700) then
player:Teleport(1, 2101.120117, -4716.689941, 40.871601)
end
if(intid == 701) then
player:Teleport(0, -8623.069336, 775.457031, 96.650803)
end
if(intid == 45) then
player:Teleport(0, -13243.240234, 197.949799, 32.112690)
end
if(intid == 43) then
player:Teleport(1, -3760.763672, 1154.895996, 127.435883)
end
if(intid == 39) then
player:Teleport(530, 2898.944580, 5961.678223, 4.518280)
end
if(intid == 37) then
player:Teleport(530, -2043.349976, 6654.839844, 14.051570)
end
end
RegisterUnitGossipEvent(1000040, 1, "On_Gossip_Talk")
RegisterUnitGossipEvent(1000040, 2, "On_Gossip_Select")