[Request] Lua Script Transition menu

User Tag List

Results 1 to 3 of 3
  1. #1
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] Lua Script Transition

    Ok guiys i made a Lua Script for a Teleport NPC now i need to transition it to a Item can anyone help?? (I learn from reading other peoples code so i cant find a good one yet)
    Code:
    local npcid = 0
    function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("You are in combat!")
    else
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(3, "News", 3, 0)
    pUnit:GossipMenuAddItem(3, "Teleport", 4, 0)
    pUnit:GossipMenuAddItem(3, "Instances", 5, 0)
    pUnit:GossipMenuAddItem(3, "Proffesions", 6, 0)
    pUnit:GossipMenuAddItem(3, "Resurrect", 7, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 999) then
    pUnit:GossipCreateMenu(99, player, 0)
    local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    pUnit:GossipMenuAddItem(3, "Alliance Cities", 1, 0)
    end
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    pUnit:GossipMenuAddItem(3, "Horde Cities", 2, 0)
    end
    pUnit:GossipMenuAddItem(3, "News", 3, 0)
    pUnit:GossipMenuAddItem(3, "Teleport", 4, 0)
    pUnit:GossipMenuAddItem(3, "Instances", 5, 0)
    pUnit:GossipMenuAddItem(3, "Ressurect", 6, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Stormwind", 300, 0)
    pUnit:GossipMenuAddItem(1, "Ironforge", 301, 0)
    pUnit:GossipMenuAddItem(1, "Darnassus", 302, 0)
    pUnit:GossipMenuAddItem(1, "Exodar", 303, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Orgrimmar", 304, 0)
    pUnit:GossipMenuAddItem(1, "Thunder Bluff", 305, 0)
    pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
    pUnit:GossipMenuAddItem(1, "Silvermoon", 307, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "The Server is still under construction so if you have any suggestions to make it better post on the forums", 308, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    pUnit:GossipCreateMenu(99, player, 0)
    local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    pUnit:GossipMenuAddItem(3, "Alliance Cities", 1, 0)
    end
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    pUnit:GossipMenuAddItem(3, "Horde Cities", 2, 0)
    end
    pUnit:GossipMenuAddItem(0, "Nuetral Cities", 20, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Azeroth", 7, 0)
    pUnit:GossipMenuAddItem(1, "Outland", 8, 0)
    pUnit:GossipMenuAddItem(1, "Northrend", 9, 0)
    pUnit:GossipMenuAddItem(1, "PvP", 10, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 6) then
    pUnit:GossipCreateMenu(99, player, 0)
    
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 7) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "10 - 40", 11, 0)
    pUnit:GossipMenuAddItem(1, "41 - 60", 12, 0)
    pUnit:GossipMenuAddItem(1, "60+", 13, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 8) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "60 - 65", 14, 0)
    pUnit:GossipMenuAddItem(1, "66 - 70", 15, 0)
    pUnit:GossipMenuAddItem(1, "70+", 16, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 9) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "70 - 75", 17, 0)
    pUnit:GossipMenuAddItem(1, "76 - 80", 18, 0)
    pUnit:GossipMenuAddItem(1, "80+", 19, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 10) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 308, 0)
    pUnit:GossipMenuAddItem(1, "The Ring of Trials", 309, 0)
    pUnit:GossipMenuAddItem(1, "The Pit", 310, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 11) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Wailing Caverns", 312, 0)
    pUnit:GossipMenuAddItem(1, "The Deadmines", 313, 0)
    pUnit:GossipMenuAddItem(1, "Shadowfang Keep", 314, 0)
    pUnit:GossipMenuAddItem(1, "Blackfathom Deeps", 315, 0)
    pUnit:GossipMenuAddItem(1, "Razorfen Kraul", 317, 0)
    pUnit:GossipMenuAddItem(1, "Gnomeregan", 318, 0)
    pUnit:GossipMenuAddItem(1, "SM Graveyard", 319, 0)
    pUnit:GossipMenuAddItem(1, "SM Library", 320, 0)
    pUnit:GossipMenuAddItem(1, "Razorfen Downs", 321, 0)
    pUnit:GossipMenuAddItem(1, "SM Armory", 322, 0)
    pUnit:GossipMenuAddItem(1, "SM Cathredal", 323, 0)
    pUnit:GossipMenuAddItem(1, "Uldaman", 324, 0)
    pUnit:GossipMenuAddItem(1, "Zul'Farrak", 325, 0)
    pUnit:GossipMenuAddItem(1, "Maraudon", 326, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 12) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Temple of Atal'Hakkar", 327, 0)
    pUnit:GossipMenuAddItem(1, "Blackrock Depths", 328, 0)
    pUnit:GossipMenuAddItem(1, "Dire Maul:East", 329, 0)
    pUnit:GossipMenuAddItem(1, "Lower Blackrock Spire", 330, 0)
    pUnit:GossipMenuAddItem(1, "Dire Maul:West", 331, 0)
    pUnit:GossipMenuAddItem(1, "Dire Maul:North", 332, 0)
    pUnit:GossipMenuAddItem(1, "Stratholme", 333, 0)
    pUnit:GossipMenuAddItem(1, "Scholomance", 334, 0)
    pUnit:GossipMenuAddItem(1, "Upper Blackrock Spire", 335, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 13) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Zul'Gurub", 336, 0)
    pUnit:GossipMenuAddItem(1, "Onyxia's Lair", 337, 0)
    pUnit:GossipMenuAddItem(1, "Molten Core", 338, 0)
    pUnit:GossipMenuAddItem(1, "Blackwing Lair", 339, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 14) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Hellfire Ramparts", 342, 0)
    pUnit:GossipMenuAddItem(1, "Blood Furnace", 343, 0)
    pUnit:GossipMenuAddItem(1, "Slave Pens", 344, 0)
    pUnit:GossipMenuAddItem(1, "Underbog", 345, 0)
    pUnit:GossipMenuAddItem(1, "Mana Tombs", 346, 0)
    pUnit:GossipMenuAddItem(1, "Auchenai Crypts", 347, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 15) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Durnholde Keep", 348, 0)
    pUnit:GossipMenuAddItem(1, "Sethekk Halls", 349, 0)
    pUnit:GossipMenuAddItem(1, "Steamvault", 350, 0)
    pUnit:GossipMenuAddItem(1, "Shadow Labs", 351, 0)
    pUnit:GossipMenuAddItem(1, "Shattered Halls", 352, 0)
    pUnit:GossipMenuAddItem(1, "Black Morass", 353, 0)
    pUnit:GossipMenuAddItem(1, "Mechanar", 354, 0)
    pUnit:GossipMenuAddItem(1, "Botanica", 355, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 16) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Karazhan", 358, 0)
    pUnit:GossipMenuAddItem(1, "Gruul's Lair", 359, 0)
    pUnit:GossipMenuAddItem(1, "Magtheridon's Lair", 360, 0)
    pUnit:GossipMenuAddItem(1, "Zul'Aman", 361, 0)
    pUnit:GossipMenuAddItem(1, "Serpentshrine Cavern", 362, 0)
    pUnit:GossipMenuAddItem(1, "Hyjal", 364, 0)
    pUnit:GossipMenuAddItem(1, "Black Temple", 365, 0)
    pUnit:GossipMenuAddItem(1, "Sunwell Plateau", 366, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 17) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Utgarde Keep", 367, 0)
    pUnit:GossipMenuAddItem(1, "The Nexus", 368, 0)
    pUnit:GossipMenuAddItem(1, "Azjol'Nerub", 369, 0)
    pUnit:GossipMenuAddItem(1, "Drak'Tharon", 371, 0)
    pUnit:GossipMenuAddItem(1, "The Violet Hold", 372, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 18) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Gundrak", 373, 0)
    pUnit:GossipMenuAddItem(1, "Halls of Stone", 374, 0)
    pUnit:GossipMenuAddItem(1, "Halls of Lightning", 375, 0)
    pUnit:GossipMenuAddItem(1, "The Oculus", 376, 0)
    pUnit:GossipMenuAddItem(1, "Utgare Pinnacle", 378, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 19) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Naxxramas", 379, 0)
    pUnit:GossipMenuAddItem(1, "Obsidian Sanctum", 380, 0)
    pUnit:GossipMenuAddItem(1, "Vault of Archavon", 381, 0)
    pUnit:GossipMenuAddItem(1, "The Eye of Eternity", 382, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 20) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath", 383, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 384, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 300) then --Stormwind
    player:Teleport(0, -8928, 540, 95)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 301) then --Ironforge
    player:Teleport(0, -4981, -881, 502)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 302) then --Darnassus
    player:Teleport(1, 9978, 2033, 1328.5)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 303) then --Exodar
    player:Teleport(530, -4014, -11895, -1.5)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 304) then --Orgrimmar
    player:Teleport(1, 1809, -4325, -11.284042)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 305) then --Thunder Bluff
    player:Teleport(1, -1283, 158, 130)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 306) then --Undercity
    player:Teleport(0, 1752, 239, 61.5)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 307) then --Silvermoon
    player:Teleport(530, 9392, -7277, 14.5)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 384) then --Dalaran
    player:Teleport(571, 5798.553711, 645.019287, 647.477783)
    unit:GossipComplete(player)
    end
    
    if(intid == 383) then --Shattrath
    player:Teleport(530, -1704.053589, 5376.160156, 3.416441)
    unit:GossipComplete(player)
    end
    
    if(intid == 312) then --Wailing Caverns
    player:Teleport(1, -737, -2219, 17)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 313) then --Deadmines
    player:Teleport(0, 11209, 1664, 25)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 314) then --Shadowfang Keep
    player:Teleport(0, -241, 1545, 77)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 315) then --Blackfathom Deeps
    player:Teleport(1, 4248, 736, -26)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 317) then --Razorfen Kraul
    player:Teleport(1, -4473, -1690, 82)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 318) then --Gnomeregan
    player:Teleport(0, -5164, 918,258)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 319) then --SM Graveyard
    player:Teleport(0, 2841, -692, 140)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 320) then --SM Library
    player:Teleport(0, 2841, -692, 140)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 321) then --Razorfen Downs
    player:Teleport(1, -4661, -2511, 81)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 322) then --SM Armory
    player:Teleport(0, 2841, -692, 140)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 323) then --SM Cathredal
    player:Teleport(0, 2841, -692, 140)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 324) then --Uldaman
    player:Teleport(0, -6704, -2955, 209)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 325) then --Zul'Farrak
    player:Teleport(1, -6821, -2890, 9)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 326) then --Maraudon
    player:Teleport(1, -1458, 2606, 76)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 327) then --Temple of Atal'Hakkar
    player:Teleport(0, -3995.147, -10175.121, -112.746)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 328) then --Blackrock Depths
    player:Teleport(0, -7187, -914, 166)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 329) then --Dire Maul:East
    player:Teleport(1, -3524, 1124, 162)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 330) then -- Lower Blackrock Spire
    player:Teleport(0, -7532, -1221, 286)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 331) then --Dire Maul:West
    player:Teleport(1, -3524, 1124, 162)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 332) then --Dire Maul:North
    player:Teleport(1, -3524, 1124, 162)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 333) then --Stratholme
    player:Teleport(0, 3345, -3380, 145)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 334) then --Scholomance
    player:Teleport(0, 1265, -2560, 95)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 335) then -- Upper Blackrock Spire
    player:Teleport(0, -7532, -1221, 286)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 336) then --Zul'Gurub
    player:Teleport(0, -11916, -1204, 93)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 337) then --Onyxia's Lair
    player:Teleport(1, -4709, -3729, 55)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 338) then --Molten Core
    player:Teleport(230, 1123, -455, -101)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 339) then --Blackwing Lair
    player:Teleport(229, 137, -474, 117)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 342) then --Hellfire Ramparts
    player:Teleport(530, -360, 3071, -16)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 343) then --Blood Furnace
    player:Teleport(530, -303, 3164, 32)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 344) then --The Slave Pens
    player:Teleport(530, 719, 6999, -73)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 345) then --The Underbog
    player:Teleport(530, 777, 6763, -72)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 346) then --Mana Tombs
    player:Teleport(530, -3100, 4950, -100)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 347) then --Auchenai Crypts
    player:Teleport(530, -3367, 5216, -101)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 348) then --Durnholde
    player:Teleport(0, -489.832, -1391.35, 53.3854)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 349) then --Sethekk Halls
    player:Teleport(530, -3364, 4675, -101)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 350) then --The Steamvault
    player:Teleport(530, 816, 6934, -80)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 351) then --Shadow Labyrinth
    player:Teleport(530, -3630, 4941, -101)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 352) then --The Shattered Halls
    player:Teleport(530, -311, 3083, -3)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 353) then --Black Morass
    player:Teleport(269, -1954, 6567, -150)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 354) then --The Mechanar
    player:Teleport(530, 2870, 1557, 252)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 355) then --The Botanica
    player:Teleport(530, 3404, 1488, 183)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 358) then --Karazhan
    player:Teleport(0, 0, 0, 0)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 359) then --Gruul's Lair
    player:Teleport(530, 3529, 5096, 3)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 360) then --Magtheridon's Lair
    player:Teleport(530, -313, 3088, -116)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 361) then --Zul'Aman
    player:Teleport(530, 6850, -7950, 171)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 362) then --Serpentshrine Cavern
    player:Teleport(530, 830, 6865, -63)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 364) then --Hyjal 1 4674.88 -3638.37 965.264
    player:Teleport(1, 4674.88, -3638.37, 965.264)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 365) then --Black Temple
    player:Teleport(530, -3614, 310, 40)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 366) then --Sunwell Plateau
    player:Teleport(0, 0, 0, 0)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 367) then --Utgarde Keep
    player:Teleport(571, 1228, -4943, 36)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 368) then --The Nexus
    player:Teleport(571, 3783, 6942, 105)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 369) then --Azjol'Nerub
    player:Teleport(571, 3721, 2155, 37)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 371) then --Drak'Tharon
    player:Teleport(571, 4897, 2046, 249)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 372) then --Violet Hold
    player:Teleport(571, 5708, 521, 650)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 373) then --Gun'Drak
    player:Teleport(571, 6925, 4447, 451)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 374) then --Halls of Stone
    player:Teleport(571, 8937, 1266, 1026)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 375) then --Halls of Lightning
    player:Teleport(571, 8937, 1266, 1026)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 376) then --The Occulus
    player:Teleport(571, 3783, 6942, 105)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 378) then --Utgarde Pinnacle
    player:Teleport(571, 1274, -4857, 216)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 379) then --Naxxramas
    player:Teleport(571, 3669, -1269, 243.499207)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 380) then --Obsidian Sanctum
    player:Teleport(571, 3561, 275, -115)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 381) then --Vault of Archevon
    player:Teleport(571, 5440, 2840, 421)
    pUnit:GossipComplete(player)
    end
    
    if(intid == 382) then --The Eye of Eternity
    player:Teleport(571, 3783, 6942, 105)
    pUnit:GossipComplete(player)
    end
    
    intid = 0
    end
    
    RegisterUnitGossipEvent(70000, 1, "WarpNPC_OnGossipTalk")
    RegisterUnitGossipEvent(70000, 2, "WarpNPC_OnGossipSelect")
    Btw as u guys can tell i need cords for Kara & Sunwell if you can put them tyvm! i will +Rep
    Last edited by B14d3r11; 06-02-2009 at 05:44 PM.

    [Request] Lua Script Transition
  2. #2
    Dynashock's Avatar Contributor

    Reputation
    176
    Join Date
    Nov 2007
    Posts
    203
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this. Basically I changed all of the pUnit's to item and changed the RegisterUnitGossipEvent to RegisterItemGossipEvent. Now just change the ITEMID at the bottom to the id of your item and it should work.

    Coords (hopefully the ones which suit your needs, check them out first) for:
    - Karazhan: MAP: 0 X: -11110,4 Y: -2004,07 Z: 49,3307
    - Sunwell: MAP: 530 X: 12551,8 Y: -6774,57 Z: 15,076
    Note: They're the coords for just outside the instances.

    Code:
    local npcid = 0
    function WarpItem_OnGossipTalk(item, event, player, pMisc)
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("You are in combat!")
    else
    item:GossipCreateMenu(3544, player, 0)
    item:GossipMenuAddItem(3, "News", 3, 0)
    item:GossipMenuAddItem(3, "Teleport", 4, 0)
    item:GossipMenuAddItem(3, "Instances", 5, 0)
    item:GossipMenuAddItem(3, "Proffesions", 6, 0)
    item:GossipMenuAddItem(3, "Resurrect", 7, 0)
    item:GossipSendMenu(player)
    end
    end
    
    function WarpItem_OnGossipSelect(item, event, player, id, intid, code, pMisc)
    if(intid == 999) then
    item:GossipCreateMenu(99, player, 0)
    local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    item:GossipMenuAddItem(3, "Alliance Cities", 1, 0)
    end
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    item:GossipMenuAddItem(3, "Horde Cities", 2, 0)
    end
    item:GossipMenuAddItem(3, "News", 3, 0)
    item:GossipMenuAddItem(3, "Teleport", 4, 0)
    item:GossipMenuAddItem(3, "Instances", 5, 0)
    item:GossipMenuAddItem(3, "Ressurect", 6, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Stormwind", 300, 0)
    item:GossipMenuAddItem(1, "Ironforge", 301, 0)
    item:GossipMenuAddItem(1, "Darnassus", 302, 0)
    item:GossipMenuAddItem(1, "Exodar", 303, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Orgrimmar", 304, 0)
    item:GossipMenuAddItem(1, "Thunder Bluff", 305, 0)
    item:GossipMenuAddItem(1, "Undercity", 306, 0)
    item:GossipMenuAddItem(1, "Silvermoon", 307, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "The Server is still under construction so if you have any suggestions to make it better post on the forums", 308, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    item:GossipCreateMenu(99, player, 0)
    local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    item:GossipMenuAddItem(3, "Alliance Cities", 1, 0)
    end
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    item:GossipMenuAddItem(3, "Horde Cities", 2, 0)
    end
    item:GossipMenuAddItem(0, "Nuetral Cities", 20, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Azeroth", 7, 0)
    item:GossipMenuAddItem(1, "Outland", 8, 0)
    item:GossipMenuAddItem(1, "Northrend", 9, 0)
    item:GossipMenuAddItem(1, "PvP", 10, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 6) then
    item:GossipCreateMenu(99, player, 0)
    
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 7) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "10 - 40", 11, 0)
    item:GossipMenuAddItem(1, "41 - 60", 12, 0)
    item:GossipMenuAddItem(1, "60+", 13, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 8) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "60 - 65", 14, 0)
    item:GossipMenuAddItem(1, "66 - 70", 15, 0)
    item:GossipMenuAddItem(1, "70+", 16, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 9) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "70 - 75", 17, 0)
    item:GossipMenuAddItem(1, "76 - 80", 18, 0)
    item:GossipMenuAddItem(1, "80+", 19, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 10) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Gurubashi Arena", 308, 0)
    item:GossipMenuAddItem(1, "The Ring of Trials", 309, 0)
    item:GossipMenuAddItem(1, "The Pit", 310, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 11) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Wailing Caverns", 312, 0)
    item:GossipMenuAddItem(1, "The Deadmines", 313, 0)
    item:GossipMenuAddItem(1, "Shadowfang Keep", 314, 0)
    item:GossipMenuAddItem(1, "Blackfathom Deeps", 315, 0)
    item:GossipMenuAddItem(1, "Razorfen Kraul", 317, 0)
    item:GossipMenuAddItem(1, "Gnomeregan", 318, 0)
    item:GossipMenuAddItem(1, "SM Graveyard", 319, 0)
    item:GossipMenuAddItem(1, "SM Library", 320, 0)
    item:GossipMenuAddItem(1, "Razorfen Downs", 321, 0)
    item:GossipMenuAddItem(1, "SM Armory", 322, 0)
    item:GossipMenuAddItem(1, "SM Cathredal", 323, 0)
    item:GossipMenuAddItem(1, "Uldaman", 324, 0)
    item:GossipMenuAddItem(1, "Zul'Farrak", 325, 0)
    item:GossipMenuAddItem(1, "Maraudon", 326, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 12) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Temple of Atal'Hakkar", 327, 0)
    item:GossipMenuAddItem(1, "Blackrock Depths", 328, 0)
    item:GossipMenuAddItem(1, "Dire Maul:East", 329, 0)
    item:GossipMenuAddItem(1, "Lower Blackrock Spire", 330, 0)
    item:GossipMenuAddItem(1, "Dire Maul:West", 331, 0)
    item:GossipMenuAddItem(1, "Dire Maul:North", 332, 0)
    item:GossipMenuAddItem(1, "Stratholme", 333, 0)
    item:GossipMenuAddItem(1, "Scholomance", 334, 0)
    item:GossipMenuAddItem(1, "Upper Blackrock Spire", 335, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 13) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Zul'Gurub", 336, 0)
    item:GossipMenuAddItem(1, "Onyxia's Lair", 337, 0)
    item:GossipMenuAddItem(1, "Molten Core", 338, 0)
    item:GossipMenuAddItem(1, "Blackwing Lair", 339, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 14) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Hellfire Ramparts", 342, 0)
    item:GossipMenuAddItem(1, "Blood Furnace", 343, 0)
    item:GossipMenuAddItem(1, "Slave Pens", 344, 0)
    item:GossipMenuAddItem(1, "Underbog", 345, 0)
    item:GossipMenuAddItem(1, "Mana Tombs", 346, 0)
    item:GossipMenuAddItem(1, "Auchenai Crypts", 347, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 15) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Durnholde Keep", 348, 0)
    item:GossipMenuAddItem(1, "Sethekk Halls", 349, 0)
    item:GossipMenuAddItem(1, "Steamvault", 350, 0)
    item:GossipMenuAddItem(1, "Shadow Labs", 351, 0)
    item:GossipMenuAddItem(1, "Shattered Halls", 352, 0)
    item:GossipMenuAddItem(1, "Black Morass", 353, 0)
    item:GossipMenuAddItem(1, "Mechanar", 354, 0)
    item:GossipMenuAddItem(1, "Botanica", 355, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 16) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Karazhan", 358, 0)
    item:GossipMenuAddItem(1, "Gruul's Lair", 359, 0)
    item:GossipMenuAddItem(1, "Magtheridon's Lair", 360, 0)
    item:GossipMenuAddItem(1, "Zul'Aman", 361, 0)
    item:GossipMenuAddItem(1, "Serpentshrine Cavern", 362, 0)
    item:GossipMenuAddItem(1, "Hyjal", 364, 0)
    item:GossipMenuAddItem(1, "Black Temple", 365, 0)
    item:GossipMenuAddItem(1, "Sunwell Plateau", 366, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 17) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Utgarde Keep", 367, 0)
    item:GossipMenuAddItem(1, "The Nexus", 368, 0)
    item:GossipMenuAddItem(1, "Azjol'Nerub", 369, 0)
    item:GossipMenuAddItem(1, "Drak'Tharon", 371, 0)
    item:GossipMenuAddItem(1, "The Violet Hold", 372, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 18) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Gundrak", 373, 0)
    item:GossipMenuAddItem(1, "Halls of Stone", 374, 0)
    item:GossipMenuAddItem(1, "Halls of Lightning", 375, 0)
    item:GossipMenuAddItem(1, "The Oculus", 376, 0)
    item:GossipMenuAddItem(1, "Utgare Pinnacle", 378, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 19) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Naxxramas", 379, 0)
    item:GossipMenuAddItem(1, "Obsidian Sanctum", 380, 0)
    item:GossipMenuAddItem(1, "Vault of Archavon", 381, 0)
    item:GossipMenuAddItem(1, "The Eye of Eternity", 382, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 20) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(1, "Shattrath", 383, 0)
    item:GossipMenuAddItem(1, "Dalaran", 384, 0)
    item:GossipMenuAddItem(0, "[Back]", 999, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 300) then --Stormwind
    player:Teleport(0, -8928, 540, 95)
    item:GossipComplete(player)
    end
    
    if(intid == 301) then --Ironforge
    player:Teleport(0, -4981, -881, 502)
    item:GossipComplete(player)
    end
    
    if(intid == 302) then --Darnassus
    player:Teleport(1, 9978, 2033, 1328.5)
    item:GossipComplete(player)
    end
    
    if(intid == 303) then --Exodar
    player:Teleport(530, -4014, -11895, -1.5)
    item:GossipComplete(player)
    end
    
    if(intid == 304) then --Orgrimmar
    player:Teleport(1, 1809, -4325, -11.284042)
    item:GossipComplete(player)
    end
    
    if(intid == 305) then --Thunder Bluff
    player:Teleport(1, -1283, 158, 130)
    item:GossipComplete(player)
    end
    
    if(intid == 306) then --Undercity
    player:Teleport(0, 1752, 239, 61.5)
    item:GossipComplete(player)
    end
    
    if(intid == 307) then --Silvermoon
    player:Teleport(530, 9392, -7277, 14.5)
    item:GossipComplete(player)
    end
    
    if(intid == 384) then --Dalaran
    player:Teleport(571, 5798.553711, 645.019287, 647.477783)
    item:GossipComplete(player)
    end
    
    if(intid == 383) then --Shattrath
    player:Teleport(530, -1704.053589, 5376.160156, 3.416441)
    item:GossipComplete(player)
    end
    
    if(intid == 312) then --Wailing Caverns
    player:Teleport(1, -737, -2219, 17)
    item:GossipComplete(player)
    end
    
    if(intid == 313) then --Deadmines
    player:Teleport(0, 11209, 1664, 25)
    item:GossipComplete(player)
    end
    
    if(intid == 314) then --Shadowfang Keep
    player:Teleport(0, -241, 1545, 77)
    item:GossipComplete(player)
    end
    
    if(intid == 315) then --Blackfathom Deeps
    player:Teleport(1, 4248, 736, -26)
    item:GossipComplete(player)
    end
    
    if(intid == 317) then --Razorfen Kraul
    player:Teleport(1, -4473, -1690, 82)
    item:GossipComplete(player)
    end
    
    if(intid == 318) then --Gnomeregan
    player:Teleport(0, -5164, 918,258)
    item:GossipComplete(player)
    end
    
    if(intid == 319) then --SM Graveyard
    player:Teleport(0, 2841, -692, 140)
    item:GossipComplete(player)
    end
    
    if(intid == 320) then --SM Library
    player:Teleport(0, 2841, -692, 140)
    item:GossipComplete(player)
    end
    
    if(intid == 321) then --Razorfen Downs
    player:Teleport(1, -4661, -2511, 81)
    item:GossipComplete(player)
    end
    
    if(intid == 322) then --SM Armory
    player:Teleport(0, 2841, -692, 140)
    item:GossipComplete(player)
    end
    
    if(intid == 323) then --SM Cathredal
    player:Teleport(0, 2841, -692, 140)
    item:GossipComplete(player)
    end
    
    if(intid == 324) then --Uldaman
    player:Teleport(0, -6704, -2955, 209)
    item:GossipComplete(player)
    end
    
    if(intid == 325) then --Zul'Farrak
    player:Teleport(1, -6821, -2890, 9)
    item:GossipComplete(player)
    end
    
    if(intid == 326) then --Maraudon
    player:Teleport(1, -1458, 2606, 76)
    item:GossipComplete(player)
    end
    
    if(intid == 327) then --Temple of Atal'Hakkar
    player:Teleport(0, -3995.147, -10175.121, -112.746)
    item:GossipComplete(player)
    end
    
    if(intid == 328) then --Blackrock Depths
    player:Teleport(0, -7187, -914, 166)
    item:GossipComplete(player)
    end
    
    if(intid == 329) then --Dire Maul:East
    player:Teleport(1, -3524, 1124, 162)
    item:GossipComplete(player)
    end
    
    if(intid == 330) then -- Lower Blackrock Spire
    player:Teleport(0, -7532, -1221, 286)
    item:GossipComplete(player)
    end
    
    if(intid == 331) then --Dire Maul:West
    player:Teleport(1, -3524, 1124, 162)
    item:GossipComplete(player)
    end
    
    if(intid == 332) then --Dire Maul:North
    player:Teleport(1, -3524, 1124, 162)
    item:GossipComplete(player)
    end
    
    if(intid == 333) then --Stratholme
    player:Teleport(0, 3345, -3380, 145)
    item:GossipComplete(player)
    end
    
    if(intid == 334) then --Scholomance
    player:Teleport(0, 1265, -2560, 95)
    item:GossipComplete(player)
    end
    
    if(intid == 335) then -- Upper Blackrock Spire
    player:Teleport(0, -7532, -1221, 286)
    item:GossipComplete(player)
    end
    
    if(intid == 336) then --Zul'Gurub
    player:Teleport(0, -11916, -1204, 93)
    item:GossipComplete(player)
    end
    
    if(intid == 337) then --Onyxia's Lair
    player:Teleport(1, -4709, -3729, 55)
    item:GossipComplete(player)
    end
    
    if(intid == 338) then --Molten Core
    player:Teleport(230, 1123, -455, -101)
    item:GossipComplete(player)
    end
    
    if(intid == 339) then --Blackwing Lair
    player:Teleport(229, 137, -474, 117)
    item:GossipComplete(player)
    end
    
    if(intid == 342) then --Hellfire Ramparts
    player:Teleport(530, -360, 3071, -16)
    item:GossipComplete(player)
    end
    
    if(intid == 343) then --Blood Furnace
    player:Teleport(530, -303, 3164, 32)
    item:GossipComplete(player)
    end
    
    if(intid == 344) then --The Slave Pens
    player:Teleport(530, 719, 6999, -73)
    item:GossipComplete(player)
    end
    
    if(intid == 345) then --The Underbog
    player:Teleport(530, 777, 6763, -72)
    item:GossipComplete(player)
    end
    
    if(intid == 346) then --Mana Tombs
    player:Teleport(530, -3100, 4950, -100)
    item:GossipComplete(player)
    end
    
    if(intid == 347) then --Auchenai Crypts
    player:Teleport(530, -3367, 5216, -101)
    item:GossipComplete(player)
    end
    
    if(intid == 348) then --Durnholde
    player:Teleport(0, -489.832, -1391.35, 53.3854)
    item:GossipComplete(player)
    end
    
    if(intid == 349) then --Sethekk Halls
    player:Teleport(530, -3364, 4675, -101)
    item:GossipComplete(player)
    end
    
    if(intid == 350) then --The Steamvault
    player:Teleport(530, 816, 6934, -80)
    item:GossipComplete(player)
    end
    
    if(intid == 351) then --Shadow Labyrinth
    player:Teleport(530, -3630, 4941, -101)
    item:GossipComplete(player)
    end
    
    if(intid == 352) then --The Shattered Halls
    player:Teleport(530, -311, 3083, -3)
    item:GossipComplete(player)
    end
    
    if(intid == 353) then --Black Morass
    player:Teleport(269, -1954, 6567, -150)
    item:GossipComplete(player)
    end
    
    if(intid == 354) then --The Mechanar
    player:Teleport(530, 2870, 1557, 252)
    item:GossipComplete(player)
    end
    
    if(intid == 355) then --The Botanica
    player:Teleport(530, 3404, 1488, 183)
    item:GossipComplete(player)
    end
    
    if(intid == 358) then --Karazhan
    player:Teleport(0, 0, 0, 0)
    item:GossipComplete(player)
    end
    
    if(intid == 359) then --Gruul's Lair
    player:Teleport(530, 3529, 5096, 3)
    item:GossipComplete(player)
    end
    
    if(intid == 360) then --Magtheridon's Lair
    player:Teleport(530, -313, 3088, -116)
    item:GossipComplete(player)
    end
    
    if(intid == 361) then --Zul'Aman
    player:Teleport(530, 6850, -7950, 171)
    item:GossipComplete(player)
    end
    
    if(intid == 362) then --Serpentshrine Cavern
    player:Teleport(530, 830, 6865, -63)
    item:GossipComplete(player)
    end
    
    if(intid == 364) then --Hyjal 1 4674.88 -3638.37 965.264
    player:Teleport(1, 4674.88, -3638.37, 965.264)
    item:GossipComplete(player)
    end
    
    if(intid == 365) then --Black Temple
    player:Teleport(530, -3614, 310, 40)
    item:GossipComplete(player)
    end
    
    if(intid == 366) then --Sunwell Plateau
    player:Teleport(0, 0, 0, 0)
    item:GossipComplete(player)
    end
    
    if(intid == 367) then --Utgarde Keep
    player:Teleport(571, 1228, -4943, 36)
    item:GossipComplete(player)
    end
    
    if(intid == 368) then --The Nexus
    player:Teleport(571, 3783, 6942, 105)
    item:GossipComplete(player)
    end
    
    if(intid == 369) then --Azjol'Nerub
    player:Teleport(571, 3721, 2155, 37)
    item:GossipComplete(player)
    end
    
    if(intid == 371) then --Drak'Tharon
    player:Teleport(571, 4897, 2046, 249)
    item:GossipComplete(player)
    end
    
    if(intid == 372) then --Violet Hold
    player:Teleport(571, 5708, 521, 650)
    item:GossipComplete(player)
    end
    
    if(intid == 373) then --Gun'Drak
    player:Teleport(571, 6925, 4447, 451)
    item:GossipComplete(player)
    end
    
    if(intid == 374) then --Halls of Stone
    player:Teleport(571, 8937, 1266, 1026)
    item:GossipComplete(player)
    end
    
    if(intid == 375) then --Halls of Lightning
    player:Teleport(571, 8937, 1266, 1026)
    item:GossipComplete(player)
    end
    
    if(intid == 376) then --The Occulus
    player:Teleport(571, 3783, 6942, 105)
    item:GossipComplete(player)
    end
    
    if(intid == 378) then --Utgarde Pinnacle
    player:Teleport(571, 1274, -4857, 216)
    item:GossipComplete(player)
    end
    
    if(intid == 379) then --Naxxramas
    player:Teleport(571, 3669, -1269, 243.499207)
    item:GossipComplete(player)
    end
    
    if(intid == 380) then --Obsidian Sanctum
    player:Teleport(571, 3561, 275, -115)
    item:GossipComplete(player)
    end
    
    if(intid == 381) then --Vault of Archevon
    player:Teleport(571, 5440, 2840, 421)
    item:GossipComplete(player)
    end
    
    if(intid == 382) then --The Eye of Eternity
    player:Teleport(571, 3783, 6942, 105)
    item:GossipComplete(player)
    end
    
    intid = 0
    end
    
    RegisterItemGossipEvent(ITEMID, 1, "WarpItem_OnGossipTalk")
    RegisterItemGossipEvent(ITEMID, 2, "WarpItem_OnGossipSelect")

  3. #3
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Will test this out to see if it works

    What class, subclass, flag should the item have??
    Last edited by B14d3r11; 06-04-2009 at 10:18 PM.

Similar Threads

  1. [Lua Script] Request LUA SCRIPT Burning Legion Invasion
    By Nelanaroth in forum WoW EMU Questions & Requests
    Replies: 25
    Last Post: 04-03-2013, 11:23 AM
  2. [Lua Script] [Request] LUA Script on game objects
    By Ultradethv2 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-10-2010, 10:17 AM
  3. [ArcEmu] [Request]Lua Script for Gameobjects
    By SupernovaHH in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-31-2010, 04:07 PM
  4. [HELP/Request] LUA Script
    By Babbaa in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-29-2008, 07:34 AM
  5. [Request] LUA Scripting
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 12-31-2007, 06:28 PM
All times are GMT -5. The time now is 01:30 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search