Code:
--------------------------------
------------BlazeFury-----------
--------------------------------
------------Extreme-------------
-----Too Extreme For Words------
--------------------------------
---------Credits to TmX---------
function TmXtele_OnGossipTalk(pUnit, event, player, pMisc)
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("You Are In Combat!")
else
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(0, "cFF0000FFAlliance Mall", 1, 0)
pUnit:GossipMenuAddItem(2, "|cFF8B008BChilling Zone", 3, 0)
pUnit:GossipMenuAddItem(0, "|cFFFFFFFFDonator Zone |r |cFFFF0000[Requires Password]", 9, 1)
pUnit:GossipMenuAddItem(2, "|cFF00FF00PvP Mall", 4, 0)
pUnit:GossipMenuAddItem(2, "|cFFFF0000Gurubashi Arena", 5, 0)
pUnit:GossipMenuAddItem(8, "|cFFFF7F50Buff Me", 10, 0)
pUnit:GossipMenuAddItem(8, "|cFFF0F8FFHeal Me", 8, 0)
pUnit:GossipMenuAddItem(8, "|cFF808080Reset My Talent Points", 7, 0)
pUnit:GossipMenuAddItem(8, "|cFFFFFFFFRemove Resurrection Sickness", 6, 0)
else
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(0, "|cFF8B008BHorde Mall", 2, 0)
pUnit:GossipMenuAddItem(2, "|cFF8B008BChilling Zone", 3, 0)
pUnit:GossipMenuAddItem(0, "|cFFFFFFFFDonator Zone |r |cFFFF0000[Requires Password]", 9, 1)
pUnit:GossipMenuAddItem(2, "|cFF00FF00PvP Mall", 4, 0)
pUnit:GossipMenuAddItem(2, "|cFFFF0000Gurubashi Arena", 5, 0)
pUnit:GossipMenuAddItem(8, "|cFFFF7F50Buff Me", 10, 0)
pUnit:GossipMenuAddItem(8, "|cFFF0F8FFHeal Me", 8, 0)
pUnit:GossipMenuAddItem(8, "|cFF808080Reset My Talent Points", 7, 0)
pUnit:GossipMenuAddItem(8, "|cFFFFFFFFRemove Resurrection Sickness", 6, 0)
pUnit:GossipSendMenu(player)
end
end
function TmXtele_OnGossipSelect(pUnit, event, player, id, intid, code)
if(intid == 1) then
player:Teleport(0, -412.675476, 1544.823608, 17.271551)
end
end
if(intid == 2) then
player:Teleport(0, -11213.900391, 1768.729980, -29.880199)
end
if(intid == 3) then
player:Teleport(1, -10730.184570, 2476.284180, 7.344282)
end
if (intid == 9) and
(Code == "11546712") then -- You should change this code.
player:Teleport(1, 16201.643555, 16211.781250, 1.057879)
player:GossipComplete()
elseif
Code ~= nil then
player:SendAreaTriggerMessage("|cFFFF0000Incorrect Password!")
player:GossipComplete()
end
if(intid == 4) then
player:Teleport(571, 3976.618408, -3786.644775, 221.291138)
end
if(intid == 5) then
player:Teleport(0, -13255.262695, 189.721237, 31.602915)
end
if (intid == 4) then
Unit:CastSpellOnTarget(25898, player)
Unit:CastSpellOnTarget(48102, player)
Unit:CastSpellOnTarget(58449, player)
Unit:CastSpellOnTarget(48469, player)
Unit:CastSpellOnTarget(58451, player)
Unit:CastSpellOnTarget(58453, player)
Unit:CastSpellOnTarget(48073, player)
player:GossipComplete()
if(intid == 8) then
player:CastSpell(37455)
end
if(intid == 7) then
player:ResetTalents()
pUnit:SendChatMessage(12, 0, "Your Talent Points Have Been Reseted!")
pUnit:GossipComplete(player)
end
if(intid == 6) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
player:GossipComplete()
end
end
RegisterUnitGossipEvent(75001, 1, "TmXtele_OnGossipTalk")
RegisterUnitGossipEvent(75001, 2, "TmXtele_OnGossipSelect")
end