Lua script help menu

User Tag List

Results 1 to 8 of 8
  1. #1
    igud2's Avatar Member
    Reputation
    10
    Join Date
    Nov 2007
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua script help

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(0, "Teleport me!", 1000, 0)
    unit:GossipMenuAddItem(0, "Twink me!", 2000, 0)
    unit:GossipMenuAddItem(0, "Get me Tier7!", 3000, 0)
    unit:GossipMenuAdditem(0, "Remove Sickness/Heal/Buff", 4000, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if (intid == 1000) then
    unit:GossipCreateMenu(100, player, 0)                          
    unit:GossipMenuAddItem(0, "Horde Cities", 1, 0)
    unit:GossipMenuAddItem(0, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(0, "Azeroth Locations", 3, 0)
    unit:GossipMenuAddItem(0, "Azeroth Instances", 5, 0)
    unit:GossipMenuAddItem(0, "Outland Locations", 6, 0)
    unit:GossipMenuAddItem(0, "Outland Instances", 7, 0)
    unit:GossipMenuAddItem(1, "Shattrath", 8,  0)
    unit:GossipMenuAddItem(1, "Isle of Quel' Danas", 46,  0)
    unit:GossipMenuAddItem(1, "Gurubashi Arena", 45,  0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 3000) then
    unit:GossipCreateMenu(3542, player, 0)
    unit:GossipMenuAddItem(0, "Hunter Tier7", 3001, 0)
    unit:GossipMenuAddItem(0, "Druid Tier7", 3002, 0)
    unit:GossipMenuAddItem(0, "DeathKnight Tier7", 3003, 0)
    unit:GossipMenuAddItem(0, "Mage Tier7", 3004, 0)
    unit:GossipMenuAddItem(0, "Paledin Tier7", 3005, 0)
    unit:GossipMenuAddItem(0, "Preist Tier7", 3006, 0)
    unit:GossipMenuAddItem(0, "Rogue Tier7", 3007, 0)
    unit:GossipMenuAddItem(0, "Shaman Tier7", 3008, 0)
    unit:GossipMenuAddItem(0, "Warlock Tier7", 3009, 0)
    unit:GossipMenuAddItem(0, "Warrior Tier7", 3010, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 4000) then
    unit:GossipCreateMenu(49, player, 0)
    unit:GossipMenuAddItem(0, "Buff me!", 4001, 0)
    unit:GossipMenuAddItem(0, "Heal me!", 4002, 0)
    unit:GossipMenuAddItem(0, "Remove Ress. Sickness!", 4003, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2000) then
    unit:GossipCreateMenu(49, player, 0)
    unit:GossipMenuAddItem(0, "Twink me To 80!", 2001, 0)
    unit:GossipMenuAddItem(0, "Twink me To 70!", 2002, 0)
    unit:GossipMenuAddItem(0, "Twink me To 60!", 2003, 0)
    unit:GossipMenuAddItem(0, "Twink me To 50!", 2004, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(51, player, 0)
    unit:GossipMenuAddItem(1, "Orgrimmar", 10, 0)
    unit:GossipMenuAddItem(1, "Undercity", 11, 0)
    unit:GossipMenuAddItem(1, "Thunder Bluff", 12, 0)
    unit:GossipMenuAddItem(1, "Silvermoon", 13, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    unit:GossipCreateMenu(52, player, 0)
    unit:GossipMenuAddItem(1, "Stormwind", 14, 0)
    unit:GossipMenuAddItem(1, "Ironforge", 15, 0)
    unit:GossipMenuAddItem(1, "Darnassus", 16, 0)
    unit:GossipMenuAddItem(1, "Exodar", 17, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    unit:GossipCreateMenu(53, player, 0)
    unit:GossipMenuAddItem(0, "Eastern Kingdoms", 40, 0)
    unit:GossipMenuAddItem(0, "Kalidamor", 41, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 40) then
    unit:GossipCreateMenu(54, player, 0)
    unit:GossipMenuAddItem(1, "Alterac Mountains", 208, 0)
    unit:GossipMenuAddItem(1, "Badlands", 214, 0)
    unit:GossipMenuAddItem(1, "Blasted Lands", 222, 0)
    unit:GossipMenuAddItem(1, "Burning Steppes", 216, 0)
    unit:GossipMenuAddItem(1, "Deadwind Pass", 221, 0)
    unit:GossipMenuAddItem(1, "Dun Morogh", 212, 0)
    unit:GossipMenuAddItem(1, "Duskwood", 220, 0)
    unit:GossipMenuAddItem(1, "Eastern Plaguelands", 206, 0)
    unit:GossipMenuAddItem(1, "Elwynn Forest", 217, 0)
    unit:GossipMenuAddItem(1, "Eversong Woods", 201, 0)
    unit:GossipMenuAddItem(1, "Ghostlands", 202, 0)
    unit:GossipMenuAddItem(0, "-->Second Page-->", 43, 0)
    unit:GossipMenuAddItem(0, "[Back]", 3, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 41) then
    unit:GossipCreateMenu(55, player, 0)
    unit:GossipMenuAddItem(1, "Azshara", 109, 0)
    unit:GossipMenuAddItem(1, "Azuremyst Isle", 103, 0)
    unit:GossipMenuAddItem(1, "Bloodmyst Isle", 102, 0)
    unit:GossipMenuAddItem(1, "Darkshore", 105, 0)
    unit:GossipMenuAddItem(1, "Desolace", 113, 0)
    unit:GossipMenuAddItem(1, "Durotar", 111, 0)
    unit:GossipMenuAddItem(1, "Dustwallow Marsh", 117, 0)
    unit:GossipMenuAddItem(1, "Felwood", 107, 0)
    unit:GossipMenuAddItem(1, "Feralas", 116, 0)
    unit:GossipMenuAddItem(1, "Moonglade", 106, 0)
    unit:GossipMenuAddItem(1, "Mulgore", 115, 0)
    unit:GossipMenuAddItem(1, "Silithus", 120, 0)
    unit:GossipMenuAddItem(0, "-->Second Page-->", 43, 0)
    unit:GossipMenuAddItem(0, "[Back]", 3, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 42) then
    unit:GossipCreateMenu(55, player, 0)
    unit:GossipMenuAddItem(1, "Hillsbrad Foothills", 210, 0)
    unit:GossipMenuAddItem(1, "Loch Modan", 213, 0)
    unit:GossipMenuAddItem(1, "Redridge Mountains", 218, 0)
    unit:GossipMenuAddItem(1, "Searing Gorge", 215, 0)
    unit:GossipMenuAddItem(1, "Silverpine Forest", 207, 0)
    unit:GossipMenuAddItem(1, "Strangethorn Vale", 223, 0)
    unit:GossipMenuAddItem(1, "Swamp Of Sorrows", 219, 0)
    unit:GossipMenuAddItem(1, "The Hinterlands", 209, 0)
    unit:GossipMenuAddItem(1, "Trisfal Glades", 205, 0)
    unit:GossipMenuAddItem(1, "Western Plaguelands", 203, 0)
    unit:GossipMenuAddItem(1, "Wetlands", 211, 0)
    unit:GossipMenuAddItem(0, "[Back]", 3, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 43) then
    unit:GossipCreateMenu(55, player, 0)
    unit:GossipMenuAddItem(1, "Stonetalon Mountains", 112, 0)
    unit:GossipMenuAddItem(1, "Tanaris", 121, 0)
    unit:GossipMenuAddItem(1, "Teldrassil", 100, 0)
    unit:GossipMenuAddItem(1, "The Barrens", 114, 0)
    unit:GossipMenuAddItem(1, "Thousand Needles", 118, 0)
    unit:GossipMenuAddItem(1, "Un'Goro Crater", 119, 0)
    unit:GossipMenuAddItem(1, "Winterspring", 108, 0)
    unit:GossipMenuAddItem(0, "[Back]", 3, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    unit:GossipCreateMenu(56, player, 0)
    unit:GossipMenuAddItem(1, "Shadowfang Keep", 19, 0)
    unit:GossipMenuAddItem(1, "Zul'Gurub", 20, 0)
    unit:GossipMenuAddItem(1, "Scarlet Monastery", 21, 0)
    unit:GossipMenuAddItem(1, "Stratholme", 22, 0)
    unit:GossipMenuAddItem(1, "Scholomance", 23, 0)
    unit:GossipMenuAddItem(1, "Blackrock", 24, 0)
    unit:GossipMenuAddItem(1, "Onyxia's Lair", 25, 0)
    unit:GossipMenuAddItem(1, "Molten Core", 26, 0)
    unit:GossipMenuAddItem(1, "Karazhan", 27, 0)
    unit:GossipMenuAddItem(1, "Naxxramas", 28, 0)
    unit:GossipMenuAddItem(1, "Caverns Of Time", 29, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6) then
    unit:GossipCreateMenu(57, player, 0)
    unit:GossipMenuAddItem(1, "Hellfire", 30, 0)
    unit:GossipMenuAddItem(1, "Zangremarsh", 31, 0)
    unit:GossipMenuAddItem(1, "Nagrand", 32, 0)
    unit:GossipMenuAddItem(1, "Blades Edge", 33, 0)
    unit:GossipMenuAddItem(1, "Netherstorm", 34, 0)
    unit:GossipMenuAddItem(1, "Terokkar Forest", 35, 0)
    unit:GossipMenuAddItem(1, "Shadowmoon Valley", 36, 0)
    unit:GossipMenuAddItem(1, "Shattrath", 37, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 7) then
    unit:GossipCreateMenu(58, player, 0)
    unit:GossipMenuAddItem(0, "Outland Raids", 41, 0)
    unit:GossipMenuAddItem(1, "Hellfire Ramparts", 430, 0)
    unit:GossipMenuAddItem(1, "The BloodFurnace", 431, 0)
    unit:GossipMenuAddItem(1, "Shattered Halls", 441, 0)
    unit:GossipMenuAddItem(1, "Mana-Tombs", 434, 0)
    unit:GossipMenuAddItem(1, "Sethekk Halls", 438, 0)
    unit:GossipMenuAddItem(1, "Auchenai Crypts", 435, 0)
    unit:GossipMenuAddItem(1, "Shadow Labyrinth", 440, 0)
    unit:GossipMenuAddItem(1, "Caverns of Time", 436, 0)
    unit:GossipMenuAddItem(1, "Shadow Labyrinth", 440, 0)
    unit:GossipMenuAddItem(1, "Magisters Terrace", 445, 0)
    unit:GossipMenuAddItem(0, "-->Second Page-->", 47, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 47) then
    unit:GossipCreateMenu(59, player, 0)
    unit:GossipMenuAddItem(1, "Gruul's Lair", 446, 0)
    unit:GossipMenuAddItem(1, "Magtheridon's Lair", 447, 0)
    unit:GossipMenuAddItem(1, "Zul'Aman", 448, 0)
    unit:GossipMenuAddItem(1, "Serpentshrine Cavern", 449, 0)
    unit:GossipMenuAddItem(1, "The Eye", 450, 0)
    unit:GossipMenuAddItem(1, "Black Temple", 451, 0)
    unit:GossipMenuAddItem(1, "Sunwell Plateau", 452, 0)
    unit:GossipMenuAddItem(0, "[Back]", 7, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 48) then
    unit:GossipCreateMenu(60, player, 0)
    unit:GossipMenuAddItem(1, "The Mechanar", 442, 0)
    unit:GossipMenuAddItem(1, "The Botanica", 443, 0)
    unit:GossipMenuAddItem(1, "The Arcatraz", 444, 0)
    unit:GossipMenuAddItem(1, "The Steamvault", 439, 0)
    unit:GossipMenuAddItem(1, "Slave Pens", 432, 0)
    unit:GossipMenuAddItem(1, "The Underbog", 433, 0)
    unit:GossipMenuAddItem(0, "[Back]", 7, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8) then
    unit:GossipCreateMenu(50, player, 0)
    unit:GossipMenuAddItem(1, "The Great Arena", 38, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 10) then
    player:Teleport(1, 1484, -4417, 25)
    end
    
    if(intid == 11) then
    player:Teleport(0, 1831, 238, 60)
    end
    
    if(intid == 12) then
    player:Teleport(1, -1277, 118, 131)
    end
    
    if(intid == 13) then
    player:Teleport(530, 9413, -7277, 14)
    end
    
    if(intid == 14) then
    player:Teleport(0, -8913.23, 554.633, 94.7944)
    end
    
    
    if(intid == 15) then
    player:Teleport(0, -4981.25, -881.542, 502.66)
    end
    
    if(intid == 16) then
    player:Teleport(1, 9948, 2413, 1327)
    end
    
    if(intid == 17) then
    player:Teleport(530, -3826, 11686, -107)
    end
    
    if(intid == 19) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    
    if(intid == 20) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    
    if(intid == 21) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    
    if(intid == 22) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
    end
    
    if(intid == 23) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    
    if(intid == 24) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
    end
    
    if(intid == 25) then
    player:Teleport(1, -4708.491699, -3727.672363, 54.535076)
    end
    
    if(intid == 26) then
    player:Teleport(0, -7515.409668, -1045.369629, 182.301208)
    end
    
    if(intid == 27) then
    player:Teleport(0, -11122.913086, -2014.498779, 47.079350)
    end
    
    if(intid == 28) then
    player:Teleport(0, 3132.915283, -3731.012939, 138.658371)
    end
    
    if(intid == 29) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    
    if(intid == 31) then
    player:Teleport(530, -248, 922, 84)
    end
    
    if (intid == 32) then
    player:Teleport(530, -468, 8418, 28)
    end
    
    if(intid == 33) then
    player:Teleport(530, 1471, 6831, 107)
    end
    
    if(intid == 34) then
    player:Teleport(530, 3396, 4185, 137)
    end
    
    if(intid == 35) then
    player:Teleport(530, -2276.82, 5132.03, -8.62994)
    end
    
    if(intid == 36) then
    player:Teleport(530, -1202, 5316, 33)
    end
    
    if(intid == 37) then
    player:Teleport(530, -2859, 3182, 10)
    end
    
    if(intid == 38) then
    player:Teleport(530, -1887, 5359, -12)
    end
    
    if(intid == 100) then
    player:Teleport(1, 10708.8, 762.092, 1322.37)
    end
    
    if(intid == 102) then
    player:Teleport(530, -2721.68, -12208.9, 10.0882)
    end
    
    if(intid == 45) then
    player:Teleport(0, -13243.240234, 197.949799, 32.112690)
    end
    
    if(intid == 103) then
    player:Teleport(530, -4020.48, -13783.3, 74.9001)
    end
    
    if(intid == 105) then
    player:Teleport(1, 6207.5, -152.833, 80.8185)
    end
    
    if(intid == 106) then
    player:Teleport(1, 7101.68, -2670.2, 512.2)
    end
    
    if(intid == 107) then
    player:Teleport(1, 5483.9, -749.881, 335.621)
    end
    
    if(intid == 108) then
    player:Teleport(1, 6107.62, -4181.6, 853.322)
    end
    
    if(intid == 109) then
    player:Teleport(1, 2717.1, 5967.91, 107.4)  
    end
    
    if(intid == 111) then
    player:Teleport(1, 341.42, -4684.7, 31.9493)
    end
    
    if(intid == 112) then
    player:Teleport(1, 1145.85, 664.812, 143)
    end
    
    if(intid == 113) then
    player:Teleport(1, -93.1614, 1691.15, 90.0649)
    end
    
    if(intid == 114) then
    player:Teleport(1, -90.19003, -1943.44, -80.4727)
    end
    
    if(intid == 115) then
    player:Teleport(1, -1840.75, 5359, -7.845)
    end
    
    if(intid == 116) then
    player:Teleport(1, -4458.93, 243.415, -65.6136)
    end
    
    if(intid == 117) then
    player:Teleport(1, -3463.26, -4123.13, 18.1043)
    end
    
    if(intid == 118) then
    player:Teleport(1, -4932.53, -1596.05, 85.8157)
    end
    
    if(intid == 119) then
    player:Teleport(1, -7932.61, -2139.61, -229.728)
    end
    
    if(intid == 120) then
    player:Teleport(1, -7373.69, -2950.2, -11.7598)
    end
    
    if(intid == 121) then
    player:Teleport(1, -7373.69, -2950.2, -11.7598)
    end
    
    if(intid == 201) then
    player:Teleport(530, 9449.15, -6782.61, 16.6167)
    end 
    
    if(intid == 202) then
    player:Teleport(530, 7880, -6193, 22)
    end
    
    if(intid == 203) then
    player:Teleport(0, 1224.36, -1151.97, 61.7327)
    end 
    
    if(intid == 205) then
    player:Teleport(0, 2019.35, 1904.36, 106.144)
    end
    
    if(intid == 206) then
    player:Teleport(0, 1919.44, -4306.23, 77.838)
    end 
    
    if(intid == 207) then
    player:Teleport(0, 511.536, 1638.63, 121.417)
    end
    
    if(intid == 208) then
    player:Teleport(0, 272.704, -654.514, 129.609)
    end 
    
    if(intid == 209) then
    player:Teleport(0, 139.375, -1982.79, 134.043)
    end 
    
    if(intid == 210) then
    player:Teleport(0, -852.854, -576.712, 21.0293)
    end 
    
    if(intid == 211) then
    player:Teleport(0, -4086.36, -2610.95, 47.0143)
    end
    
    if(intid == 212) then
    player:Teleport(0, -5660.33, 755.299, 390.605)
    end
    
    if(intid == 213) then
    player:Teleport(0, -4939.1, -3423.74, 306.595)
    end
    
    if(intid == 214) then
    player:Teleport(0, -6049.4, 3308.71, 257.284)
    end 
    
    if(intid == 215) then
    player:Teleport(0, -7176.63, -937.667, 171.206)
    end
    
    if(intid == 216) then
    player:Teleport(0, -7907.41, -1128.66, 192.056)
    end 
    
    if(intid == 217) then
    player:Teleport(0, -9465.58, 16.8472, 66.921)
    end
    
    if(intid == 218) then
    player:Teleport(0, -9219.37, -2149.94, 71.606)
    end
    
    if(intid == 219) then
    player:Teleport(0, -10264.6, -3059.9, 19.9356)
    end                         
    
    if(intid == 220) then
    player:Teleport(0, -10517, -1158.39, 40.0542)
    end
    
    if(intid == 221) then
    player:Teleport(0, -10435.4, -1809.28, 101)
    end
    
    if(intid == 222) then
    player:Teleport(0, -11204.5, -2730.61, 15.8972)
    end
    
    if(intid == 223) then
    player:Teleport(0, -11634.8, -54.0697, 14.4439)
    end
    
    if(intid == 430) then
    player:Teleport(530, -360.671, 3071.9, -15.0977)
    end 
    
    if(intid == 431) then
    player:Teleport(542, -3.9967, 14.6363, -44.8009)
    end 
    
    if(intid == 432) then
    player:Teleport(530, 721.926, 7012.24, -73.065)
    end 
    
    if(intid == 433) then
    player:Teleport(530, 779.802, 6769.33, -71.4282)
    end 
    
    if(intid == 434) then
    player:Teleport(530, -3101.47, 4947.11, -101.177)
    end 
    
    if(intid == 435) then
    player:Teleport(530, -3357.32, 5216.77, -101.049)
    end 
    
    if(intid == 436) then
    player:Teleport(1, -8195.94, -4500.13, 9.60819)
    end 
    
    if(intid == 438) then
    player:Teleport(530, -3360.13, 4667.85, -101.047)
    end 
    
    if(intid == 439) then
    player:Teleport(0, -11634.8, -54.0697, 14.4439)
    end 
    
    if(intid == 440) then
    player:Teleport(530, -3635.76, 4931.82, -100.034)
    end 
    
    if(intid == 441) then
    player:Teleport(530, -309.83, 3080.08, -3.63538)
    end 
    
    if(intid == 442) then
    player:Teleport(530, 2885.2, 1564.73, 248.874)
    end
    
    if(intid == 443) then
    player:Teleport(530, 3405.48, 1489.14, 183.838)
    end
    
    if(intid == 444) then
    player:Teleport(530, 2872, 1555.29, 253.159)
    end 
    
    if(intid == 445) then
    player:Teleport(585, 2.19347, -0.123698, -2.8025)
    end
    
    if(intid == 446) then
    player:Teleport(530, 3606.85, 5260.49, 4.1724)
    end 
    
    if(intid == 447) then
    player:Teleport(530, -319.635, 3102.03, -113.937)
    end 
    
    if(intid == 448) then
    player:Teleport(530, 6850, -7950, 170)
    end 
    
    if(intid == 449) then
    player:Teleport(530, 742.883, 6867.19, -68.8289)
    end 
    
    if(intid == 450) then
    player:Teleport(530, 3087.22, 1380.7, 184.883)
    end
    
    if(intid == 451) then
    player:Teleport(530, -3604.74, 328.252, 38.3077)
    end
    
    if(intid == 452) then
    player:Teleport(580, 1791.17, 926.31, 15.1135)
    end
    
    if(intid == 46) then
    player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
    end
    
    if(intid == 990) then
    player:Teleport(1, 2127.671631, -4733.104492, 50.276615)
    end 
    
    if(intid == 991) then
    player:Teleport(0,  -8443.413086, 335.691833, 122.163055)
    end
    
    if (intid == 3001) then
    player:AddItem(39578, 1)
    player:AddItem(39579, 1)
    player:AddItem(39580, 1)
    player:AddItem(39581, 1)
    player:AddItem(39582, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3002) then
    player:AddItem(39553, 1)
    player:AddItem(39554, 1)
    player:AddItem(39555, 1)
    player:AddItem(39556, 1)
    player:AddItem(39557, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3003) then
    player:AddItem(39617, 1)
    player:AddItem(39618, 1)
    player:AddItem(39619, 1)
    player:AddItem(39620, 1)
    player:AddItem(39621, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3004) then Mage
    player:AddItem(39491, 1)
    player:AddItem(39492, 1)
    player:AddItem(39493, 1)
    player:AddItem(39494, 1)
    player:AddItem(39495, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3005) then
    player:AddItem(39633, 1)
    player:AddItem(39634, 1)
    player:AddItem(39635, 1)
    player:AddItem(39636, 1)
    player:AddItem(39637, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3006) then
    player:AddItem(39514, 1)
    player:AddItem(39515, 1)
    player:AddItem(39517, 1)
    player:AddItem(39518, 1)
    player:AddItem(39519, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3007) then
    player:AddItem(39558, 1)
    player:AddItem(39560, 1)
    player:AddItem(39561, 1)
    player:AddItem(39564, 1)
    player:AddItem(39565, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3008) then
    player:AddItem(39557, 1)
    player:AddItem(39601, 1)
    player:AddItem(39602, 1)
    player:AddItem(39603, 1)
    player:AddItem(39604, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3009) then
    player:AddItem(39496, 1)
    player:AddItem(39497, 1)
    player:AddItem(39498, 1)
    player:AddItem(39499, 1)
    player:AddItem(39500, 1)
    unit:GossipComplete(player)
    end
    
    if (intid == 3010) then
    player:AddItem(39610, 1)
    player:AddItem(39611, 1)
    player:AddItem(39612, 1)
    player:AddItem(39613, 1)
    player:AddItem(39622, 1)
    unit:GossipComplete(player)
    end
    
    if(intid == 2001) then
    player:SetPlayerLevel(80)
    unit:GossipComplete(player)
    end
    
    if(intid == 2002) then
    player:SetPlayerLevel(70)
    unit:GossipComplete(player)
    end
    
    if(intid == 2003) then
    player:SetPlayerLevel(60)
    unit:GossipComplete(player)
    end
    
    if(intid == 2004) then
    player:SetPlayerLevel(50)
    unit:GossipComplete(player)
    end
    
    if(intid == 4001) then
    unit:GossipCreateMenu(61, player, 0)
    unit:FullCastSpellOnTarget(33077, player)
    unit:FullCastSpellOnTarget(33078, player)
    unit:FullCastSpellOnTarget(33079, player)
    unit:FullCastSpellOnTarget(33080, player)
    unit:FullCastSpellOnTarget(33081, player)
    unit:FullCastSpellOnTarget(33082, player)
    unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 4002) then
    unit:GossipCreateMenu(63, player, 0)
    unit:FullCastSpellOnTarget(26565, player)
    unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 4003) then
    unit:GossipCreateMenu(62, player, 0)
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    end
    
    RegisterUnitGossipEvent(90131,1,"On_Gossip")
    RegisterUnitGossipEvent(90131,2,"Gossip_Submenus")
    the load up error im getting:



    Lua script help
  2. #2
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this should work hurry and test it before i have to go

    Code:
       function On_Gossip(unit, event, player)
      unit:GossipCreateMenu(3544, player, 0)
      unit:GossipMenuAddItem(0, "Teleport me!", 1000, 0)
      unit:GossipMenuAddItem(0, "Twink me!", 2000, 0)
      unit:GossipMenuAddItem(0, "Get me Tier7!", 3000, 0)
      unit:GossipMenuAdditem(0, "Remove Sickness/Heal/Buff", 4000, 0)
      unit:GossipSendMenu(player)
      end
      
      function Gossip_Submenus(unit, event, player, id, intid, code)
      
      if (intid == 1000) then
      unit:GossipCreateMenu(100, player, 0)                          
      unit:GossipMenuAddItem(0, "Horde Cities", 1, 0)
      unit:GossipMenuAddItem(0, "Alliance Cities", 2, 0)
      unit:GossipMenuAddItem(0, "Azeroth Locations", 3, 0)
      unit:GossipMenuAddItem(0, "Azeroth Instances", 5, 0)
      unit:GossipMenuAddItem(0, "Outland Locations", 6, 0)
      unit:GossipMenuAddItem(0, "Outland Instances", 7, 0)
      unit:GossipMenuAddItem(1, "Shattrath", 8,  0)
      unit:GossipMenuAddItem(1, "Isle of Quel' Danas", 46,  0)
      unit:GossipMenuAddItem(1, "Gurubashi Arena", 45,  0)
      unit:GossipSendMenu(player)
      end
      
      if (intid == 3000) then
      unit:GossipCreateMenu(3542, player, 0)
      unit:GossipMenuAddItem(0, "Hunter Tier7", 3001, 0)
      unit:GossipMenuAddItem(0, "Druid Tier7", 3002, 0)
      unit:GossipMenuAddItem(0, "DeathKnight Tier7", 3003, 0)
      unit:GossipMenuAddItem(0, "Mage Tier7", 3004, 0)
      unit:GossipMenuAddItem(0, "Paledin Tier7", 3005, 0)
      unit:GossipMenuAddItem(0, "Preist Tier7", 3006, 0)
      unit:GossipMenuAddItem(0, "Rogue Tier7", 3007, 0)
      unit:GossipMenuAddItem(0, "Shaman Tier7", 3008, 0)
      unit:GossipMenuAddItem(0, "Warlock Tier7", 3009, 0)
      unit:GossipMenuAddItem(0, "Warrior Tier7", 3010, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 4000) then
      unit:GossipCreateMenu(49, player, 0)
      unit:GossipMenuAddItem(0, "Buff me!", 4001, 0)
      unit:GossipMenuAddItem(0, "Heal me!", 4002, 0)
      unit:GossipMenuAddItem(0, "Remove Ress. Sickness!", 4003, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 2000) then
      unit:GossipCreateMenu(49, player, 0)
      unit:GossipMenuAddItem(0, "Twink me To 80!", 2001, 0)
      unit:GossipMenuAddItem(0, "Twink me To 70!", 2002, 0)
      unit:GossipMenuAddItem(0, "Twink me To 60!", 2003, 0)
      unit:GossipMenuAddItem(0, "Twink me To 50!", 2004, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 1) then
      unit:GossipCreateMenu(51, player, 0)
      unit:GossipMenuAddItem(1, "Orgrimmar", 10, 0)
      unit:GossipMenuAddItem(1, "Undercity", 11, 0)
      unit:GossipMenuAddItem(1, "Thunder Bluff", 12, 0)
      unit:GossipMenuAddItem(1, "Silvermoon", 13, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 2) then
      unit:GossipCreateMenu(52, player, 0)
      unit:GossipMenuAddItem(1, "Stormwind", 14, 0)
      unit:GossipMenuAddItem(1, "Ironforge", 15, 0)
      unit:GossipMenuAddItem(1, "Darnassus", 16, 0)
      unit:GossipMenuAddItem(1, "Exodar", 17, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 3) then
      unit:GossipCreateMenu(53, player, 0)
      unit:GossipMenuAddItem(0, "Eastern Kingdoms", 40, 0)
      unit:GossipMenuAddItem(0, "Kalidamor", 41, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 40) then
      unit:GossipCreateMenu(54, player, 0)
      unit:GossipMenuAddItem(1, "Alterac Mountains", 208, 0)
      unit:GossipMenuAddItem(1, "Badlands", 214, 0)
      unit:GossipMenuAddItem(1, "Blasted Lands", 222, 0)
      unit:GossipMenuAddItem(1, "Burning Steppes", 216, 0)
      unit:GossipMenuAddItem(1, "Deadwind Pass", 221, 0)
      unit:GossipMenuAddItem(1, "Dun Morogh", 212, 0)
      unit:GossipMenuAddItem(1, "Duskwood", 220, 0)
      unit:GossipMenuAddItem(1, "Eastern Plaguelands", 206, 0)
      unit:GossipMenuAddItem(1, "Elwynn Forest", 217, 0)
      unit:GossipMenuAddItem(1, "Eversong Woods", 201, 0)
      unit:GossipMenuAddItem(1, "Ghostlands", 202, 0)
      unit:GossipMenuAddItem(0, "-->Second Page-->", 43, 0)
      unit:GossipMenuAddItem(0, "[Back]", 3, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 41) then
      unit:GossipCreateMenu(55, player, 0)
      unit:GossipMenuAddItem(1, "Azshara", 109, 0)
      unit:GossipMenuAddItem(1, "Azuremyst Isle", 103, 0)
      unit:GossipMenuAddItem(1, "Bloodmyst Isle", 102, 0)
      unit:GossipMenuAddItem(1, "Darkshore", 105, 0)
      unit:GossipMenuAddItem(1, "Desolace", 113, 0)
      unit:GossipMenuAddItem(1, "Durotar", 111, 0)
      unit:GossipMenuAddItem(1, "Dustwallow Marsh", 117, 0)
      unit:GossipMenuAddItem(1, "Felwood", 107, 0)
      unit:GossipMenuAddItem(1, "Feralas", 116, 0)
      unit:GossipMenuAddItem(1, "Moonglade", 106, 0)
      unit:GossipMenuAddItem(1, "Mulgore", 115, 0)
      unit:GossipMenuAddItem(1, "Silithus", 120, 0)
      unit:GossipMenuAddItem(0, "-->Second Page-->", 43, 0)
      unit:GossipMenuAddItem(0, "[Back]", 3, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 42) then
      unit:GossipCreateMenu(55, player, 0)
      unit:GossipMenuAddItem(1, "Hillsbrad Foothills", 210, 0)
      unit:GossipMenuAddItem(1, "Loch Modan", 213, 0)
      unit:GossipMenuAddItem(1, "Redridge Mountains", 218, 0)
      unit:GossipMenuAddItem(1, "Searing Gorge", 215, 0)
      unit:GossipMenuAddItem(1, "Silverpine Forest", 207, 0)
      unit:GossipMenuAddItem(1, "Strangethorn Vale", 223, 0)
      unit:GossipMenuAddItem(1, "Swamp Of Sorrows", 219, 0)
      unit:GossipMenuAddItem(1, "The Hinterlands", 209, 0)
      unit:GossipMenuAddItem(1, "Trisfal Glades", 205, 0)
      unit:GossipMenuAddItem(1, "Western Plaguelands", 203, 0)
      unit:GossipMenuAddItem(1, "Wetlands", 211, 0)
      unit:GossipMenuAddItem(0, "[Back]", 3, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 43) then
      unit:GossipCreateMenu(55, player, 0)
      unit:GossipMenuAddItem(1, "Stonetalon Mountains", 112, 0)
      unit:GossipMenuAddItem(1, "Tanaris", 121, 0)
      unit:GossipMenuAddItem(1, "Teldrassil", 100, 0)
      unit:GossipMenuAddItem(1, "The Barrens", 114, 0)
      unit:GossipMenuAddItem(1, "Thousand Needles", 118, 0)
      unit:GossipMenuAddItem(1, "Un'Goro Crater", 119, 0)
      unit:GossipMenuAddItem(1, "Winterspring", 108, 0)
      unit:GossipMenuAddItem(0, "[Back]", 3, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 5) then
      unit:GossipCreateMenu(56, player, 0)
      unit:GossipMenuAddItem(1, "Shadowfang Keep", 19, 0)
      unit:GossipMenuAddItem(1, "Zul'Gurub", 20, 0)
      unit:GossipMenuAddItem(1, "Scarlet Monastery", 21, 0)
      unit:GossipMenuAddItem(1, "Stratholme", 22, 0)
      unit:GossipMenuAddItem(1, "Scholomance", 23, 0)
      unit:GossipMenuAddItem(1, "Blackrock", 24, 0)
      unit:GossipMenuAddItem(1, "Onyxia's Lair", 25, 0)
      unit:GossipMenuAddItem(1, "Molten Core", 26, 0)
      unit:GossipMenuAddItem(1, "Karazhan", 27, 0)
      unit:GossipMenuAddItem(1, "Naxxramas", 28, 0)
      unit:GossipMenuAddItem(1, "Caverns Of Time", 29, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 6) then
      unit:GossipCreateMenu(57, player, 0)
      unit:GossipMenuAddItem(1, "Hellfire", 30, 0)
      unit:GossipMenuAddItem(1, "Zangremarsh", 31, 0)
      unit:GossipMenuAddItem(1, "Nagrand", 32, 0)
      unit:GossipMenuAddItem(1, "Blades Edge", 33, 0)
      unit:GossipMenuAddItem(1, "Netherstorm", 34, 0)
      unit:GossipMenuAddItem(1, "Terokkar Forest", 35, 0)
      unit:GossipMenuAddItem(1, "Shadowmoon Valley", 36, 0)
      unit:GossipMenuAddItem(1, "Shattrath", 37, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 7) then
      unit:GossipCreateMenu(58, player, 0)
      unit:GossipMenuAddItem(0, "Outland Raids", 41, 0)
      unit:GossipMenuAddItem(1, "Hellfire Ramparts", 430, 0)
      unit:GossipMenuAddItem(1, "The BloodFurnace", 431, 0)
      unit:GossipMenuAddItem(1, "Shattered Halls", 441, 0)
      unit:GossipMenuAddItem(1, "Mana-Tombs", 434, 0)
      unit:GossipMenuAddItem(1, "Sethekk Halls", 438, 0)
      unit:GossipMenuAddItem(1, "Auchenai Crypts", 435, 0)
      unit:GossipMenuAddItem(1, "Shadow Labyrinth", 440, 0)
      unit:GossipMenuAddItem(1, "Caverns of Time", 436, 0)
      unit:GossipMenuAddItem(1, "Shadow Labyrinth", 440, 0)
      unit:GossipMenuAddItem(1, "Magisters Terrace", 445, 0)
      unit:GossipMenuAddItem(0, "-->Second Page-->", 47, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 47) then
      unit:GossipCreateMenu(59, player, 0)
      unit:GossipMenuAddItem(1, "Gruul's Lair", 446, 0)
      unit:GossipMenuAddItem(1, "Magtheridon's Lair", 447, 0)
      unit:GossipMenuAddItem(1, "Zul'Aman", 448, 0)
      unit:GossipMenuAddItem(1, "Serpentshrine Cavern", 449, 0)
      unit:GossipMenuAddItem(1, "The Eye", 450, 0)
      unit:GossipMenuAddItem(1, "Black Temple", 451, 0)
      unit:GossipMenuAddItem(1, "Sunwell Plateau", 452, 0)
      unit:GossipMenuAddItem(0, "[Back]", 7, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 48) then
      unit:GossipCreateMenu(60, player, 0)
      unit:GossipMenuAddItem(1, "The Mechanar", 442, 0)
      unit:GossipMenuAddItem(1, "The Botanica", 443, 0)
      unit:GossipMenuAddItem(1, "The Arcatraz", 444, 0)
      unit:GossipMenuAddItem(1, "The Steamvault", 439, 0)
      unit:GossipMenuAddItem(1, "Slave Pens", 432, 0)
      unit:GossipMenuAddItem(1, "The Underbog", 433, 0)
      unit:GossipMenuAddItem(0, "[Back]", 7, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 8) then
      unit:GossipCreateMenu(50, player, 0)
      unit:GossipMenuAddItem(1, "The Great Arena", 38, 0)
      unit:GossipMenuAddItem(0, "[Main Menu]", 1000, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 10) then
      player:Teleport(1, 1484, -4417, 25)
      end
      
      if(intid == 11) then
      player:Teleport(0, 1831, 238, 60)
      end
      
      if(intid == 12) then
      player:Teleport(1, -1277, 118, 131)
      end
      
      if(intid == 13) then
      player:Teleport(530, 9413, -7277, 14)
      end
      
      if(intid == 14) then
      player:Teleport(0, -8913.23, 554.633, 94.7944)
      end
      
      
      if(intid == 15) then
      player:Teleport(0, -4981.25, -881.542, 502.66)
      end
      
      if(intid == 16) then
      player:Teleport(1, 9948, 2413, 1327)
      end
      
      if(intid == 17) then
      player:Teleport(530, -3826, 11686, -107)
      end
      
      if(intid == 19) then
      player:Teleport(0, -234.495087, 1561.946411, 76.892143)
      end
      
      if(intid == 20) then
      player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
      end
      
      if(intid == 21) then
      player:Teleport(0, 2870.442627, -819.985229, 160.331085)
      end
      
      if(intid == 22) then
      player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
      end
      
      if(intid == 23) then
      player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
      end
      
      if(intid == 24) then
      player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
      end
      
      if(intid == 25) then
      player:Teleport(1, -4708.491699, -3727.672363, 54.535076)
      end
      
      if(intid == 26) then
      player:Teleport(0, -7515.409668, -1045.369629, 182.301208)
      end
      
      if(intid == 27) then
      player:Teleport(0, -11122.913086, -2014.498779, 47.079350)
      end
      
      if(intid == 28) then
      player:Teleport(0, 3132.915283, -3731.012939, 138.658371)
      end
      
      if(intid == 29) then
      player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
      end
      
      if(intid == 31) then
      player:Teleport(530, -248, 922, 84)
      end
      
      if (intid == 32) then
      player:Teleport(530, -468, 8418, 28)
      end
      
      if(intid == 33) then
      player:Teleport(530, 1471, 6831, 107)
      end
      
      if(intid == 34) then
      player:Teleport(530, 3396, 4185, 137)
      end
      
      if(intid == 35) then
      player:Teleport(530, -2276.82, 5132.03, -8.62994)
      end
      
      if(intid == 36) then
      player:Teleport(530, -1202, 5316, 33)
      end
      
      if(intid == 37) then
      player:Teleport(530, -2859, 3182, 10)
      end
      
      if(intid == 38) then
      player:Teleport(530, -1887, 5359, -12)
      end
      
      if(intid == 100) then
      player:Teleport(1, 10708.8, 762.092, 1322.37)
      end
      
      if(intid == 102) then
      player:Teleport(530, -2721.68, -12208.9, 10.0882)
      end
      
      if(intid == 45) then
      player:Teleport(0, -13243.240234, 197.949799, 32.112690)
      end
      
      if(intid == 103) then
      player:Teleport(530, -4020.48, -13783.3, 74.9001)
      end
      
      if(intid == 105) then
      player:Teleport(1, 6207.5, -152.833, 80.8185)
      end
      
      if(intid == 106) then
      player:Teleport(1, 7101.68, -2670.2, 512.2)
      end
      
      if(intid == 107) then
      player:Teleport(1, 5483.9, -749.881, 335.621)
      end
      
      if(intid == 108) then
      player:Teleport(1, 6107.62, -4181.6, 853.322)
      end
      
      if(intid == 109) then
      player:Teleport(1, 2717.1, 5967.91, 107.4)  
      end
      
      if(intid == 111) then
      player:Teleport(1, 341.42, -4684.7, 31.9493)
      end
      
      if(intid == 112) then
      player:Teleport(1, 1145.85, 664.812, 143)
      end
      
      if(intid == 113) then
      player:Teleport(1, -93.1614, 1691.15, 90.0649)
      end
      
      if(intid == 114) then
      player:Teleport(1, -90.19003, -1943.44, -80.4727)
      end
      
      if(intid == 115) then
      player:Teleport(1, -1840.75, 5359, -7.845)
      end
      
      if(intid == 116) then
      player:Teleport(1, -4458.93, 243.415, -65.6136)
      end
      
      if(intid == 117) then
      player:Teleport(1, -3463.26, -4123.13, 18.1043)
      end
      
      if(intid == 118) then
      player:Teleport(1, -4932.53, -1596.05, 85.8157)
      end
      
      if(intid == 119) then
      player:Teleport(1, -7932.61, -2139.61, -229.728)
      end
      
      if(intid == 120) then
      player:Teleport(1, -7373.69, -2950.2, -11.7598)
      end
      
      if(intid == 121) then
      player:Teleport(1, -7373.69, -2950.2, -11.7598)
      end
      
      if(intid == 201) then
      player:Teleport(530, 9449.15, -6782.61, 16.6167)
      end 
      
      if(intid == 202) then
      player:Teleport(530, 7880, -6193, 22)
      end
      
      if(intid == 203) then
      player:Teleport(0, 1224.36, -1151.97, 61.7327)
      end 
      
      if(intid == 205) then
      player:Teleport(0, 2019.35, 1904.36, 106.144)
      end
      
      if(intid == 206) then
      player:Teleport(0, 1919.44, -4306.23, 77.838)
      end 
      
      if(intid == 207) then
      player:Teleport(0, 511.536, 1638.63, 121.417)
      end
      
      if(intid == 208) then
      player:Teleport(0, 272.704, -654.514, 129.609)
      end 
      
      if(intid == 209) then
      player:Teleport(0, 139.375, -1982.79, 134.043)
      end 
      
      if(intid == 210) then
      player:Teleport(0, -852.854, -576.712, 21.0293)
      end 
      
      if(intid == 211) then
      player:Teleport(0, -4086.36, -2610.95, 47.0143)
      end
      
      if(intid == 212) then
      player:Teleport(0, -5660.33, 755.299, 390.605)
      end
      
      if(intid == 213) then
      player:Teleport(0, -4939.1, -3423.74, 306.595)
      end
      
      if(intid == 214) then
      player:Teleport(0, -6049.4, 3308.71, 257.284)
      end 
      
      if(intid == 215) then
      player:Teleport(0, -7176.63, -937.667, 171.206)
      end
      
      if(intid == 216) then
      player:Teleport(0, -7907.41, -1128.66, 192.056)
      end 
      
      if(intid == 217) then
      player:Teleport(0, -9465.58, 16.8472, 66.921)
      end
      
      if(intid == 218) then
      player:Teleport(0, -9219.37, -2149.94, 71.606)
      end
      
      if(intid == 219) then
      player:Teleport(0, -10264.6, -3059.9, 19.9356)
      end                         
      
      if(intid == 220) then
      player:Teleport(0, -10517, -1158.39, 40.0542)
      end
      
      if(intid == 221) then
      player:Teleport(0, -10435.4, -1809.28, 101)
      end
      
      if(intid == 222) then
      player:Teleport(0, -11204.5, -2730.61, 15.8972)
      end
      
      if(intid == 223) then
      player:Teleport(0, -11634.8, -54.0697, 14.4439)
      end
      
      if(intid == 430) then
      player:Teleport(530, -360.671, 3071.9, -15.0977)
      end 
      
      if(intid == 431) then
      player:Teleport(542, -3.9967, 14.6363, -44.8009)
      end 
      
      if(intid == 432) then
      player:Teleport(530, 721.926, 7012.24, -73.065)
      end 
      
      if(intid == 433) then
      player:Teleport(530, 779.802, 6769.33, -71.4282)
      end 
      
      if(intid == 434) then
      player:Teleport(530, -3101.47, 4947.11, -101.177)
      end 
      
      if(intid == 435) then
      player:Teleport(530, -3357.32, 5216.77, -101.049)
      end 
      
      if(intid == 436) then
      player:Teleport(1, -8195.94, -4500.13, 9.60819)
      end 
      
      if(intid == 438) then
      player:Teleport(530, -3360.13, 4667.85, -101.047)
      end 
      
      if(intid == 439) then
      player:Teleport(0, -11634.8, -54.0697, 14.4439)
      end 
      
      if(intid == 440) then
      player:Teleport(530, -3635.76, 4931.82, -100.034)
      end 
      
      if(intid == 441) then
      player:Teleport(530, -309.83, 3080.08, -3.63538)
      end 
      
      if(intid == 442) then
      player:Teleport(530, 2885.2, 1564.73, 248.874)
      end
      
      if(intid == 443) then
      player:Teleport(530, 3405.48, 1489.14, 183.838)
      end
      
      if(intid == 444) then
      player:Teleport(530, 2872, 1555.29, 253.159)
      end 
      
      if(intid == 445) then
      player:Teleport(585, 2.19347, -0.123698, -2.8025)
      end
      
      if(intid == 446) then
      player:Teleport(530, 3606.85, 5260.49, 4.1724)
      end 
      
      if(intid == 447) then
      player:Teleport(530, -319.635, 3102.03, -113.937)
      end 
      
      if(intid == 448) then
      player:Teleport(530, 6850, -7950, 170)
      end 
      
      if(intid == 449) then
      player:Teleport(530, 742.883, 6867.19, -68.8289)
      end 
    Lunar Gaming - Reaching For The Stars

  3. #3
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    other half

    Code:
    if(intid == 450) then
      player:Teleport(530, 3087.22, 1380.7, 184.883)
      end
      
      if(intid == 451) then
      player:Teleport(530, -3604.74, 328.252, 38.3077)
      end
      
      if(intid == 452) then
      player:Teleport(580, 1791.17, 926.31, 15.1135)
      end
      
      if(intid == 46) then
      player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
      end
      
      if(intid == 990) then
      player:Teleport(1, 2127.671631, -4733.104492, 50.276615)
      end 
      
      if(intid == 991) then
      player:Teleport(0,  -8443.413086, 335.691833, 122.163055)
      end
      
      if (intid == 3001) then
      player:AddItem(39578, 1)
      player:AddItem(39579, 1)
      player:AddItem(39580, 1)
      player:AddItem(39581, 1)
      player:AddItem(39582, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3002) then
      player:AddItem(39553, 1)
      player:AddItem(39554, 1)
      player:AddItem(39555, 1)
      player:AddItem(39556, 1)
      player:AddItem(39557, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3003) then
      player:AddItem(39617, 1)
      player:AddItem(39618, 1)
      player:AddItem(39619, 1)
      player:AddItem(39620, 1)
      player:AddItem(39621, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3004) then
      player:AddItem(39491, 1)
      player:AddItem(39492, 1)
      player:AddItem(39493, 1)
      player:AddItem(39494, 1)
      player:AddItem(39495, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3005) then
      player:AddItem(39633, 1)
      player:AddItem(39634, 1)
      player:AddItem(39635, 1)
      player:AddItem(39636, 1)
      player:AddItem(39637, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3006) then
      player:AddItem(39514, 1)
      player:AddItem(39515, 1)
      player:AddItem(39517, 1)
      player:AddItem(39518, 1)
      player:AddItem(39519, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3007) then
      player:AddItem(39558, 1)
      player:AddItem(39560, 1)
      player:AddItem(39561, 1)
      player:AddItem(39564, 1)
      player:AddItem(39565, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3008) then
      player:AddItem(39557, 1)
      player:AddItem(39601, 1)
      player:AddItem(39602, 1)
      player:AddItem(39603, 1)
      player:AddItem(39604, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3009) then
      player:AddItem(39496, 1)
      player:AddItem(39497, 1)
      player:AddItem(39498, 1)
      player:AddItem(39499, 1)
      player:AddItem(39500, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3010) then
      player:AddItem(39610, 1)
      player:AddItem(39611, 1)
      player:AddItem(39612, 1)
      player:AddItem(39613, 1)
      player:AddItem(39622, 1)
      unit:GossipComplete(player)
      end
      
      if(intid == 2001) then
      player:SetPlayerLevel(80)
      unit:GossipComplete(player)
      end
      
      if(intid == 2002) then
      player:SetPlayerLevel(70)
      unit:GossipComplete(player)
      end
      
      if(intid == 2003) then
      player:SetPlayerLevel(60)
      unit:GossipComplete(player)
      end
      
      if(intid == 2004) then
      player:SetPlayerLevel(50)
      unit:GossipComplete(player)
      end
      
      if(intid == 4001) then
      unit:GossipCreateMenu(61, player, 0)
      unit:FullCastSpellOnTarget(33077, player)
      unit:FullCastSpellOnTarget(33078, player)
      unit:FullCastSpellOnTarget(33079, player)
      unit:FullCastSpellOnTarget(33080, player)
      unit:FullCastSpellOnTarget(33081, player)
      unit:FullCastSpellOnTarget(33082, player)
      unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 4002) then
      unit:GossipCreateMenu(63, player, 0)
      unit:FullCastSpellOnTarget(26565, player)
      unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 4003) then
      unit:GossipCreateMenu(62, player, 0)
      player:LearnSpell(15007)
      player:UnlearnSpell(15007)
      unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
      unit:GossipSendMenu(player)
      end
      end
      
      RegisterUnitGossipEvent(90131,1,"On_Gossip")
      RegisterUnitGossipEvent(90131,2,"Gossip_Submenus")
    Lunar Gaming - Reaching For The Stars

  4. #4
    igud2's Avatar Member
    Reputation
    10
    Join Date
    Nov 2007
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mager1794 View Post
    other half

    Code:
    if(intid == 450) then
      player:Teleport(530, 3087.22, 1380.7, 184.883)
      end
      
      if(intid == 451) then
      player:Teleport(530, -3604.74, 328.252, 38.3077)
      end
      
      if(intid == 452) then
      player:Teleport(580, 1791.17, 926.31, 15.1135)
      end
      
      if(intid == 46) then
      player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
      end
      
      if(intid == 990) then
      player:Teleport(1, 2127.671631, -4733.104492, 50.276615)
      end 
      
      if(intid == 991) then
      player:Teleport(0,  -8443.413086, 335.691833, 122.163055)
      end
      
      if (intid == 3001) then
      player:AddItem(39578, 1)
      player:AddItem(39579, 1)
      player:AddItem(39580, 1)
      player:AddItem(39581, 1)
      player:AddItem(39582, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3002) then
      player:AddItem(39553, 1)
      player:AddItem(39554, 1)
      player:AddItem(39555, 1)
      player:AddItem(39556, 1)
      player:AddItem(39557, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3003) then
      player:AddItem(39617, 1)
      player:AddItem(39618, 1)
      player:AddItem(39619, 1)
      player:AddItem(39620, 1)
      player:AddItem(39621, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3004) then
      player:AddItem(39491, 1)
      player:AddItem(39492, 1)
      player:AddItem(39493, 1)
      player:AddItem(39494, 1)
      player:AddItem(39495, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3005) then
      player:AddItem(39633, 1)
      player:AddItem(39634, 1)
      player:AddItem(39635, 1)
      player:AddItem(39636, 1)
      player:AddItem(39637, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3006) then
      player:AddItem(39514, 1)
      player:AddItem(39515, 1)
      player:AddItem(39517, 1)
      player:AddItem(39518, 1)
      player:AddItem(39519, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3007) then
      player:AddItem(39558, 1)
      player:AddItem(39560, 1)
      player:AddItem(39561, 1)
      player:AddItem(39564, 1)
      player:AddItem(39565, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3008) then
      player:AddItem(39557, 1)
      player:AddItem(39601, 1)
      player:AddItem(39602, 1)
      player:AddItem(39603, 1)
      player:AddItem(39604, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3009) then
      player:AddItem(39496, 1)
      player:AddItem(39497, 1)
      player:AddItem(39498, 1)
      player:AddItem(39499, 1)
      player:AddItem(39500, 1)
      unit:GossipComplete(player)
      end
      
      if (intid == 3010) then
      player:AddItem(39610, 1)
      player:AddItem(39611, 1)
      player:AddItem(39612, 1)
      player:AddItem(39613, 1)
      player:AddItem(39622, 1)
      unit:GossipComplete(player)
      end
      
      if(intid == 2001) then
      player:SetPlayerLevel(80)
      unit:GossipComplete(player)
      end
      
      if(intid == 2002) then
      player:SetPlayerLevel(70)
      unit:GossipComplete(player)
      end
      
      if(intid == 2003) then
      player:SetPlayerLevel(60)
      unit:GossipComplete(player)
      end
      
      if(intid == 2004) then
      player:SetPlayerLevel(50)
      unit:GossipComplete(player)
      end
      
      if(intid == 4001) then
      unit:GossipCreateMenu(61, player, 0)
      unit:FullCastSpellOnTarget(33077, player)
      unit:FullCastSpellOnTarget(33078, player)
      unit:FullCastSpellOnTarget(33079, player)
      unit:FullCastSpellOnTarget(33080, player)
      unit:FullCastSpellOnTarget(33081, player)
      unit:FullCastSpellOnTarget(33082, player)
      unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 4002) then
      unit:GossipCreateMenu(63, player, 0)
      unit:FullCastSpellOnTarget(26565, player)
      unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
      unit:GossipSendMenu(player)
      end
      
      if(intid == 4003) then
      unit:GossipCreateMenu(62, player, 0)
      player:LearnSpell(15007)
      player:UnlearnSpell(15007)
      unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
      unit:GossipSendMenu(player)
      end
      end
      
      RegisterUnitGossipEvent(90131,1,"On_Gossip")
      RegisterUnitGossipEvent(90131,2,"Gossip_Submenus")

    a nil value here:


  5. #5
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try to add orientation.

    //Edit: my bad, misunderstood the error xD
    Last edited by Kaidos; 05-26-2009 at 10:35 AM.

  6. #6
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    look change this

    Code:
    if (intid == 3004) then Mage
    player:AddItem(39491, 1)
    player:AddItem(39492, 1)
    player:AddItem(39493, 1)
    player:AddItem(39494, 1)
    player:AddItem(39495, 1)
    unit:GossipComplete(player)
    end
    to

    Code:
    if (intid == 3004) then
    player:AddItem(39491, 1)
    player:AddItem(39492, 1)
    player:AddItem(39493, 1)
    player:AddItem(39494, 1)
    player:AddItem(39495, 1)
    unit:GossipComplete(player)
    end
    Lunar Gaming - Reaching For The Stars

  7. #7
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    change GossipMenuAdditem to GossipMenuAddItem

  8. #8
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea he's right about that

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(0, "Teleport me!", 1000, 0)
    unit:GossipMenuAddItem(0, "Twink me!", 2000, 0)
    unit:GossipMenuAddItem(0, "Get me Tier7!", 3000, 0)
    unit:GossipMenuAdditem(0, "Remove Sickness/Heal/Buff", 4000, 0)
    unit:GossipSendMenu(player)
    end
    to

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(0, "Teleport me!", 1000, 0)
    unit:GossipMenuAddItem(0, "Twink me!", 2000, 0)
    unit:GossipMenuAddItem(0, "Get me Tier7!", 3000, 0)
    unit:GossipMenuAddItem(0, "Remove Sickness/Heal/Buff", 4000, 0)
    unit:GossipSendMenu(player)
    end
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. Simple LUA Script Help
    By Wolfly in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 09-02-2008, 04:22 PM
  2. LUA Script Help Thread
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-04-2008, 12:46 AM
  3. LuA Scripting Help
    By Jlp in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 06-27-2008, 03:33 AM
  4. Lua script help and general questions from beginner
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-23-2008, 04:38 AM
  5. Need LUA Scripting Help ?
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-04-2008, 12:36 PM
All times are GMT -5. The time now is 06:38 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search