LUA script error menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    flameworker's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA script error

    hey guys

    i made my own script or actually jsut copyied some stuff together

    untill i made the last change everything worked fine now im always getting error 754, <eof> expected near end

    using arcemu and heres the script (its kinda huge i know)

    Code:
    RegisterUnitGossipEvent(121212, 1, "On_Gossip")
    RegisterUnitGossipEvent(121212, 2, "On_Select")
    
    function matrix_main_menu(Unit, player)
        Unit:GossipCreateMenu(3544, player, 0)
       Unit:GossipMenuAddItem(9, "Mall Non-Pvp", 14, 0)
       Unit:GossipMenuAddItem(5, "Horde Location", 16, 0)
       Unit:GossipMenuAddItem(5, "Alliance Location", 15, 0)
       Unit:GossipMenuAddItem(0, "Outland and Northern Locations", 302, 0)
       Unit:GossipMenuAddItem(7, "Outland Instance", 17, 0)
       Unit:GossipMenuAddItem(5, "Outland Raids", 18, 0)
       Unit:GossipMenuAddItem(7, "Azeroth Instance", 19, 0)
       Unit:GossipMenuAddItem(5, "Azeroth Raids", 20, 0)
       Unit:GossipMenuAddItem(6, "Weapon skillz", 21, 0)
       Unit:GossipMenuAddItem(2, "Enter Arena", 212, 0)
       Unit:GossipMenuAddItem(2, "Isle of Quel' Danas", 11, 0)
       unit:GossipMenuAddItem(4, "Heals" , 97, 0)
       unit:GossipMenuAddItem(4, "Buffs" , 98, 0)
       unit:GossipMenuAddItem(4, "Morphs" , 99, 0)
       Unit:GossipSendMenu(player)
       end
    
    function On_Gossip(Unit, event, player)
    matrix_main_menu(Unit, player)
    end
    
     function On_Select(Unit, event, player, id, intid, code, pMisc)
     if(intid == 1) then 
     player:Teleport(0,-13271.959961,149.105515,34.464458)
     Unit:GossipComplete(player)
    end
    
    if(intid == 16) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(1, "Orgrimmar", 38, 0)
    Unit:GossipMenuAddItem(1, "Undercity", 39, 0)
    Unit:GossipMenuAddItem(1, "Thunder Bluff", 40, 0)
    Unit:GossipMenuAddItem(1, "Silvermoon City", 41, 0)
    Unit:GossipMenuAddItem(1, "Nemesis Obstical Course", 66, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 14) then 
     player:Teleport(530,-1887.510010,5359.379883,12.427300)
     Unit:GossipComplete(player)
    end
    
    if(intid == 17) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Hellfire Ramparts", 52, 0)
    Unit:GossipMenuAddItem(5, "Blood Furnace", 53, 0)
    Unit:GossipMenuAddItem(5, "Shattered Halls", 54, 0)
    Unit:GossipMenuAddItem(5, "Underbog", 55, 0)
    Unit:GossipMenuAddItem(5, "Slave Pens", 56, 0)
    Unit:GossipMenuAddItem(5, "Mana Tombs", 57, 0)
    Unit:GossipMenuAddItem(5, "Sethekk Halls", 58, 0)
    Unit:GossipMenuAddItem(5, "Shadow Lab", 59, 0)
    Unit:GossipMenuAddItem(5, "Mechanar", 60, 0)
    Unit:GossipMenuAddItem(5, "Arcatraz", 61, 0)
    Unit:GossipMenuAddItem(5, "Caverns of Time", 62, 0)
    Unit:GossipMenuAddItem(5, "Serpentshrine caverns", 63, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if (intid == 302) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Borean Tundra [68-72]", 570, 0)
    Unit:GossipMenuAddItem(1, "Howling Fjord [68-72]", 580, 0)
    Unit:GossipMenuAddItem(1, "Dragonblight [71-74]", 590, 0)
    Unit:GossipMenuAddItem(1, "Grizzly Hills [73-75]", 600, 0)
    Unit:GossipMenuAddItem(1, "Crystalsong Forest [74-76]", 610, 0)
    Unit:GossipMenuAddItem(1, "Zul'Drak [74-77]", 620, 0)   
    Unit:GossipMenuAddItem(1, "Sholazar Basin [75-78]", 630, 0)
    Unit:GossipMenuAddItem(1, "The Storm Peaks [76-80]", 640, 0)
    Unit:GossipMenuAddItem(1, "Icecrown [77-80]", 650, 0)
    Unit:GossipMenuAddItem(1, "Wintergrasp [PVP]", 660, 0)
    Unit:GossipMenuAddItem(2, "Shattrath", 135, 0)
    Unit:GossipMenuAddItem(2, "Blade's Edge Mountains", 530, 0)
    Unit:GossipMenuAddItem(2, "Hellfire Peninsula/The Dark Portal", 500, 0)
    Unit:GossipMenuAddItem(2, "Nagrand", 520, 0)
    Unit:GossipMenuAddItem(2, "Netherstorm", 54, 0)
    Unit:GossipMenuAddItem(2, "Shadowmoon Valley", 550, 0)
    Unit:GossipMenuAddItem(2, "Terokkar Forest", 510, 0)
    Unit:GossipMenuAddItem(2, "Zangarmarsh", 560, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 18) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Black Temple", 73, 0)
    Unit:GossipMenuAddItem(5, "Tempest Keep", 74, 0)
    Unit:GossipMenuAddItem(5, "Maghteridons Lair", 75, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end 
    
    if(intid == 19) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Shadowfang Keep", 42, 0)
    Unit:GossipMenuAddItem(5, "Scarlet Monastery", 43, 0)
    Unit:GossipMenuAddItem(5, "Zul'Farrak", 44, 0)
    Unit:GossipMenuAddItem(5, "Scholomance", 45, 0)
    Unit:GossipMenuAddItem(5, "The Deadmines", 46, 0)
    Unit:GossipMenuAddItem(5, "Uldaman", 47, 0)
    Unit:GossipMenuAddItem(5, "Sunken temple", 48, 0)
    Unit:GossipMenuAddItem(5, "Lower Blackrock Depths", 49, 0)
    Unit:GossipMenuAddItem(5, "Dire Maul", 50, 0)
    Unit:GossipMenuAddItem(5, "Upper Blackrock Depths", 51, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 20) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Onyxias Lair", 64, 0)
    Unit:GossipMenuAddItem(5, "Molten Core", 65, 0)
    Unit:GossipMenuAddItem(5, "Blackwing Lair", 66, 0)
    Unit:GossipMenuAddItem(5, "Zul'Gurub", 67, 0)
    Unit:GossipMenuAddItem(5, "Karazhan", 68, 0)
    Unit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj 20", 69, 0)
    Unit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj 40", 70, 0)
    Unit:GossipMenuAddItem(5, "Naxxramas", 71, 0)
    Unit:GossipMenuAddItem(5, "Zul'Aman", 72, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 15) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(1, "Stormwind", 34, 0)
    Unit:GossipMenuAddItem(1, "Ironforge", 35, 0)
    Unit:GossipMenuAddItem(1, "Darnassus", 36, 0)
    Unit:GossipMenuAddItem(1, "The Exodar", 37, 0)
    Unit:GossipMenuAddItem(1, "Nemesis Obstical Course", 66, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 21) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(0, "Weapon Skills", 25, 0)
    Unit:GossipMenuAddItem(5, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
     
    if(intid == 212) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(2, "Arena Floor", 9, 0)
    Unit:GossipMenuAddItem(2, "Gurubashi Arena", 1, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 76) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Bows", 84, 0)
    Unit:GossipMenuAddItem(1, "Crossbows", 85, 0)
    Unit:GossipMenuAddItem(1, "Guns", 86, 0)
    Unit:GossipMenuAddItem(1, "Thrown", 87, 0)
    Unit:GossipMenuAddItem(1, "Wands", 88, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 77) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Axes", 89, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Maces", 90, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Swords", 91, 0)
    Unit:GossipMenuAddItem(1, "Daggers", 92, 0)
    Unit:GossipMenuAddItem(1, "Fist Weapons", 93, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 78) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Axes", 94, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Maces", 95, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Swords", 96, 0)
    Unit:GossipMenuAddItem(1, "Staves", 97, 0)
    Unit:GossipMenuAddItem(1, "Polearms", 98, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 100) then
    Unit:GossipCreateMenu(3544, player, 0)
        Unit:GossipMenuAddItem(9, "Mall Non-Pvp", 14, 0)
       Unit:GossipMenuAddItem(5, "Horde Location", 16, 0)
       Unit:GossipMenuAddItem(5, "Alliance Location", 15, 0)
       Unit:GossipMenuAddItem(7, "Outland Instance", 17, 0)
       Unit:GossipMenuAddItem(5, "Outland Raids", 18, 0)
       Unit:GossipMenuAddItem(7, "Azeroth Instance", 19, 0)
       Unit:GossipMenuAddItem(5, "Azeroth Raids", 20, 0)
       Unit:GossipMenuAddItem(6, "Weapon skillz", 21, 0)
       Unit:GossipMenuAddItem(2, "Arena Floor", 9, 0)
       Unit:GossipMenuAddItem(2, "Gurubashi Arena", 1, 0)
       Unit:GossipMenuAddItem(2, "Isle of Quel' Danas", 11, 0)
       Unit:GossipMenuAddItem(8, "Buff Me Up!", 900, 0)
       unit:GossipMenuAddItem(4,"Heals", 97, 0)
       unit:GossipMenuAddItem(4,"Buffs", 98, 0)
       unit:GossipMenuAddItem(4,"Morphs", 99, 0)
       Unit:GossipSendMenu(player)
       endossipSendMenu(player)
    end
    
    if(intid == 25) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(0, "Ranged Weapons", 76, 0)
    Unit:GossipMenuAddItem(0, "One-Handed Weapons", 77, 0)
    Unit:GossipMenuAddItem(0, "Two-Handed Weapons", 78, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then 
     player:Teleport(0,1820.300537,239.093185,60.585197)
     Unit:GossipComplete(player)
    end
    
    if(intid == 4) then 
     player:Teleport(1,-1277,118,131)
     Unit:GossipComplete(player)
    end
    
    if(intid == 5) then 
     player:Teleport(0,-9166.856445,467.493500,103.974922)
     Unit:GossipComplete(player)
    end
    
    if(intid == 34) then
        player:Teleport(0, -9165.678711,470.176544, 103.978409)
    end
    
    if(intid == 35) then
        player:Teleport(0, -4977.095215, -888.452942, 501.621216)
    end
    
    if(intid == 36) then
        player:Teleport(1, 9943.809570, 2275.350098, 1341.390015)
    end
    
    if(intid == 37) then
        player:Teleport(530, -3792.557861, -11691.3, -105.241)
    end
    
    if(intid == 38) then
        player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    
    if(intid == 39) then
        player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end
    
    if(intid == 40) then
        player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    
    if(intid == 41) then
        player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    
    if(intid == 52) then
        player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    
    if(intid == 53) then
        player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end
    
    if(intid == 54) then
        player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end
    
    if(intid == 55) then
        player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    
    if(intid == 56) then
        player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    
    if(intid == 57) then
        player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    
    if(intid == 58) then
        player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end
    
    if(intid == 59) then
        player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end
    
    if(intid == 60) then
        player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    
    if(intid == 61) then
        player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    
    if(intid == 62) then
        player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    
    if(intid == 63) then
        player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    
    if(intid == 42) then
        player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 43) then
        player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 44) then
        player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 45) then
        player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 46) then
        player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    if(intid == 47) then
        player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 48) then
        player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 49) then
        player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 50) then
        player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 51) then
        player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    
    if(intid == 141) then
        player:Teleport(534, 5250.59570, -2181.692871, 1262.153320)
    Unit:GossipComplete(player)
    end
    
    
    if(intid == 6) then 
     player:Teleport(0,-9175.966797,337.554688,83.550049)
     Unit:GossipComplete(player)
     end
    
    if(intid == 73) then
        player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 74) then
        player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 75) then
        player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    
    if(intid == 64) then
        player:Teleport(1, -4746, -3749, -4)
    end
    if(intid == 65) then
        player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 66) then
        player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 67) then
        player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 68) then
        player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 69) then
        player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 70) then
        player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 71) then
        player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid == 72) then
        player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 122) then
        player:Teleport(530, -248.160004, 922.348999, 84.379799)
    end
    if(intid == 123) then
        player:Teleport(530, -225.863632, 5405.927246, 22.346397)
    end
    if(intid == 124) then
        player:Teleport(530, -468.232330, 8418.666016, 28.031298)
    end
    if(intid == 125) then
        player:Teleport(530, 3396.123779, 4182.208008, 137.097992)
    end
    if(intid == 126) then
        player:Teleport(530, -1202.426636, 5313.692871, 33.774723)
    end
    if(intid == 127) then
        player:Teleport(530, -2859.522461, 3182.34773, 10.008426)
    end
    if(intid == 128) then
        player:Teleport(530, 1471.672852, 6828.047852, 107.759239)
    end
    
    if (intid == 135) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300) -- Shattrath
    end
    
    if(intid == 7) then 
     player:Teleport(0,-4981.25, -881.542, 502.66)
     Unit:GossipComplete(player)
     end
    
    if (intid == 500) then
    player:Teleport(530, -248.431702, 939.013367, 84.379822) -- Hellfire Peninsula/ The Dark Portal
    end
    
    if (intid == 510) then
    player:Teleport(530, -1176.588989, 5336.273926, 29.897034) -- Terokkar Forest
    end
    
    if (intid == 520) then
    player:Teleport(530, -526, 8440, 47.426472) -- Nagrand
    end
    
    if (intid == 530) then
    player:Teleport(530, 1114.010254, 7090.967285, 122.127274) -- Blade's Edge Mountains
    end
    
    if (intid == 540) then
    player:Teleport(530, 2315.689209, 2535.836670, 119.271622) -- Netherstorm
    end
    
    if(intid == 550) then
    player:Teleport(530, -2847.810791, 3190.677246, 8.136728) -- Shadowmoon Valley
    end
    
    if(intid == 560) then
    player:Teleport(530, 30.284981, 6983.303711, 148.666779) -- Zangarmarsh
    end
    
    if(intid == 570) then
      player:Teleport(571, 3452, 3836, 29)
     end
    
    if(intid == 580) then
      player:Teleport(571, 592, -5095, 6)
     end
    
    if(intid == 590) then
      player:Teleport(571, 3577, 656, 77)
     end
    
    if(intid == 600) then
      player:Teleport(571, 2767, -2889, 64)
     end
    
    if (intid == 610) then
      player:Teleport(571, 5398, -743, 163)
     end
    
    if(intid == 620) then
      player:Teleport(571, 5449, -1442, 248)
     end
    
    if(intit == 630) then
      player:Teleport(571, 6516, 4824, -55)
     end
    
    if(intid == 640) then
      player:Teleport(571, 7343, -927, 910)
     end
    
    if(intid == 650) then
      player:Teleport(571, 6434, 1151, 283)
     end
    
    if(intid == 660) then
      player:Teleport(571, 4717, 2420, 3462)
     end
    
    if(intid == 670) then
      Unit:GossipCreateMenu(3543, player, 0)
     end
    
    if(intid == 8) then 
     player:Teleport(530,6850, -7950, 170)
     Unit:GossipComplete(player)
     end
    
    if(intid == 66) then
        player:Teleport(169, 3059, 3177, 30)
        player:GossipComplete()
        end
    
    
    if(intid == 23) then 
     player:SendInnkeeperBind(pCreature)
     Unit:GossipComplete(player)
     end
    
     if(intid == 9) then 
     player:Teleport(530,-2011.498413, 6601.716797, 12.434589)
     Unit:GossipComplete(player)
     end
    
    
    if(intid == 11) then 
     player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
     Unit:GossipComplete(player)
     end
    
    if(intid == 12) then 
     player:Teleport(0, -13243.240234, 197.949799, 32.112690)
     Unit:GossipComplete(player)
     end
    
    if(intid == 13) then 
     player:LearnSpell(21169)
     Unit:GossipComplete(player)
     end
    
    if (intid == 96) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Cast: Holy Light", 10, 0)
        unit:GossipMenuAddItem(5,"Cast: Healing Wave", 11, 0)
        unit:GossipMenuAddItem(5,"Cast: Renew", 12, 0)
        unit:GossipMenuAddItem(5,"Remove Resurrection Sickness", 13, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 10) then
        unit:FullCastSpellOnTarget(27136, player)
        player:GossipComplete()
        end
    
        if (intid == 11) then
        unit:FullCastSpellOnTarget(25396, player)
        player:GossipComplete()
        end
    
        if (intid == 12) then
        unit:FullCastSpellOnTarget(25222, player)
        player:GossipComplete()
        end
    
        if (intid == 13) then
        player:LearnSpell(15007)
        player:UnlearnSpell(15007)
        player:GossipComplete()
        end
    
        if (intid == 97) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Strength", 20, 0)
        unit:GossipMenuAddItem(5,"Stamina", 21, 0)
        unit:GossipMenuAddItem(5,"Agility", 22, 0)
        unit:GossipMenuAddItem(5,"Intellect", 23, 0)
        unit:GossipMenuAddItem(5,"Protection", 24, 0)
        unit:GossipMenuAddItem(5,"Spirit", 25, 0)
        unit:GossipMenuAddItem(5,"Songflower Serenade", 26, 0)
        unit:GossipMenuAddItem(5,"Blessing of Kings (10% Stats)", 27, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 20) then
        unit:FullCastSpellOnTarget(33082, player)
        player:GossipComplete()
        end
    
        if (intid == 21) then
        unit:FullCastSpellOnTarget(33081, player)
        player:GossipComplete()
        end
    
        if (intid == 22) then
        unit:FullCastSpellOnTarget(33077, player)
        player:GossipComplete()
        end
    
        if (intid == 23) then
        unit:FullCastSpellOnTarget(33078, player)
        player:GossipComplete()
        end
    
        if (intid == 24) then
        unit:FullCastSpellOnTarget(33079, player)
        player:GossipComplete()
        end
    
        if (intid == 25) then
        unit:FullCastSpellOnTarget(33080, player)
        player:GossipComplete()
        end
    
        if (intid == 26) then
        unit:FullCastSpellOnTarget(15366, player)
        player:GossipComplete()
        end
    
        if (intid == 27) then
        unit:FullCastSpellOnTarget(20217, player)
        player:GossipComplete()
        end
    
        if (intid == 99) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Benny Questgiver", 50, 0)
        unit:GossipMenuAddItem(5,"Illidan", 51, 0)
        unit:GossipMenuAddItem(5,"Hogger", 52, 0)
        unit:GossipMenuAddItem(5,"Pit Commander", 53, 0)
        unit:GossipMenuAddItem(5,"Wrath Master", 54, 0)
        unit:GossipMenuAddItem(5,"Tagar Spinebreaker", 55, 0)
        unit:GossipMenuAddItem(5,"Merciles Dragon", 56, 0)
        unit:GossipMenuAddItem(5,"Ravager", 57, 0)
        unit:GossipMenuAddItem(5,"Tauren", 58, 0)
        unit:GossipMenuAddItem(5,"Worm", 59, 0)
        unit:GossipMenuAddItem(5,"A Hydra!", 60, 0)
        unit:GossipMenuAddItem(4,"[Next]", 997, 0)
        unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 50) then
        player:SetModel(6074)
        player:GossipComplete()
        end
    
        if (intid == 51) then
        player:SetModel(21135)
        player:GossipComplete()
        end
    
        if (intid == 52) then
        player:SetModel(384)
        player:GossipComplete()
        end
    
        if (intid == 53) then
        player:SetModel(18622)
        player:GossipComplete()
        end
    
        if (intid == 54) then
        player:SetModel(18531)
        player:GossipComplete()
        end
    
        if (intid == 55) then
        player:SetModel(21025)
        player:GossipComplete()
        end
    
        if (intid == 56) then
        player:SetModel(22620)
        player:GossipComplete()
        end
    
        if (intid == 57) then
        player:SetModel(741)
        player:GossipComplete()
        end
    
        if (intid == 58) then
        player:SetModel(20618)
        player:GossipComplete()
        end
    
        if (intid == 59) then
        player:SetModel(13009)
        player:GossipComplete()
        end
    
        if (intid == 60) then
        player:SetModel(6737)
        player:GossipComplete()
        end
    
        if (intid == 997) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Onyxia", 61, 0)
        unit:GossipMenuAddItem(5,"VanCleef", 62, 0)
        unit:GossipMenuAddItem(5,"Prince Malchezaar", 63, 0)
        unit:GossipMenuAddItem(5,"Zul'jin", 64, 0)
        unit:GossipMenuAddItem(5,"Gruul the Dragonkiller", 65, 0)
        unit:GossipMenuAddItem(5,"Al'ar", 66, 0)
        unit:GossipMenuAddItem(5,"Kael'thas", 67, 0)
        unit:GossipMenuAddItem(5,"Magtheridon", 68, 0)
        unit:GossipMenuAddItem(5,"Lady Vashj", 69, 0)
        unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
        unit:GossipMenuAddItem(4,"[Back to last Menu]", 1000, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 61) then
        player:SetModel(8570)
        player:GossipComplete()
        end
    
        if (intid == 62) then
        player:SetModel(2029)
        player:GossipComplete()
        end
    
        if (intid == 63) then
        player:SetModel(19274)
        player:GossipComplete()
        end
    
        if (intid == 64) then
        player:SetModel(21899)
        player:GossipComplete()
        end
    
        if (intid == 65) then
        player:SetModel(18698)
        player:GossipComplete()
        end
    
        if (intid == 66) then
        player:SetModel(18945)
        player:GossipComplete()
        end
    
        if (intid == 67) then
        player:SetModel(20023)
     player:GossipComplete()
    end
    
    if (intid == 68) then
     player:SetModel(18527)
     player:GossipComplete()
    end
    
    if (intid == 69) then
     player:SetModel(20748)
     player:GossipComplete()
    end
    
    if (intid == 998) then
     unit:SendChatMessage(12, 0, "To DeMorph you must relog!")
     player:SetModel(0)
     player:GossipComplete()
    end
    
    if (intid == 1000) then
     unit:GossipCreateMenu(100, player, 0)
     unit:GossipMenuAddItem(5,"Benny Questgiver", 50, 0)
     unit:GossipMenuAddItem(5,"Illidan", 51, 0)
     unit:GossipMenuAddItem(5,"Hogger", 52, 0)
     unit:GossipMenuAddItem(5,"Pit Commander", 53, 0)
     unit:GossipMenuAddItem(5,"Wrath Master", 54, 0)
     unit:GossipMenuAddItem(5,"Tagar Spinebreaker", 55, 0)
     unit:GossipMenuAddItem(5,"Merciles Dragon", 56, 0)
     unit:GossipMenuAddItem(5,"Ravager", 57, 0)
     unit:GossipMenuAddItem(5,"Tauren", 58, 0)
     unit:GossipMenuAddItem(5,"Worm", 59, 0)
     unit:GossipMenuAddItem(5,"A Hydra!", 60, 0)
     unit:GossipMenuAddItem(4,"[Next]", 997, 0)
     unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
     unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
     unit:GossipSendMenu(player)
     end
    
    if (intid == 999) then
     unit:GossipCreateMenu(100, player, 0)
     unit:GossipMenuAddItem(4,"Heals", 1, 0)
     unit:GossipMenuAddItem(4,"Buffs", 2, 0)
     unit:GossipMenuAddItem(4,"Morphs", 3, 0)
     unit:GossipSendMenu(player)
     end
    
    end
    
    end

    LUA script error
  2. #2
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this, i tried it on mine and it loads fine.

    Code:
    RegisterUnitGossipEvent(121212, 1, "On_Gossip")
    RegisterUnitGossipEvent(121212, 2, "On_Select")
    
    function matrix_main_menu(Unit, player)
        Unit:GossipCreateMenu(3544, player, 0)
       Unit:GossipMenuAddItem(9, "Mall Non-Pvp", 14, 0)
       Unit:GossipMenuAddItem(5, "Horde Location", 16, 0)
       Unit:GossipMenuAddItem(5, "Alliance Location", 15, 0)
       Unit:GossipMenuAddItem(0, "Outland and Northern Locations", 302, 0)
       Unit:GossipMenuAddItem(7, "Outland Instance", 17, 0)
       Unit:GossipMenuAddItem(5, "Outland Raids", 18, 0)
       Unit:GossipMenuAddItem(7, "Azeroth Instance", 19, 0)
       Unit:GossipMenuAddItem(5, "Azeroth Raids", 20, 0)
       Unit:GossipMenuAddItem(6, "Weapon skillz", 21, 0)
       Unit:GossipMenuAddItem(2, "Enter Arena", 212, 0)
       Unit:GossipMenuAddItem(2, "Isle of Quel' Danas", 11, 0)
       unit:GossipMenuAddItem(4, "Heals" , 97, 0)
       unit:GossipMenuAddItem(4, "Buffs" , 98, 0)
       unit:GossipMenuAddItem(4, "Morphs" , 99, 0)
       Unit:GossipSendMenu(player)
       end
    
    function On_Gossip(Unit, event, player)
    matrix_main_menu(Unit, player)
    end
    
     function On_Select(Unit, event, player, id, intid, code, pMisc)
     if(intid == 1) then 
     player:Teleport(0,-13271.959961,149.105515,34.464458)
     Unit:GossipComplete(player)
    end
    
    if(intid == 16) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(1, "Orgrimmar", 38, 0)
    Unit:GossipMenuAddItem(1, "Undercity", 39, 0)
    Unit:GossipMenuAddItem(1, "Thunder Bluff", 40, 0)
    Unit:GossipMenuAddItem(1, "Silvermoon City", 41, 0)
    Unit:GossipMenuAddItem(1, "Nemesis Obstical Course", 66, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 14) then 
     player:Teleport(530,-1887.510010,5359.379883,12.427300)
     Unit:GossipComplete(player)
    end
    
    if(intid == 17) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Hellfire Ramparts", 52, 0)
    Unit:GossipMenuAddItem(5, "Blood Furnace", 53, 0)
    Unit:GossipMenuAddItem(5, "Shattered Halls", 54, 0)
    Unit:GossipMenuAddItem(5, "Underbog", 55, 0)
    Unit:GossipMenuAddItem(5, "Slave Pens", 56, 0)
    Unit:GossipMenuAddItem(5, "Mana Tombs", 57, 0)
    Unit:GossipMenuAddItem(5, "Sethekk Halls", 58, 0)
    Unit:GossipMenuAddItem(5, "Shadow Lab", 59, 0)
    Unit:GossipMenuAddItem(5, "Mechanar", 60, 0)
    Unit:GossipMenuAddItem(5, "Arcatraz", 61, 0)
    Unit:GossipMenuAddItem(5, "Caverns of Time", 62, 0)
    Unit:GossipMenuAddItem(5, "Serpentshrine caverns", 63, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if (intid == 302) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Borean Tundra [68-72]", 570, 0)
    Unit:GossipMenuAddItem(1, "Howling Fjord [68-72]", 580, 0)
    Unit:GossipMenuAddItem(1, "Dragonblight [71-74]", 590, 0)
    Unit:GossipMenuAddItem(1, "Grizzly Hills [73-75]", 600, 0)
    Unit:GossipMenuAddItem(1, "Crystalsong Forest [74-76]", 610, 0)
    Unit:GossipMenuAddItem(1, "Zul'Drak [74-77]", 620, 0)   
    Unit:GossipMenuAddItem(1, "Sholazar Basin [75-78]", 630, 0)
    Unit:GossipMenuAddItem(1, "The Storm Peaks [76-80]", 640, 0)
    Unit:GossipMenuAddItem(1, "Icecrown [77-80]", 650, 0)
    Unit:GossipMenuAddItem(1, "Wintergrasp [PVP]", 660, 0)
    Unit:GossipMenuAddItem(2, "Shattrath", 135, 0)
    Unit:GossipMenuAddItem(2, "Blade's Edge Mountains", 530, 0)
    Unit:GossipMenuAddItem(2, "Hellfire Peninsula/The Dark Portal", 500, 0)
    Unit:GossipMenuAddItem(2, "Nagrand", 520, 0)
    Unit:GossipMenuAddItem(2, "Netherstorm", 54, 0)
    Unit:GossipMenuAddItem(2, "Shadowmoon Valley", 550, 0)
    Unit:GossipMenuAddItem(2, "Terokkar Forest", 510, 0)
    Unit:GossipMenuAddItem(2, "Zangarmarsh", 560, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 18) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Black Temple", 73, 0)
    Unit:GossipMenuAddItem(5, "Tempest Keep", 74, 0)
    Unit:GossipMenuAddItem(5, "Maghteridons Lair", 75, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end 
    
    if(intid == 19) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Shadowfang Keep", 42, 0)
    Unit:GossipMenuAddItem(5, "Scarlet Monastery", 43, 0)
    Unit:GossipMenuAddItem(5, "Zul'Farrak", 44, 0)
    Unit:GossipMenuAddItem(5, "Scholomance", 45, 0)
    Unit:GossipMenuAddItem(5, "The Deadmines", 46, 0)
    Unit:GossipMenuAddItem(5, "Uldaman", 47, 0)
    Unit:GossipMenuAddItem(5, "Sunken temple", 48, 0)
    Unit:GossipMenuAddItem(5, "Lower Blackrock Depths", 49, 0)
    Unit:GossipMenuAddItem(5, "Dire Maul", 50, 0)
    Unit:GossipMenuAddItem(5, "Upper Blackrock Depths", 51, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 20) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(5, "Onyxias Lair", 64, 0)
    Unit:GossipMenuAddItem(5, "Molten Core", 65, 0)
    Unit:GossipMenuAddItem(5, "Blackwing Lair", 66, 0)
    Unit:GossipMenuAddItem(5, "Zul'Gurub", 67, 0)
    Unit:GossipMenuAddItem(5, "Karazhan", 68, 0)
    Unit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj 20", 69, 0)
    Unit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj 40", 70, 0)
    Unit:GossipMenuAddItem(5, "Naxxramas", 71, 0)
    Unit:GossipMenuAddItem(5, "Zul'Aman", 72, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 15) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(1, "Stormwind", 34, 0)
    Unit:GossipMenuAddItem(1, "Ironforge", 35, 0)
    Unit:GossipMenuAddItem(1, "Darnassus", 36, 0)
    Unit:GossipMenuAddItem(1, "The Exodar", 37, 0)
    Unit:GossipMenuAddItem(1, "Nemesis Obstical Course", 66, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 21) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(0, "Weapon Skills", 25, 0)
    Unit:GossipMenuAddItem(5, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
     
    if(intid == 212) then
    Unit:GossipCreateMenu(3543, player, 0) 
    Unit:GossipMenuAddItem(2, "Arena Floor", 9, 0)
    Unit:GossipMenuAddItem(2, "Gurubashi Arena", 1, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 76) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Bows", 84, 0)
    Unit:GossipMenuAddItem(1, "Crossbows", 85, 0)
    Unit:GossipMenuAddItem(1, "Guns", 86, 0)
    Unit:GossipMenuAddItem(1, "Thrown", 87, 0)
    Unit:GossipMenuAddItem(1, "Wands", 88, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 77) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Axes", 89, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Maces", 90, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Swords", 91, 0)
    Unit:GossipMenuAddItem(1, "Daggers", 92, 0)
    Unit:GossipMenuAddItem(1, "Fist Weapons", 93, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 78) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Axes", 94, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Maces", 95, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Swords", 96, 0)
    Unit:GossipMenuAddItem(1, "Staves", 97, 0)
    Unit:GossipMenuAddItem(1, "Polearms", 98, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 100) then
    Unit:GossipCreateMenu(3544, player, 0)
        Unit:GossipMenuAddItem(9, "Mall Non-Pvp", 14, 0)
       Unit:GossipMenuAddItem(5, "Horde Location", 16, 0)
       Unit:GossipMenuAddItem(5, "Alliance Location", 15, 0)
       Unit:GossipMenuAddItem(7, "Outland Instance", 17, 0)
       Unit:GossipMenuAddItem(5, "Outland Raids", 18, 0)
       Unit:GossipMenuAddItem(7, "Azeroth Instance", 19, 0)
       Unit:GossipMenuAddItem(5, "Azeroth Raids", 20, 0)
       Unit:GossipMenuAddItem(6, "Weapon skillz", 21, 0)
       Unit:GossipMenuAddItem(2, "Arena Floor", 9, 0)
       Unit:GossipMenuAddItem(2, "Gurubashi Arena", 1, 0)
       Unit:GossipMenuAddItem(2, "Isle of Quel' Danas", 11, 0)
       Unit:GossipMenuAddItem(8, "Buff Me Up!", 900, 0)
       unit:GossipMenuAddItem(4,"Heals", 97, 0)
       unit:GossipMenuAddItem(4,"Buffs", 98, 0)
       unit:GossipMenuAddItem(4,"Morphs", 99, 0)
       Unit:GossipSendMenu(player)
       endossipSendMenu(player)
    end
    
    if(intid == 25) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(0, "Ranged Weapons", 76, 0)
    Unit:GossipMenuAddItem(0, "One-Handed Weapons", 77, 0)
    Unit:GossipMenuAddItem(0, "Two-Handed Weapons", 78, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then 
     player:Teleport(0,1820.300537,239.093185,60.585197)
     Unit:GossipComplete(player)
    end
    
    if(intid == 4) then 
     player:Teleport(1,-1277,118,131)
     Unit:GossipComplete(player)
    end
    
    if(intid == 5) then 
     player:Teleport(0,-9166.856445,467.493500,103.974922)
     Unit:GossipComplete(player)
    end
    
    if(intid == 34) then
        player:Teleport(0, -9165.678711,470.176544, 103.978409)
    end
    
    if(intid == 35) then
        player:Teleport(0, -4977.095215, -888.452942, 501.621216)
    end
    
    if(intid == 36) then
        player:Teleport(1, 9943.809570, 2275.350098, 1341.390015)
    end
    
    if(intid == 37) then
        player:Teleport(530, -3792.557861, -11691.3, -105.241)
    end
    
    if(intid == 38) then
        player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    
    if(intid == 39) then
        player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end
    
    if(intid == 40) then
        player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    
    if(intid == 41) then
        player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    
    if(intid == 52) then
        player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    
    if(intid == 53) then
        player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end
    
    if(intid == 54) then
        player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end
    
    if(intid == 55) then
        player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    
    if(intid == 56) then
        player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    
    if(intid == 57) then
        player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    
    if(intid == 58) then
        player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end
    
    if(intid == 59) then
        player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end
    
    if(intid == 60) then
        player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    
    if(intid == 61) then
        player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    
    if(intid == 62) then
        player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    
    if(intid == 63) then
        player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    
    if(intid == 42) then
        player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 43) then
        player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 44) then
        player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 45) then
        player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 46) then
        player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    if(intid == 47) then
        player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 48) then
        player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 49) then
        player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 50) then
        player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 51) then
        player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    
    if(intid == 141) then
        player:Teleport(534, 5250.59570, -2181.692871, 1262.153320)
    Unit:GossipComplete(player)
    end
    
    
    if(intid == 6) then 
     player:Teleport(0,-9175.966797,337.554688,83.550049)
     Unit:GossipComplete(player)
     end
    
    if(intid == 73) then
        player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 74) then
        player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 75) then
        player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    
    if(intid == 64) then
        player:Teleport(1, -4746, -3749, -4)
    end
    if(intid == 65) then
        player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 66) then
        player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 67) then
        player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 68) then
        player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 69) then
        player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 70) then
        player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 71) then
        player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid == 72) then
        player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 122) then
        player:Teleport(530, -248.160004, 922.348999, 84.379799)
    end
    if(intid == 123) then
        player:Teleport(530, -225.863632, 5405.927246, 22.346397)
    end
    if(intid == 124) then
        player:Teleport(530, -468.232330, 8418.666016, 28.031298)
    end
    if(intid == 125) then
        player:Teleport(530, 3396.123779, 4182.208008, 137.097992)
    end
    if(intid == 126) then
        player:Teleport(530, -1202.426636, 5313.692871, 33.774723)
    end
    if(intid == 127) then
        player:Teleport(530, -2859.522461, 3182.34773, 10.008426)
    end
    if(intid == 128) then
        player:Teleport(530, 1471.672852, 6828.047852, 107.759239)
    end
    
    if (intid == 135) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300) -- Shattrath
    end
    
    if(intid == 7) then 
     player:Teleport(0,-4981.25, -881.542, 502.66)
     Unit:GossipComplete(player)
     end
    
    if (intid == 500) then
    player:Teleport(530, -248.431702, 939.013367, 84.379822) -- Hellfire Peninsula/ The Dark Portal
    end
    
    if (intid == 510) then
    player:Teleport(530, -1176.588989, 5336.273926, 29.897034) -- Terokkar Forest
    end
    
    if (intid == 520) then
    player:Teleport(530, -526, 8440, 47.426472) -- Nagrand
    end
    
    if (intid == 530) then
    player:Teleport(530, 1114.010254, 7090.967285, 122.127274) -- Blade's Edge Mountains
    end
    
    if (intid == 540) then
    player:Teleport(530, 2315.689209, 2535.836670, 119.271622) -- Netherstorm
    end
    
    if(intid == 550) then
    player:Teleport(530, -2847.810791, 3190.677246, 8.136728) -- Shadowmoon Valley
    end
    
    if(intid == 560) then
    player:Teleport(530, 30.284981, 6983.303711, 148.666779) -- Zangarmarsh
    end
    
    if(intid == 570) then
      player:Teleport(571, 3452, 3836, 29)
     end
    
    if(intid == 580) then
      player:Teleport(571, 592, -5095, 6)
     end
    
    if(intid == 590) then
      player:Teleport(571, 3577, 656, 77)
     end
    
    if(intid == 600) then
      player:Teleport(571, 2767, -2889, 64)
     end
    
    if (intid == 610) then
      player:Teleport(571, 5398, -743, 163)
     end
    
    if(intid == 620) then
      player:Teleport(571, 5449, -1442, 248)
     end
    
    if(intit == 630) then
      player:Teleport(571, 6516, 4824, -55)
     end
    
    if(intid == 640) then
      player:Teleport(571, 7343, -927, 910)
     end
    
    if(intid == 650) then
      player:Teleport(571, 6434, 1151, 283)
     end
    
    if(intid == 660) then
      player:Teleport(571, 4717, 2420, 3462)
     end
    
    if(intid == 670) then
      Unit:GossipCreateMenu(3543, player, 0)
     end
    
    if(intid == 8) then 
     player:Teleport(530,6850, -7950, 170)
     Unit:GossipComplete(player)
     end
    
    if(intid == 66) then
        player:Teleport(169, 3059, 3177, 30)
        player:GossipComplete()
        end
    
    
    if(intid == 23) then 
     player:SendInnkeeperBind(pCreature)
     Unit:GossipComplete(player)
     end
    
     if(intid == 9) then 
     player:Teleport(530,-2011.498413, 6601.716797, 12.434589)
     Unit:GossipComplete(player)
     end
    
    
    if(intid == 11) then 
     player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
     Unit:GossipComplete(player)
     end
    
    if(intid == 12) then 
     player:Teleport(0, -13243.240234, 197.949799, 32.112690)
     Unit:GossipComplete(player)
     end
    
    if(intid == 13) then 
     player:LearnSpell(21169)
     Unit:GossipComplete(player)
     end
    
    if (intid == 96) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Cast: Holy Light", 10, 0)
        unit:GossipMenuAddItem(5,"Cast: Healing Wave", 11, 0)
        unit:GossipMenuAddItem(5,"Cast: Renew", 12, 0)
        unit:GossipMenuAddItem(5,"Remove Resurrection Sickness", 13, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 10) then
        unit:FullCastSpellOnTarget(27136, player)
        player:GossipComplete()
        end
    
        if (intid == 11) then
        unit:FullCastSpellOnTarget(25396, player)
        player:GossipComplete()
        end
    
        if (intid == 12) then
        unit:FullCastSpellOnTarget(25222, player)
        player:GossipComplete()
        end
    
        if (intid == 13) then
        player:LearnSpell(15007)
        player:UnlearnSpell(15007)
        player:GossipComplete()
        end
    
        if (intid == 97) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Strength", 20, 0)
        unit:GossipMenuAddItem(5,"Stamina", 21, 0)
        unit:GossipMenuAddItem(5,"Agility", 22, 0)
        unit:GossipMenuAddItem(5,"Intellect", 23, 0)
        unit:GossipMenuAddItem(5,"Protection", 24, 0)
        unit:GossipMenuAddItem(5,"Spirit", 25, 0)
        unit:GossipMenuAddItem(5,"Songflower Serenade", 26, 0)
        unit:GossipMenuAddItem(5,"Blessing of Kings (10% Stats)", 27, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 20) then
        unit:FullCastSpellOnTarget(33082, player)
        player:GossipComplete()
        end
    
        if (intid == 21) then
        unit:FullCastSpellOnTarget(33081, player)
        player:GossipComplete()
        end
    
        if (intid == 22) then
        unit:FullCastSpellOnTarget(33077, player)
        player:GossipComplete()
        end
    
        if (intid == 23) then
        unit:FullCastSpellOnTarget(33078, player)
        player:GossipComplete()
        end
    
        if (intid == 24) then
        unit:FullCastSpellOnTarget(33079, player)
        player:GossipComplete()
        end
    
        if (intid == 25) then
        unit:FullCastSpellOnTarget(33080, player)
        player:GossipComplete()
        end
    
        if (intid == 26) then
        unit:FullCastSpellOnTarget(15366, player)
        player:GossipComplete()
        end
    
        if (intid == 27) then
        unit:FullCastSpellOnTarget(20217, player)
        player:GossipComplete()
        end
    
        if (intid == 99) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Benny Questgiver", 50, 0)
        unit:GossipMenuAddItem(5,"Illidan", 51, 0)
        unit:GossipMenuAddItem(5,"Hogger", 52, 0)
        unit:GossipMenuAddItem(5,"Pit Commander", 53, 0)
        unit:GossipMenuAddItem(5,"Wrath Master", 54, 0)
        unit:GossipMenuAddItem(5,"Tagar Spinebreaker", 55, 0)
        unit:GossipMenuAddItem(5,"Merciles Dragon", 56, 0)
        unit:GossipMenuAddItem(5,"Ravager", 57, 0)
        unit:GossipMenuAddItem(5,"Tauren", 58, 0)
        unit:GossipMenuAddItem(5,"Worm", 59, 0)
        unit:GossipMenuAddItem(5,"A Hydra!", 60, 0)
        unit:GossipMenuAddItem(4,"[Next]", 997, 0)
        unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 50) then
        player:SetModel(6074)
        player:GossipComplete()
        end
    
        if (intid == 51) then
        player:SetModel(21135)
        player:GossipComplete()
        end
    
        if (intid == 52) then
        player:SetModel(384)
        player:GossipComplete()
        end
    
        if (intid == 53) then
        player:SetModel(18622)
        player:GossipComplete()
        end
    
        if (intid == 54) then
        player:SetModel(18531)
        player:GossipComplete()
        end
    
        if (intid == 55) then
        player:SetModel(21025)
        player:GossipComplete()
        end
    
        if (intid == 56) then
        player:SetModel(22620)
        player:GossipComplete()
        end
    
        if (intid == 57) then
        player:SetModel(741)
        player:GossipComplete()
        end
    
        if (intid == 58) then
        player:SetModel(20618)
        player:GossipComplete()
        end
    
        if (intid == 59) then
        player:SetModel(13009)
        player:GossipComplete()
        end
    
        if (intid == 60) then
        player:SetModel(6737)
        player:GossipComplete()
        end
    
        if (intid == 997) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Onyxia", 61, 0)
        unit:GossipMenuAddItem(5,"VanCleef", 62, 0)
        unit:GossipMenuAddItem(5,"Prince Malchezaar", 63, 0)
        unit:GossipMenuAddItem(5,"Zul'jin", 64, 0)
        unit:GossipMenuAddItem(5,"Gruul the Dragonkiller", 65, 0)
        unit:GossipMenuAddItem(5,"Al'ar", 66, 0)
        unit:GossipMenuAddItem(5,"Kael'thas", 67, 0)
        unit:GossipMenuAddItem(5,"Magtheridon", 68, 0)
        unit:GossipMenuAddItem(5,"Lady Vashj", 69, 0)
        unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
        unit:GossipMenuAddItem(4,"[Back to last Menu]", 1000, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 61) then
        player:SetModel(8570)
        player:GossipComplete()
        end
    
        if (intid == 62) then
        player:SetModel(2029)
        player:GossipComplete()
        end
    
        if (intid == 63) then
        player:SetModel(19274)
        player:GossipComplete()
        end
    
        if (intid == 64) then
        player:SetModel(21899)
        player:GossipComplete()
        end
    
        if (intid == 65) then
        player:SetModel(18698)
        player:GossipComplete()
        end
    
        if (intid == 66) then
        player:SetModel(18945)
        player:GossipComplete()
        end
    
        if (intid == 67) then
        player:SetModel(20023)
     player:GossipComplete()
    end
    
    if (intid == 68) then
     player:SetModel(18527)
     player:GossipComplete()
    end
    
    if (intid == 69) then
     player:SetModel(20748)
     player:GossipComplete()
    end
    
    if (intid == 998) then
     unit:SendChatMessage(12, 0, "To DeMorph you must relog!")
     player:SetModel(0)
     player:GossipComplete()
    end
    
    if (intid == 1000) then
     unit:GossipCreateMenu(100, player, 0)
     unit:GossipMenuAddItem(5,"Benny Questgiver", 50, 0)
     unit:GossipMenuAddItem(5,"Illidan", 51, 0)
     unit:GossipMenuAddItem(5,"Hogger", 52, 0)
     unit:GossipMenuAddItem(5,"Pit Commander", 53, 0)
     unit:GossipMenuAddItem(5,"Wrath Master", 54, 0)
     unit:GossipMenuAddItem(5,"Tagar Spinebreaker", 55, 0)
     unit:GossipMenuAddItem(5,"Merciles Dragon", 56, 0)
     unit:GossipMenuAddItem(5,"Ravager", 57, 0)
     unit:GossipMenuAddItem(5,"Tauren", 58, 0)
     unit:GossipMenuAddItem(5,"Worm", 59, 0)
     unit:GossipMenuAddItem(5,"A Hydra!", 60, 0)
     unit:GossipMenuAddItem(4,"[Next]", 997, 0)
     unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
     unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
     unit:GossipSendMenu(player)
     end
    
    if (intid == 999) then
     unit:GossipCreateMenu(100, player, 0)
     unit:GossipMenuAddItem(4,"Heals", 1, 0)
     unit:GossipMenuAddItem(4,"Buffs", 2, 0)
     unit:GossipMenuAddItem(4,"Morphs", 3, 0)
     unit:GossipSendMenu(player)
     end
    
    end

  3. #3
    flameworker's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well now i get another error when i try to acces the NPC in game there come in the world log file that Unit is a nile value

  4. #4
    Evilbuffy's Avatar Member
    Reputation
    38
    Join Date
    Mar 2009
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function matrix_main_menu(Unit, player)
    Unit:GossipCreateMenu(3544, player, 0)
    Unit:GossipMenuAddItem(9, "Mall Non-Pvp", 14, 0)
    Unit:GossipMenuAddItem(5, "Horde Location", 16, 0)
    Unit:GossipMenuAddItem(5, "Alliance Location", 15, 0)
    Unit:GossipMenuAddItem(0, "Outland and Northern Locations", 302, 0)
    Unit:GossipMenuAddItem(7, "Outland Instance", 17, 0)
    Unit:GossipMenuAddItem(5, "Outland Raids", 18, 0)
    Unit:GossipMenuAddItem(7, "Azeroth Instance", 19, 0)
    Unit:GossipMenuAddItem(5, "Azeroth Raids", 20, 0)
    Unit:GossipMenuAddItem(6, "Weapon skillz", 21, 0)
    Unit:GossipMenuAddItem(2, "Enter Arena", 212, 0)
    Unit:GossipMenuAddItem(2, "Isle of Quel' Danas", 11, 0)
    unit:GossipMenuAddItem(4, "Heals" , 97, 0)
    unit:GossipMenuAddItem(4, "Buffs" , 98, 0)
    unit:GossipMenuAddItem(4, "Morphs" , 99, 0)
    Unit:GossipSendMenu(player)
    end

    function On_Gossip(Unit, event, player)
    matrix_main_menu(Unit, player)
    end

    function On_Select(Unit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    player:Teleport(0,-13271.959961,149.105515,34.46445
    Unit:GossipComplete(player)
    end

    if(intid == 16) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Orgrimmar", 38, 0)
    Unit:GossipMenuAddItem(1, "Undercity", 39, 0)
    Unit:GossipMenuAddItem(1, "Thunder Bluff", 40, 0)
    Unit:GossipMenuAddItem(1, "Silvermoon City", 41, 0)
    Unit:GossipMenuAddItem(1, "Nemesis Obstical Course", 66, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 14) then
    player:Teleport(530,-1887.510010,5359.379883,12.427300)
    Unit:GossipComplete(player)
    end

    if(intid == 17) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(5, "Hellfire Ramparts", 52, 0)
    Unit:GossipMenuAddItem(5, "Blood Furnace", 53, 0)
    Unit:GossipMenuAddItem(5, "Shattered Halls", 54, 0)
    Unit:GossipMenuAddItem(5, "Underbog", 55, 0)
    Unit:GossipMenuAddItem(5, "Slave Pens", 56, 0)
    Unit:GossipMenuAddItem(5, "Mana Tombs", 57, 0)
    Unit:GossipMenuAddItem(5, "Sethekk Halls", 58, 0)
    Unit:GossipMenuAddItem(5, "Shadow Lab", 59, 0)
    Unit:GossipMenuAddItem(5, "Mechanar", 60, 0)
    Unit:GossipMenuAddItem(5, "Arcatraz", 61, 0)
    Unit:GossipMenuAddItem(5, "Caverns of Time", 62, 0)
    Unit:GossipMenuAddItem(5, "Serpentshrine caverns", 63, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if (intid == 302) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Borean Tundra [68-72]", 570, 0)
    Unit:GossipMenuAddItem(1, "Howling Fjord [68-72]", 580, 0)
    Unit:GossipMenuAddItem(1, "Dragonblight [71-74]", 590, 0)
    Unit:GossipMenuAddItem(1, "Grizzly Hills [73-75]", 600, 0)
    Unit:GossipMenuAddItem(1, "Crystalsong Forest [74-76]", 610, 0)
    Unit:GossipMenuAddItem(1, "Zul'Drak [74-77]", 620, 0)
    Unit:GossipMenuAddItem(1, "Sholazar Basin [75-78]", 630, 0)
    Unit:GossipMenuAddItem(1, "The Storm Peaks [76-80]", 640, 0)
    Unit:GossipMenuAddItem(1, "Icecrown [77-80]", 650, 0)
    Unit:GossipMenuAddItem(1, "Wintergrasp [PVP]", 660, 0)
    Unit:GossipMenuAddItem(2, "Shattrath", 135, 0)
    Unit:GossipMenuAddItem(2, "Blade's Edge Mountains", 530, 0)
    Unit:GossipMenuAddItem(2, "Hellfire Peninsula/The Dark Portal", 500, 0)
    Unit:GossipMenuAddItem(2, "Nagrand", 520, 0)
    Unit:GossipMenuAddItem(2, "Netherstorm", 54, 0)
    Unit:GossipMenuAddItem(2, "Shadowmoon Valley", 550, 0)
    Unit:GossipMenuAddItem(2, "Terokkar Forest", 510, 0)
    Unit:GossipMenuAddItem(2, "Zangarmarsh", 560, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 1 then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(5, "Black Temple", 73, 0)
    Unit:GossipMenuAddItem(5, "Tempest Keep", 74, 0)
    Unit:GossipMenuAddItem(5, "Maghteridons Lair", 75, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 19) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(5, "Shadowfang Keep", 42, 0)
    Unit:GossipMenuAddItem(5, "Scarlet Monastery", 43, 0)
    Unit:GossipMenuAddItem(5, "Zul'Farrak", 44, 0)
    Unit:GossipMenuAddItem(5, "Scholomance", 45, 0)
    Unit:GossipMenuAddItem(5, "The Deadmines", 46, 0)
    Unit:GossipMenuAddItem(5, "Uldaman", 47, 0)
    Unit:GossipMenuAddItem(5, "Sunken temple", 48, 0)
    Unit:GossipMenuAddItem(5, "Lower Blackrock Depths", 49, 0)
    Unit:GossipMenuAddItem(5, "Dire Maul", 50, 0)
    Unit:GossipMenuAddItem(5, "Upper Blackrock Depths", 51, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 20) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(5, "Onyxias Lair", 64, 0)
    Unit:GossipMenuAddItem(5, "Molten Core", 65, 0)
    Unit:GossipMenuAddItem(5, "Blackwing Lair", 66, 0)
    Unit:GossipMenuAddItem(5, "Zul'Gurub", 67, 0)
    Unit:GossipMenuAddItem(5, "Karazhan", 68, 0)
    Unit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj 20", 69, 0)
    Unit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj 40", 70, 0)
    Unit:GossipMenuAddItem(5, "Naxxramas", 71, 0)
    Unit:GossipMenuAddItem(5, "Zul'Aman", 72, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 15) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Stormwind", 34, 0)
    Unit:GossipMenuAddItem(1, "Ironforge", 35, 0)
    Unit:GossipMenuAddItem(1, "Darnassus", 36, 0)
    Unit:GossipMenuAddItem(1, "The Exodar", 37, 0)
    Unit:GossipMenuAddItem(1, "Nemesis Obstical Course", 66, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 21) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(0, "Weapon Skills", 25, 0)
    Unit:GossipMenuAddItem(5, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 212) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(2, "Arena Floor", 9, 0)
    Unit:GossipMenuAddItem(2, "Gurubashi Arena", 1, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 76) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Bows", 84, 0)
    Unit:GossipMenuAddItem(1, "Crossbows", 85, 0)
    Unit:GossipMenuAddItem(1, "Guns", 86, 0)
    Unit:GossipMenuAddItem(1, "Thrown", 87, 0)
    Unit:GossipMenuAddItem(1, "Wands", 88, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 77) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Axes", 89, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Maces", 90, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Swords", 91, 0)
    Unit:GossipMenuAddItem(1, "Daggers", 92, 0)
    Unit:GossipMenuAddItem(1, "Fist Weapons", 93, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 7 then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Axes", 94, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Maces", 95, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Swords", 96, 0)
    Unit:GossipMenuAddItem(1, "Staves", 97, 0)
    Unit:GossipMenuAddItem(1, "Polearms", 98, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 100) then
    Unit:GossipCreateMenu(3544, player, 0)
    Unit:GossipMenuAddItem(9, "Mall Non-Pvp", 14, 0)
    Unit:GossipMenuAddItem(5, "Horde Location", 16, 0)
    Unit:GossipMenuAddItem(5, "Alliance Location", 15, 0)
    Unit:GossipMenuAddItem(7, "Outland Instance", 17, 0)
    Unit:GossipMenuAddItem(5, "Outland Raids", 18, 0)
    Unit:GossipMenuAddItem(7, "Azeroth Instance", 19, 0)
    Unit:GossipMenuAddItem(5, "Azeroth Raids", 20, 0)
    Unit:GossipMenuAddItem(6, "Weapon skillz", 21, 0)
    Unit:GossipMenuAddItem(2, "Arena Floor", 9, 0)
    Unit:GossipMenuAddItem(2, "Gurubashi Arena", 1, 0)
    Unit:GossipMenuAddItem(2, "Isle of Quel' Danas", 11, 0)
    Unit:GossipMenuAddItem(8, "Buff Me Up!", 900, 0)
    unit:GossipMenuAddItem(4,"Heals", 97, 0)
    unit:GossipMenuAddItem(4,"Buffs", 98, 0)
    unit:GossipMenuAddItem(4,"Morphs", 99, 0)
    Unit:GossipSendMenu(player)
    endossipSendMenu(player)
    end

    if(intid == 25) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(0, "Ranged Weapons", 76, 0)
    Unit:GossipMenuAddItem(0, "One-Handed Weapons", 77, 0)
    Unit:GossipMenuAddItem(0, "Two-Handed Weapons", 78, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end

    if(intid == 3) then
    player:Teleport(0,1820.300537,239.093185,60.585197)
    Unit:GossipComplete(player)
    end

    if(intid == 4) then
    player:Teleport(1,-1277,118,131)
    Unit:GossipComplete(player)
    end

    if(intid == 5) then
    player:Teleport(0,-9166.856445,467.493500,103.974922)
    Unit:GossipComplete(player)
    end

    if(intid == 34) then
    player:Teleport(0, -9165.678711,470.176544, 103.978409)
    end

    if(intid == 35) then
    player:Teleport(0, -4977.095215, -888.452942, 501.621216)
    end

    if(intid == 36) then
    player:Teleport(1, 9943.809570, 2275.350098, 1341.390015)
    end

    if(intid == 37) then
    player:Teleport(530, -3792.557861, -11691.3, -105.241)
    end

    if(intid == 3 then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end

    if(intid == 39) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end

    if(intid == 40) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end

    if(intid == 41) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end

    if(intid == 52) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end

    if(intid == 53) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end

    if(intid == 54) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end

    if(intid == 55) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end

    if(intid == 56) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end

    if(intid == 57) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end

    if(intid == 5 then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end

    if(intid == 59) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end

    if(intid == 60) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end

    if(intid == 61) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end

    if(intid == 62) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end

    if(intid == 63) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end

    if(intid == 42) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 43) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 44) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 45) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 46) then
    player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    if(intid == 47) then
    player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 4 then
    player:Teleport(0, -10349.1, -3849.67, -24.607
    end
    if(intid == 49) then
    player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 50) then
    player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 51) then
    player:Teleport(229, 73.5083, -215.044, 53.3869)
    end

    if(intid == 141) then
    player:Teleport(534, 5250.59570, -2181.692871, 1262.153320)
    Unit:GossipComplete(player)
    end


    if(intid == 6) then
    player:Teleport(0,-9175.966797,337.554688,83.550049)
    Unit:GossipComplete(player)
    end

    if(intid == 73) then
    player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 74) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 75) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end

    if(intid == 64) then
    player:Teleport(1, -4746, -3749, -4)
    end
    if(intid == 65) then
    player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 66) then
    player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 67) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 6 then
    player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 69) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 70) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 71) then
    player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid == 72) then
    player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 122) then
    player:Teleport(530, -248.160004, 922.348999, 84.379799)
    end
    if(intid == 123) then
    player:Teleport(530, -225.863632, 5405.927246, 22.346397)
    end
    if(intid == 124) then
    player:Teleport(530, -468.232330, 8418.666016, 28.03129
    end
    if(intid == 125) then
    player:Teleport(530, 3396.123779, 4182.208008, 137.097992)
    end
    if(intid == 126) then
    player:Teleport(530, -1202.426636, 5313.692871, 33.774723)
    end
    if(intid == 127) then
    player:Teleport(530, -2859.522461, 3182.34773, 10.008426)
    end
    if(intid == 12 then
    player:Teleport(530, 1471.672852, 6828.047852, 107.759239)
    end

    if (intid == 135) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300) -- Shattrath
    end

    if(intid == 7) then
    player:Teleport(0,-4981.25, -881.542, 502.66)
    Unit:GossipComplete(player)
    end

    if (intid == 500) then
    player:Teleport(530, -248.431702, 939.013367, 84.379822) -- Hellfire Peninsula/ The Dark Portal
    end

    if (intid == 510) then
    player:Teleport(530, -1176.588989, 5336.273926, 29.897034) -- Terokkar Forest
    end

    if (intid == 520) then
    player:Teleport(530, -526, 8440, 47.426472) -- Nagrand
    end

    if (intid == 530) then
    player:Teleport(530, 1114.010254, 7090.967285, 122.127274) -- Blade's Edge Mountains
    end

    if (intid == 540) then
    player:Teleport(530, 2315.689209, 2535.836670, 119.271622) -- Netherstorm
    end

    if(intid == 550) then
    player:Teleport(530, -2847.810791, 3190.677246, 8.13672 -- Shadowmoon Valley
    end

    if(intid == 560) then
    player:Teleport(530, 30.284981, 6983.303711, 148.666779) -- Zangarmarsh
    end

    if(intid == 570) then
    player:Teleport(571, 3452, 3836, 29)
    end

    if(intid == 580) then
    player:Teleport(571, 592, -5095, 6)
    end

    if(intid == 590) then
    player:Teleport(571, 3577, 656, 77)
    end

    if(intid == 600) then
    player:Teleport(571, 2767, -2889, 64)
    end

    if (intid == 610) then
    player:Teleport(571, 5398, -743, 163)
    end

    if(intid == 620) then
    player:Teleport(571, 5449, -1442, 24
    end

    if(intit == 630) then
    player:Teleport(571, 6516, 4824, -55)
    end

    if(intid == 640) then
    player:Teleport(571, 7343, -927, 910)
    end

    if(intid == 650) then
    player:Teleport(571, 6434, 1151, 283)
    end

    if(intid == 660) then
    player:Teleport(571, 4717, 2420, 3462)
    end

    if(intid == 670) then
    Unit:GossipCreateMenu(3543, player, 0)
    end

    if(intid == then
    player:Teleport(530,6850, -7950, 170)
    Unit:GossipComplete(player)
    end

    if(intid == 66) then
    player:Teleport(169, 3059, 3177, 30)
    player:GossipComplete()
    end


    if(intid == 23) then
    player:SendInnkeeperBind(pCreature)
    Unit:GossipComplete(player)
    end

    if(intid == 9) then
    player:Teleport(530,-2011.498413, 6601.716797, 12.434589)
    Unit:GossipComplete(player)
    end


    if(intid == 11) then
    player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
    Unit:GossipComplete(player)
    end

    if(intid == 12) then
    player:Teleport(0, -13243.240234, 197.949799, 32.112690)
    Unit:GossipComplete(player)
    end

    if(intid == 13) then
    player:LearnSpell(21169)
    Unit:GossipComplete(player)
    end

    if (intid == 96) then
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(5,"Cast: Holy Light", 10, 0)
    unit:GossipMenuAddItem(5,"Cast: Healing Wave", 11, 0)
    unit:GossipMenuAddItem(5,"Cast: Renew", 12, 0)
    unit:GossipMenuAddItem(5,"Remove Resurrection Sickness", 13, 0)
    unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if (intid == 10) then
    unit:FullCastSpellOnTarget(27136, player)
    player:GossipComplete()
    end

    if (intid == 11) then
    unit:FullCastSpellOnTarget(25396, player)
    player:GossipComplete()
    end

    if (intid == 12) then
    unit:FullCastSpellOnTarget(25222, player)
    player:GossipComplete()
    end

    if (intid == 13) then
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    player:GossipComplete()
    end

    if (intid == 97) then
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(5,"Strength", 20, 0)
    unit:GossipMenuAddItem(5,"Stamina", 21, 0)
    unit:GossipMenuAddItem(5,"Agility", 22, 0)
    unit:GossipMenuAddItem(5,"Intellect", 23, 0)
    unit:GossipMenuAddItem(5,"Protection", 24, 0)
    unit:GossipMenuAddItem(5,"Spirit", 25, 0)
    unit:GossipMenuAddItem(5,"Songflower Serenade", 26, 0)
    unit:GossipMenuAddItem(5,"Blessing of Kings (10% Stats)", 27, 0)
    unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if (intid == 20) then
    unit:FullCastSpellOnTarget(33082, player)
    player:GossipComplete()
    end

    if (intid == 21) then
    unit:FullCastSpellOnTarget(33081, player)
    player:GossipComplete()
    end

    if (intid == 22) then
    unit:FullCastSpellOnTarget(33077, player)
    player:GossipComplete()
    end

    if (intid == 23) then
    unit:FullCastSpellOnTarget(33078, player)
    player:GossipComplete()
    end

    if (intid == 24) then
    unit:FullCastSpellOnTarget(33079, player)
    player:GossipComplete()
    end

    if (intid == 25) then
    unit:FullCastSpellOnTarget(33080, player)
    player:GossipComplete()
    end

    if (intid == 26) then
    unit:FullCastSpellOnTarget(15366, player)
    player:GossipComplete()
    end

    if (intid == 27) then
    unit:FullCastSpellOnTarget(20217, player)
    player:GossipComplete()
    end

    if (intid == 99) then
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(5,"Benny Questgiver", 50, 0)
    unit:GossipMenuAddItem(5,"Illidan", 51, 0)
    unit:GossipMenuAddItem(5,"Hogger", 52, 0)
    unit:GossipMenuAddItem(5,"Pit Commander", 53, 0)
    unit:GossipMenuAddItem(5,"Wrath Master", 54, 0)
    unit:GossipMenuAddItem(5,"Tagar Spinebreaker", 55, 0)
    unit:GossipMenuAddItem(5,"Merciles Dragon", 56, 0)
    unit:GossipMenuAddItem(5,"Ravager", 57, 0)
    unit:GossipMenuAddItem(5,"Tauren", 58, 0)
    unit:GossipMenuAddItem(5,"Worm", 59, 0)
    unit:GossipMenuAddItem(5,"A Hydra!", 60, 0)
    unit:GossipMenuAddItem(4,"[Next]", 997, 0)
    unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
    unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if (intid == 50) then
    player:SetModel(6074)
    player:GossipComplete()
    end

    if (intid == 51) then
    player:SetModel(21135)
    player:GossipComplete()
    end

    if (intid == 52) then
    player:SetModel(384)
    player:GossipComplete()
    end

    if (intid == 53) then
    player:SetModel(18622)
    player:GossipComplete()
    end

    if (intid == 54) then
    player:SetModel(18531)
    player:GossipComplete()
    end

    if (intid == 55) then
    player:SetModel(21025)
    player:GossipComplete()
    end

    if (intid == 56) then
    player:SetModel(22620)
    player:GossipComplete()
    end

    if (intid == 57) then
    player:SetModel(741)
    player:GossipComplete()
    end

    if (intid == 5 then
    player:SetModel(2061
    player:GossipComplete()
    end

    if (intid == 59) then
    player:SetModel(13009)
    player:GossipComplete()
    end

    if (intid == 60) then
    player:SetModel(6737)
    player:GossipComplete()
    end

    if (intid == 997) then
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(5,"Onyxia", 61, 0)
    unit:GossipMenuAddItem(5,"VanCleef", 62, 0)
    unit:GossipMenuAddItem(5,"Prince Malchezaar", 63, 0)
    unit:GossipMenuAddItem(5,"Zul'jin", 64, 0)
    unit:GossipMenuAddItem(5,"Gruul the Dragonkiller", 65, 0)
    unit:GossipMenuAddItem(5,"Al'ar", 66, 0)
    unit:GossipMenuAddItem(5,"Kael'thas", 67, 0)
    unit:GossipMenuAddItem(5,"Magtheridon", 68, 0)
    unit:GossipMenuAddItem(5,"Lady Vashj", 69, 0)
    unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
    unit:GossipMenuAddItem(4,"[Back to last Menu]", 1000, 0)
    unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if (intid == 61) then
    player:SetModel(8570)
    player:GossipComplete()
    end

    if (intid == 62) then
    player:SetModel(2029)
    player:GossipComplete()
    end

    if (intid == 63) then
    player:SetModel(19274)
    player:GossipComplete()
    end

    if (intid == 64) then
    player:SetModel(21899)
    player:GossipComplete()
    end

    if (intid == 65) then
    player:SetModel(1869
    player:GossipComplete()
    end

    if (intid == 66) then
    player:SetModel(18945)
    player:GossipComplete()
    end

    if (intid == 67) then
    player:SetModel(20023)
    player:GossipComplete()
    end

    if (intid == 6 then
    player:SetModel(18527)
    player:GossipComplete()
    end

    if (intid == 69) then
    player:SetModel(2074
    player:GossipComplete()
    end

    if (intid == 99 then
    unit:SendChatMessage(12, 0, "To DeMorph you must relog!")
    player:SetModel(0)
    player:GossipComplete()
    end

    if (intid == 1000) then
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(5,"Benny Questgiver", 50, 0)
    unit:GossipMenuAddItem(5,"Illidan", 51, 0)
    unit:GossipMenuAddItem(5,"Hogger", 52, 0)
    unit:GossipMenuAddItem(5,"Pit Commander", 53, 0)
    unit:GossipMenuAddItem(5,"Wrath Master", 54, 0)
    unit:GossipMenuAddItem(5,"Tagar Spinebreaker", 55, 0)
    unit:GossipMenuAddItem(5,"Merciles Dragon", 56, 0)
    unit:GossipMenuAddItem(5,"Ravager", 57, 0)
    unit:GossipMenuAddItem(5,"Tauren", 58, 0)
    unit:GossipMenuAddItem(5,"Worm", 59, 0)
    unit:GossipMenuAddItem(5,"A Hydra!", 60, 0)
    unit:GossipMenuAddItem(4,"[Next]", 997, 0)
    unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
    unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if (intid == 999) then
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(4,"Heals", 1, 0)
    unit:GossipMenuAddItem(4,"Buffs", 2, 0)
    unit:GossipMenuAddItem(4,"Morphs", 3, 0)
    unit:GossipSendMenu(player)
    end

    RegisterUnitGossipEvent(222334, 1, "On_Gossip")
    RegisterUnitGossipEvent(222334, 2, "Gossip_Submenus")
    Try this. I moved RegisterUnitGossipEvent to the bottom instead, it works for me.

  5. #5
    crizatu's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey guys i tried this npc and i have an errror in game ... The tel sayes : ID:70 is a bad WolrdString TEXT ! i tried all but he says this alltimes.... i'll give +Rep hwo can help me
    Srry for my english but i'm from roumania

Similar Threads

  1. [Lua] lua script errors - HELP
    By singoe in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 04-28-2010, 07:42 AM
  2. Lua script error
    By rygarok in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 02-09-2010, 11:35 AM
  3. LUA script error :(
    By lilbdiablo12 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-29-2008, 07:45 PM
  4. LUA Script Error, Help would be appreciated!
    By pachuco55 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-20-2008, 06:03 PM
  5. [Help me] Lua script error? please help.
    By Szharz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-22-2008, 12:20 PM
All times are GMT -5. The time now is 03:02 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