Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Valnyr-Gaming Teleporter.
- -- Credits by RakorZ - ZxOxZ.
- ValnyrTeleporter = {}
- function ValnyrTeleporter.OnTeleporterTalk(pUnit, event, player)
- if (player:IsInCombat() == true) then
- player:SendAreaTriggerMessage("|CFFFF0000You cannot use the Teleporter while you are in combat!|R")
- player:GossipComplete()
- else
- pUnit:GossipCreateMenu(1, player, 0)
- if player:GetPhase() == 2 then
- pUnit:GossipMenuAddItem(3, "|CFF00008BValnyr-Gaming - Mall.|R", 8, 0)
- else
- pUnit:GossipMenuAddItem(3, "|CFF00008BValnyr-Gaming - Mall.|R", 10, 0)
- pUnit:GossipMenuAddItem(9, "|CFF00008BValnyr-Gaming PvP Zones.|R", 30, 0)
- pUnit:GossipMenuAddItem(9, "|CFF00008BValnyr-Gaming Dueling Zone.|R", 50, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BValnyr-Gaming Obstacle Courses.|R", 20, 0)
- pUnit:GossipMenuAddItem(9, "|CFF00008BValnyr-Gaming World Bosses.|R", 450, 0)
- if (player:GetPlayerClass() == "Hunter") then
- pUnit:GossipMenuAddItem(8, "|CFF00008FValnyr-Gaming Hunter Pets Zone.|R", 90, 0)
- end
- pUnit:GossipMenuAddItem(5, "|CFF800000Remove my Ressurection Sickness.|R", 80, 0)
- pUnit:GossipMenuAddItem(5, "|CFF800000Valnyr-Gaming - Player Tools.|R", 15, 0)
- end
- pUnit:GossipMenuAddItem(5, "Close the Teleporter Window.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- end
- function ValnyrTeleporter.OnTeleporterSelect(pUnit, event, player, id, intid, code)
- if (intid == 8) then
- player:SetPhase(1)
- player:Teleport(631, 4493.549805, 2769.330078, 351.101990, 6.280330)
- player:GossipComplete()
- end
- -- Hunter Pets Zone.
- if (intid == 90) then
- player:Teleport(571, 6224.148438, 5757.467773, -6.235819)
- player:SetFacing(0.7)
- player:GossipComplete()
- end
- -- Dueling Zone.
- if (intid == 50) then
- player:Teleport(571, 7867.817383, 3405.942383, 654.370239)
- player:SetFacing(4.277964)
- player:GossipComplete()
- end
- -- Main Menu.
- if (player:IsInCombat() == true) then
- player:SendAreaTriggerMessage("|CFFFF0000You cannot use the Teleporter while you are in combat!|R")
- player:GossipComplete()
- else
- pUnit:GossipCreateMenu(1, player, 0)
- pUnit:GossipMenuAddItem(3, "|CFF00008BValnyr-Gaming - Mall.|R", 10, 0)
- pUnit:GossipMenuAddItem(9, "|CFF00008BValnyr-Gaming PvP Zones.|R", 30, 0)
- pUnit:GossipMenuAddItem(9, "|CFF00008BValnyr-Gaming Dueling Zone.|R", 50, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BValnyr-Gaming Obstacle Courses.|R", 20, 0)
- pUnit:GossipMenuAddItem(9, "|CFF00008BValnyr-Gaming World Bosses.|R", 450, 0)
- if (player:GetPlayerClass() == "Hunter") then
- pUnit:GossipMenuAddItem(8, "|CFF00008FValnyr-Gaming Hunter Pets Zone.|R", 90, 0)
- end
- pUnit:GossipMenuAddItem(5, "|CFF800000Remove my Ressurection Sickness.|R", 80, 0)
- pUnit:GossipMenuAddItem(5, "|CFF800000Valnyr-Gaming - Player Tools.|R", 15, 0)
- pUnit:GossipMenuAddItem(5, "Close the Teleporter Window.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- -- Valnyr-Gaming Mall.
- if (intid == 10) then
- player:Teleport(631, 4493.549805, 2769.330078, 351.101990, 6.280330)
- player:GossipComplete()
- end
- -- Valnyr-Gaming Player Tools.
- if (intid == 15) then
- pUnit:GossipCreateMenu(1, player, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BMake this place my home.|R", 16, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BReset my Talent Points.|R", 17, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BRepair all my items.|R", 19, 0)
- pUnit:GossipMenuAddItem(5, "Back to Main Menu.", 150, 0)
- pUnit:GossipSendMenu(player)
- end
- -- Valnyr-Gaming Obstacle Courses.
- if (intid == 20) then
- pUnit:GossipCreateMenu(1, player, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BSouthbreak Shore - Tanaris - (|CFF9400D3Very Easy|R)|R.", 21, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BLand's End Beach - Tanaris - (|CFF9400D3Easy|R)|R.", 22, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BDreadmurk Shore - Marsh - (|CFF4B0082Medium|R)|R.", 23, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BTower of Eldara - Azshara - (|CFF4B0082Medium|R)|R.", 24, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BThe North Sea - Eversong Woods - (|CFFFF0000Hard|R)|R.", 25, 0)
- pUnit:GossipMenuAddItem(5, "Back to Main Menu.", 150, 0)
- pUnit:GossipSendMenu(player)
- end
- -- Valnyr-Gaming PvP Zones.
- if (intid == 30) then
- pUnit:GossipCreateMenu(1, player, 0)
- pUnit:GossipMenuAddItem(9, "|CFF00008BGurubashi Arena.", 31, 0)
- pUnit:GossipMenuAddItem(5, "Back to Main Menu.", 150, 0)
- pUnit:GossipSendMenu(player)
- end
- -- Gurubashi Arena,
- if (intid == 31) then
- player:Teleport(0, -13247.606445, 190.499863, 31.046532)
- player:SetFacing(1.09)
- player:GossipComplete()
- end
- -- First Obstacle Course.
- if (intid == 21) then
- player:Teleport(1, -8825.584961, -4763.866211, 2.060145)
- player:SetFacing(0.77)
- player:GossipComplete()
- end
- -- Second Obstacle Course.
- if (intid == 22) then
- player:Teleport(1, -9867.587891, -3547.404297, 0.757514)
- player:SetFacing(3.18)
- player:GossipComplete()
- end
- -- Third Obstacle Course.
- if (intid == 23) then
- player:Teleport(1, -3173.639404, -4227.227051, 0.380090)
- player:SetFacing(0.31)
- player:GossipComplete()
- end
- -- Fourth Obstacle Course.
- if (intid == 24) then
- player:Teleport(1, 4215.317383, -7822.778320, 10.097189)
- player:SetFacing(0.55)
- player:GossipComplete()
- end
- -- Fifth Obstacle Course.
- if (intid == 25) then
- player:Teleport(530, 10399.297852, -7188.446289, 1.022378)
- player:SetFacing(1.00)
- player:GossipComplete()
- end
- -- Close the Teleporter Window.
- if (intid == 100) then
- player:GossipComplete()
- player:Emote(3, 1800)
- end
- -- Innkeeper Option.
- if (intid == 16) then
- player:SetBindPoint(player:GetX(), player:GetY(), player:GetZ(), player:GetMapId(), player:GetZoneId())
- player:CastSpell(31517)
- pUnit:SendChatMessageToPlayer(15, 0, "This is your new home. You can use your \124cffffffff\124Hitem:6948:0:0:0:0:0:0:0:0\124h[Hearthstone]\124h\124r to teleport here.", player)
- player:GossipComplete()
- end
- -- Reset Talents.
- if (intid == 17) then
- if (player:GetTalentPoints(0) == 10) then
- pUnit:SendChatMessageToPlayer(15, 0, "You have no talent points spended, "..player:GetName().."!", player)
- player:GossipComplete()
- else
- player:ResetTalents()
- player:CastSpell(14867) -- Untalent visual.
- pUnit:SendChatMessageToPlayer(15, 0, "Your Talent Points has been reseted, "..player:GetName().."!", player)
- player:DealGoldCost(5000)
- player:GossipComplete()
- end
- end
- -- Remove Ressurection Sickness.
- if (intid == 80) then
- if (player:HasAura(15007) == true) then
- player:RemoveAura(15007)
- pUnit:SendChatMessageToPlayer(15, 0, "Your \124cff71d5ff\124Hspell:15007\124h[Resurrection Sickness]\124h\124r debuff has been removed.", player)
- player:CastSpell(528)
- player:GossipComplete()
- else
- pUnit:SendChatMessageToPlayer(15, 0, "You do not have \124cff71d5ff\124Hspell:15007\124h[Resurrection Sickness]\124h\124r debuff.", player)
- player:GossipComplete()
- end
- end
- -- Repair All Items.
- if (intid == 19) then
- player:RepairAllPlayerItems()
- pUnit:SendChatMessageToPlayer(15, 0, "All your items has been repaired!", player)
- player:Emote(23, 1800)
- player:GossipComplete()
- end
- -- World Bosses.
- if (intid == 450) then
- pUnit:GossipCreateMenu(1, player, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BScourgelord Nyrgonnus. (|CFF9400D3Very Easy|R)|R", 451, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BLord Zechoron. (|CFF9400D3Easy|R)|R", 452, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BGeneral Moulgar. (|CFF4B0082Medium|R)|R", 453, 0)
- pUnit:GossipMenuAddItem(5, "|CFF00008BArchmage Arugal. (|CFFFF0000Hard|R)|R", 454, 0)
- pUnit:GossipMenuAddItem(5, "Back to Main Menu.", 150, 0)
- pUnit:GossipSendMenu(player)
- end
- -- Scourgelord Nyrgonnus.
- if (intid == 451) then
- player:Teleport(571, 7495.018066, 4847.215332, 54.158279)
- player:SetFacing(3.17)
- player:GossipComplete()
- end
- -- General Moulgar.
- if (intid == 453) then
- player:Teleport(632, 5633.590332, 2471.320801, 708.696045)
- player:SetFacing(0.914771)
- player:GossipComplete()
- end
- -- Lord Zechoron.
- if (intid == 452) then
- player:Teleport(571, 8515.150391, 823.0222278, 558.149170)
- player:SetFacing(4.707060)
- player:GossipComplete()
- end
- -- Archmage Arugal
- if (intid == 454) then
- player:Teleport(631, 4494, 2769, 404)
- player:SetFacing(6.28)
- player:SetPhase(2)
- player:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(80000, 1, "ValnyrTeleporter.OnTeleporterTalk")
- RegisterUnitGossipEvent(80000, 2, "ValnyrTeleporter.OnTeleporterSelect")
Advertisement
Add Comment
Please, Sign In to add comment