Teleporter NPC LUA menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Teleporter NPC LUA

    I get an error "ambigious Syntax"
    (function call x new statement) Near "("


    Code:
    function warp_on_gossip_talk(unit, event, player)
    unit:CreateGossipMenuForPlayer(3543, player)
    unit:MenuAddItem(player, 0, "Horde cities", 1, 0)
    unit:MenuAddItem(player, 0, "Alliance cities", 2, 0)
    unit:MenuAddItem(player, 0, "Azeroth Instances", 5, 0)
    unit:MenuAddItem(player, 5, "Shattrath", 51, 0)
    unit:MenuSendToPlayer(player)
    end
    function warp_on_gossip_select(unit, event, player, id, intid, code)
    if(intid == 1) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Orgrimmar", 9, 0)
    unit:MenuAddItem(player, 5, "Undercity", 10, 0)
    unit:MenuAddItem(player, 5, "Thunder Bluff", 11, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)unit:MenuSendToPlayer(player)
    end
    if(intid == 2) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Stormwind", 14, 0)
    unit:MenuAddItem(player, 5, "Ironforge", 15, 0)
    unit:MenuAddItem(player, 5, "Darnassus", 16, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 5) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 0, "Azeroth Raids", 3, 0)
    unit:MenuAddItem(player, 5, "Shadowfang Keep", 19, 0)
    unit:MenuAddItem(player, 5, "Scarlet Monastery", 20, 0)
    unit:MenuAddItem(player, 5, "Zul'Farrak", 21, 0)
    unit:MenuAddItem(player, 5, "Stratholme", 22, 0)
    unit:MenuAddItem(player, 5, "Scholomance", 23, 0)
    unit:MenuAddItem(player, 5, "Ragefire", 110, 0)
    unit:MenuAddItem(player, 5, "Deathmines", 170, 0)
    unit:MenuAddItem(player, 5, "Wailing Caverns", 111,0)
    unit:MenuAddItem(player, 5, "Blackfathom deepths", 112, 0)
    unit:MenuAddItem(player, 5, "The Stockades", 113,0)
    unit:MenuAddItem(player, 5, "Gnomeregan", 114, 0)
    unit:MenuAddItem(player, 5, "Razorfen Kraul", 115, 0)
    unit:MenuAddItem(player, 5, "Razorfen Downs", 116, 0)
    unit:MenuAddItem(player, 5, "Uldaman", 117, 0)
    unit:MenuAddItem(player, 5, "Maraudon", 118, 0)
    unit:MenuAddItem(player, 5, "Sunken temple", 119, 0)
    unit:MenuAddItem(player, 5, "Lower Blackrock", 120, 0)
    unit:MenuAddItem(player, 5, "Dire Maul", 121, 0)
    unit:MenuAddItem(player, 5, "Upper Blackrock", 122, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 3) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Onyxias Lair", 39, 0)
    unit:MenuAddItem(player, 5, "Molten Core", 40, 0)
    unit:MenuAddItem(player, 5, "Blackwing Lair", 123, 0)
    unit:MenuAddItem(player, 5, "Zul'Gurub", 41, 0)
    unit:MenuAddItem(player, 5, "Karazhan", 42, 0)
    unit:MenuAddItem(player, 5, "Ruins of Ahn'Qiraj", 43, 0)
    unit:MenuAddItem(player, 5, "Temple of Ahn'Qiraj", 44, 0)
    unit:MenuAddItem(player, 5, "Naxxramas", 45, 0)
    unit:MenuAddItem(player, 5, "Zul'Aman", 124, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 12) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    if(intid == 9) then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    if(intid == 11) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    if(intid == 10) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end
    if(intid == 17) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    end
    if(intid == 14) then
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    endif
    (intid == 15) then
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
    end
    if(intid == 16) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    end
    if(intid == 51) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300)
    end
    if(intid == 19) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 20) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 21) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360)end
    if(intid == 41) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744)end
    if(intid == 43) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563)end
    if(intid == 44) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 40) then
    player:Teleport(409, 1089.6, -470.19, -106.41)end
    if(intid == 39) thenplayer:Teleport(1, -4746, -3749, -4.0)
    end
    if(intid == 45) then
    player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid = 23) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 24) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
    end
    if(intid == 38) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
    end
    if(intid == 42) thenplayer:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 52) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    if(intid == 25) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    if(intid == 26) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500)end
    if(intid == 27) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923)end
    if(intid == 28) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    if(intid == 29) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    if(intid == 30) then
    player:Teleport(530, 816.590027, 6934.669922, -80.544601)end
    if(intid == 31) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    if(intid == 32) then
    player:Teleport(530, -3361.959961, 5225.770020, -101.047997)end
    if(intid == 33) then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004)end
    if(intid == 34) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997)end
    if(intid == 35) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    if(intid == 36) then
    player:Teleport(530, 3413.649902, 1483.319946, 182.837997)
    end
    if(intid == 37) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    if(intid == 46) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    if(intid == 47) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    if(intid == 48) then
    player:Teleport(530, 3549.424072, 5179.854004, -4.430779)
    end
    if(intid == 49) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 50) then
    player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 124) then
    player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 136) then
    player:Teleport(0, -13152.9, 342.729, 53.1328)
    end
    if(intid = 110) then
    player:Teleport(389, 1.7849, -14.3685, -16.5533)
    end
    if(intid == 111) then
    player:Teleport(1, -746.207, -2213.18, 15.8909)
    end
    if(intid == 112) then
    player:Teleport(48, -152.984, 106.33, -39.0953)
    end
    if(intid == 113) then
    player:Teleport(0, -8776.78, 836.753, 93.1946)end
    if(intid == 114) then
    player:Teleport(0, -5189.22, 524.796, 389.107)
    end
    if(intid == 115) then
    player:Teleport(1, -4464.92, -1666.24, 91)
    end
    if(intid == 116) then
    player:Teleport(129, 2591.99, 1101.25, 52.8593)
    end
    if(intid == 117) then
    player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 118) then
    player:Teleport(349, 419.84, 11.3365, -131.079)
    end
    if(intid == 119) then
    player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 120) then
    player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 121) then
    player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 122) then
    player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    if(intid == 123) then
    player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 170) then
    player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    intid = 0
    end
    RegisterGossipEvent(9005 , 1, "warp_on_gossip_talk")
    RegisterGossipEvent(9005 , 2, "warp_on_gossip_select")


    Teleporter NPC LUA
  2. #2
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I fixed what I could find

    One of the main this was a forgotten enter, it stands "endif" in the middle somewhere, edited that and fixed some more, enters all over

    Code:
    function warp_on_gossip_talk(unit, event, player)
    unit:CreateGossipMenuForPlayer(3543, player)
    unit:MenuAddItem(player, 0, "Horde cities", 1, 0)
    unit:MenuAddItem(player, 0, "Alliance cities", 2, 0)
    unit:MenuAddItem(player, 0, "Azeroth Instances", 5, 0)
    unit:MenuAddItem(player, 5, "Shattrath", 51, 0)
    unit:MenuSendToPlayer(player)
    end
    function warp_on_gossip_select(unit, event, player, id, intid, code)
    if(intid == 1) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Orgrimmar", 9, 0)
    unit:MenuAddItem(player, 5, "Undercity", 10, 0)
    unit:MenuAddItem(player, 5, "Thunder Bluff", 11, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)unit:MenuSendToPlayer(player)
    end
    if(intid == 2) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Stormwind", 14, 0)
    unit:MenuAddItem(player, 5, "Ironforge", 15, 0)
    unit:MenuAddItem(player, 5, "Darnassus", 16, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 5) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 0, "Azeroth Raids", 3, 0)
    unit:MenuAddItem(player, 5, "Shadowfang Keep", 19, 0)
    unit:MenuAddItem(player, 5, "Scarlet Monastery", 20, 0)
    unit:MenuAddItem(player, 5, "Zul'Farrak", 21, 0)
    unit:MenuAddItem(player, 5, "Stratholme", 22, 0)
    unit:MenuAddItem(player, 5, "Scholomance", 23, 0)
    unit:MenuAddItem(player, 5, "Ragefire", 110, 0)
    unit:MenuAddItem(player, 5, "Deathmines", 170, 0)
    unit:MenuAddItem(player, 5, "Wailing Caverns", 111,0)
    unit:MenuAddItem(player, 5, "Blackfathom deepths", 112, 0)
    unit:MenuAddItem(player, 5, "The Stockades", 113,0)
    unit:MenuAddItem(player, 5, "Gnomeregan", 114, 0)
    unit:MenuAddItem(player, 5, "Razorfen Kraul", 115, 0)
    unit:MenuAddItem(player, 5, "Razorfen Downs", 116, 0)
    unit:MenuAddItem(player, 5, "Uldaman", 117, 0)
    unit:MenuAddItem(player, 5, "Maraudon", 118, 0)
    unit:MenuAddItem(player, 5, "Sunken temple", 119, 0)
    unit:MenuAddItem(player, 5, "Lower Blackrock", 120, 0)
    unit:MenuAddItem(player, 5, "Dire Maul", 121, 0)
    unit:MenuAddItem(player, 5, "Upper Blackrock", 122, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 3) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Onyxias Lair", 39, 0)
    unit:MenuAddItem(player, 5, "Molten Core", 40, 0)
    unit:MenuAddItem(player, 5, "Blackwing Lair", 123, 0)
    unit:MenuAddItem(player, 5, "Zul'Gurub", 41, 0)
    unit:MenuAddItem(player, 5, "Karazhan", 42, 0)
    unit:MenuAddItem(player, 5, "Ruins of Ahn'Qiraj", 43, 0)
    unit:MenuAddItem(player, 5, "Temple of Ahn'Qiraj", 44, 0)
    unit:MenuAddItem(player, 5, "Naxxramas", 45, 0)
    unit:MenuAddItem(player, 5, "Zul'Aman", 124, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 12) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    if(intid == 9) then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    if(intid == 11) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    if(intid == 10) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end
    if(intid == 17) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    end
    if(intid == 14) then
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    end
    if(intid == 15) then
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
    end
    if(intid == 16) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    end
    if(intid == 51) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300)
    end
    if(intid == 19) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 20) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 21) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 41) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 43) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 44) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 40) then
    player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 39) then
    player:Teleport(1, -4746, -3749, -4.0)
    end
    if(intid == 45) then
    player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid = 23) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 24) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
    end
    if(intid == 38) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
    end
    if(intid == 42) then
    player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 52) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    if(intid == 25) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    if(intid == 26) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end
    if(intid == 27) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end
    if(intid == 28) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    if(intid == 29) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    if(intid == 30) then
    player:Teleport(530, 816.590027, 6934.669922, -80.544601)
    end
    if(intid == 31) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    if(intid == 32) then
    player:Teleport(530, -3361.959961, 5225.770020, -101.047997)
    end
    if(intid == 33) then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end
    if(intid == 34) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end
    if(intid == 35) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    if(intid == 36) then
    player:Teleport(530, 3413.649902, 1483.319946, 182.837997)
    end
    if(intid == 37) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    if(intid == 46) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    if(intid == 47) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    if(intid == 48) then
    player:Teleport(530, 3549.424072, 5179.854004, -4.430779)
    end
    if(intid == 49) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 50) then
    player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 124) then
    player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 136) then
    player:Teleport(0, -13152.9, 342.729, 53.1328)
    end
    if(intid = 110) then
    player:Teleport(389, 1.7849, -14.3685, -16.5533)
    end
    if(intid == 111) then
    player:Teleport(1, -746.207, -2213.18, 15.8909)
    end
    if(intid == 112) then
    player:Teleport(48, -152.984, 106.33, -39.0953)
    end
    if(intid == 113) then
    player:Teleport(0, -8776.78, 836.753, 93.1946)end
    if(intid == 114) then
    player:Teleport(0, -5189.22, 524.796, 389.107)
    end
    if(intid == 115) then
    player:Teleport(1, -4464.92, -1666.24, 91)
    end
    if(intid == 116) then
    player:Teleport(129, 2591.99, 1101.25, 52.8593)
    end
    if(intid == 117) then
    player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 118) then
    player:Teleport(349, 419.84, 11.3365, -131.079)
    end
    if(intid == 119) then
    player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 120) then
    player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 121) then
    player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 122) then
    player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    if(intid == 123) then
    player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 170) then
    player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    intid = 0
    end
    RegisterGossipEvent(9005 , 1, "warp_on_gossip_talk")
    RegisterGossipEvent(9005 , 2, "warp_on_gossip_select")

  3. #3
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If that is the LUA posted on WOW-v i believe it requires Lua++ and if you dont have it it isnt going to work.. Let me know though if it works after Power fixed it up..

  4. #4
    zsolt333's Avatar Member
    Reputation
    8
    Join Date
    Jun 2008
    Posts
    72
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function warp_on_gossip_talk(unit, event, player)
    unit:CreateGossipMenuForPlayer(3543, player)
    unit:MenuAddItem(player, 0, "Horde cities", 1, 0)
    unit:MenuAddItem(player, 0, "Alliance cities", 2, 0)
    unit:MenuAddItem(player, 0, "Azeroth Instances", 5, 0)
    unit:MenuAddItem(player, 5, "Shattrath", 51, 0)
    unit:MenuSendToPlayer(player)
    end
    function warp_on_gossip_select(unit, event, player, id, intid, code)
    if(intid == 1) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Orgrimmar", 9, 0)
    unit:MenuAddItem(player, 5, "Undercity", 10, 0)
    unit:MenuAddItem(player, 5, "Thunder Bluff", 11, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)unit:MenuSendToPlayer(player)
    end
    if(intid == 2) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Stormwind", 14, 0)
    unit:MenuAddItem(player, 5, "Ironforge", 15, 0)
    unit:MenuAddItem(player, 5, "Darnassus", 16, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 5) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 0, "Azeroth Raids", 3, 0)
    unit:MenuAddItem(player, 5, "Shadowfang Keep", 19, 0)
    unit:MenuAddItem(player, 5, "Scarlet Monastery", 20, 0)
    unit:MenuAddItem(player, 5, "Zul'Farrak", 21, 0)
    unit:MenuAddItem(player, 5, "Stratholme", 22, 0)
    unit:MenuAddItem(player, 5, "Scholomance", 23, 0)
    unit:MenuAddItem(player, 5, "Ragefire", 110, 0)
    unit:MenuAddItem(player, 5, "Deathmines", 170, 0)
    unit:MenuAddItem(player, 5, "Wailing Caverns", 111,0)
    unit:MenuAddItem(player, 5, "Blackfathom deepths", 112, 0)
    unit:MenuAddItem(player, 5, "The Stockades", 113,0)
    unit:MenuAddItem(player, 5, "Gnomeregan", 114, 0)
    unit:MenuAddItem(player, 5, "Razorfen Kraul", 115, 0)
    unit:MenuAddItem(player, 5, "Razorfen Downs", 116, 0)
    unit:MenuAddItem(player, 5, "Uldaman", 117, 0)
    unit:MenuAddItem(player, 5, "Maraudon", 118, 0)
    unit:MenuAddItem(player, 5, "Sunken temple", 119, 0)
    unit:MenuAddItem(player, 5, "Lower Blackrock", 120, 0)
    unit:MenuAddItem(player, 5, "Dire Maul", 121, 0)
    unit:MenuAddItem(player, 5, "Upper Blackrock", 122, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 3) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Onyxias Lair", 39, 0)
    unit:MenuAddItem(player, 5, "Molten Core", 40, 0)
    unit:MenuAddItem(player, 5, "Blackwing Lair", 123, 0)
    unit:MenuAddItem(player, 5, "Zul'Gurub", 41, 0)
    unit:MenuAddItem(player, 5, "Karazhan", 42, 0)
    unit:MenuAddItem(player, 5, "Ruins of Ahn'Qiraj", 43, 0)
    unit:MenuAddItem(player, 5, "Temple of Ahn'Qiraj", 44, 0)
    unit:MenuAddItem(player, 5, "Naxxramas", 45, 0)
    unit:MenuAddItem(player, 5, "Zul'Aman", 124, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 12) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    if(intid == 9) then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    if(intid == 11) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    if(intid == 10) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end
    if(intid == 17) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    end
    if(intid == 14) then
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    end
    if(intid == 15) then
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
    end
    if(intid == 16) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    end
    if(intid == 51) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300)
    end
    if(intid == 19) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 20) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 21) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 41) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 43) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 44) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 40) then
    player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 39) then
    player:Teleport(1, -4746, -3749, -4.0)
    end
    if(intid == 45) then
    player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid == 23) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 24) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
    end
    if(intid == 38) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
    end
    if(intid == 42) then
    player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 52) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    if(intid == 25) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    if(intid == 26) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end
    if(intid == 27) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end
    if(intid == 28) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    if(intid == 29) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    if(intid == 30) then
    player:Teleport(530, 816.590027, 6934.669922, -80.544601)
    end
    if(intid == 31) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    if(intid == 32) then
    player:Teleport(530, -3361.959961, 5225.770020, -101.047997)
    end
    if(intid == 33) then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end
    if(intid == 34) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end
    if(intid == 35) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    if(intid == 36) then
    player:Teleport(530, 3413.649902, 1483.319946, 182.837997)
    end
    if(intid == 37) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    if(intid == 46) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    if(intid == 47) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    if(intid == 48) then
    player:Teleport(530, 3549.424072, 5179.854004, -4.430779)
    end
    if(intid == 49) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 50) then
    player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 124) then
    player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 136) then
    player:Teleport(0, -13152.9, 342.729, 53.1328)
    end
    if(intid == 110) then
    player:Teleport(389, 1.7849, -14.3685, -16.5533)
    end
    if(intid == 111) then
    player:Teleport(1, -746.207, -2213.18, 15.8909)
    end
    if(intid == 112) then
    player:Teleport(48, -152.984, 106.33, -39.0953)
    end
    if(intid == 113) then
    player:Teleport(0, -8776.78, 836.753, 93.1946)end
    if(intid == 114) then
    player:Teleport(0, -5189.22, 524.796, 389.107)
    end
    if(intid == 115) then
    player:Teleport(1, -4464.92, -1666.24, 91)
    end
    if(intid == 116) then
    player:Teleport(129, 2591.99, 1101.25, 52.8593)
    end
    if(intid == 117) then
    player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 118) then
    player:Teleport(349, 419.84, 11.3365, -131.079)
    end
    if(intid == 119) then
    player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 120) then
    player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 121) then
    player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 122) then
    player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    if(intid == 123) then
    player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 170) then
    player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    intid = 0
    end
    RegisterGossipEvent(100050 , 1, "warp_on_gossip_talk")
    RegisterGossipEvent(100050 , 2, "warp_on_gossip_select")




    Here was some ''='' marks missing so I add them,and lol I got a NEW ERROR how can I fix this

    >> Picture <<
    Last edited by zsolt333; 08-12-2008 at 12:54 AM.

  5. #5
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well both of them dont work :S

    Do i need that patch? If so where can i get it.


  6. #6
    jdannels's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Porter no portin...

    I've spent time cleaning this up as well. I've got the latest ac-web build (arcemu with WhyDB) updated to 2.4.3 and have ensured LUA is turned on.
    I am unable to get any RegisterGossipEvent to work. My focus is on this one though.

    I have double and triple checked the script but cannot find the error?!?!?!

    It just says RegisterGossipEvent <a nil value>

    Code:
    function warp_on_gossip_talk(unit, event, player)
    unit:CreateGossipMenuForPlayer(3543, player)
    unit:MenuAddItem(player, 0, "Horde cities", 1, 0)
    unit:MenuAddItem(player, 0, "Alliance cities", 2, 0)
    unit:MenuAddItem(player, 0, "Azeroth Instances", 5, 0)
    unit:MenuAddItem(player, 0, "Outland Instances", 6, 0)
    unit:MenuAddItem(player, 5, "Shattrath", 51, 0)
    unit:MenuSendToPlayer(player)
    end
    function warp_on_gossip_select(unit, event, player, id, intid, code)
    if(intid == 1) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Orgrimmar", 9, 0)
    unit:MenuAddItem(player, 5, "Undercity", 10, 0)
    unit:MenuAddItem(player, 5, "Thunder Bluff", 11, 0)
    unit:MenuAddItem(player, 5, "Silvermoon", 12, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 2) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Stormwind", 14, 0)
    unit:MenuAddItem(player, 5, "Ironforge", 15, 0)
    unit:MenuAddItem(player, 5, "Darnassus", 16, 0)
    unit:MenuAddItem(player, 5, "Exodar", 17, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 5) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 0, "Azeroth Raids", 3, 0)
    unit:MenuAddItem(player, 5, "Shadowfang Keep", 19, 0)
    unit:MenuAddItem(player, 5, "Scarlet Monastery", 20, 0)
    unit:MenuAddItem(player, 5, "Zul'Farrak", 21, 0)
    unit:MenuAddItem(player, 5, "Stratholme", 22, 0)
    unit:MenuAddItem(player, 5, "Scholomance", 23, 0)
    unit:MenuAddItem(player, 5, "Ragefire", 110, 0)
    unit:MenuAddItem(player, 5, "Deathmines", 170, 0)
    unit:MenuAddItem(player, 5, "Those caverns in barrens xX", 111,0)
    unit:MenuAddItem(player, 5, "Blackfathom deepths", 112, 0)
    unit:MenuAddItem(player, 5, "This instance in Stormwind ", 113,0)
    unit:MenuAddItem(player, 5, "Gnomeregan", 114, 0)
    unit:MenuAddItem(player, 5, "Razorfen thing number 1", 115, 0)
    unit:MenuAddItem(player, 5, "Razorfen hills", 116, 0)
    unit:MenuAddItem(player, 5, "Uldaman", 117, 0)
    unit:MenuAddItem(player, 5, "Maraudon", 118, 0)
    unit:MenuAddItem(player, 5, "Sunken temple", 119, 0)
    unit:MenuAddItem(player, 5, "Lower Blackrock", 120, 0)
    unit:MenuAddItem(player, 5, "Dire Maul", 121, 0)
    unit:MenuAddItem(player, 5, "Upper Blackrock", 122, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 6) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Outland Raids", 4, 0)
    unit:MenuAddItem(player, 5, "Hellfire Ramparts", 25, 0)
    unit:MenuAddItem(player, 5, "Blood furnace", 26, 0)
    unit:MenuAddItem(player, 5, "Shattered Halls", 27, 0)
    unit:MenuAddItem(player, 5, "Underbog", 28, 0)
    unit:MenuAddItem(player, 5, "Slave pens", 29, 0)
    unit:MenuAddItem(player, 5, "Steam whatever ", 30, 0)
    unit:MenuAddItem(player, 5, "Mana tombs", 31, 0)
    unit:MenuAddItem(player, 5, "Auchenai crypts", 32, 0)
    unit:MenuAddItem(player, 5, "Sethekk halls", 33, 0)
    unit:MenuAddItem(player, 5, "Shadow lab", 34, 0)
    unit:MenuAddItem(player, 5, "Mechanar", 35, 0)
    unit:MenuAddItem(player, 5, "Bota whatever Oo", 36, 0)
    unit:MenuAddItem(player, 5, "Arcatraz", 37, 0)
    unit:MenuAddItem(player, 5, "Caverns of Time", 52, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 3) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Onyxias Lair", 39, 0)
    unit:MenuAddItem(player, 5, "Molten Core", 40, 0)
    unit:MenuAddItem(player, 5, "Blackwing Lair", 123, 0)
    unit:MenuAddItem(player, 5, "Zul'Gurub", 41, 0)
    unit:MenuAddItem(player, 5, "Karazhan", 42, 0)
    unit:MenuAddItem(player, 5, "Ruins of Ahn'Qiraj", 43, 0)
    unit:MenuAddItem(player, 5, "Temple of Ahn'Qiraj", 44, 0)
    unit:MenuAddItem(player, 5, "Naxxramas", 45, 0)
    unit:MenuAddItem(player, 5, "Zul'Aman", 124, 0)
    unit:MenuAddItem(player, 5, "Caverns of Time", 52, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 4) then
    unit:CreateGossipMenuForPlayer(3542, player)
    unit:MenuAddItem(player, 5, "Black Temple", 50, 0)
    unit:MenuAddItem(player, 5, "Tempest Keep", 49, 0)
    unit:MenuAddItem(player, 5, "Gruuls Lair", 48, 0)
    unit:MenuAddItem(player, 5, "Serpentshrine caverns", 47, 0)
    unit:MenuAddItem(player, 5, "Maghteridons Lair", 46, 0)
    unit:MenuAddItem(player, 5, "[Back]", 100, 0)
    unit:MenuSendToPlayer(player)
    end
    if(intid == 12) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    if(intid == 9) then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    if(intid == 11) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    if(intid == 10) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end
    if(intid == 17) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    end
    if(intid == 14) then
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    end
    if(intid == 15) then
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
    end
    if(intid == 16) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    end
    if(intid == 51) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300)
    end
    if(intid == 19) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 20) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 21) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 41) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 43) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 44) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 40) then
    player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 39) then
    player:Teleport(1, -4746, -3749, -4.0)
    end
    if(intid == 45) then
    player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid == 23) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 24) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
    end
    if(intid == 38) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
    end
    if(intid == 42) then
    player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 52) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    if(intid == 25) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    if(intid == 26) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end
    if(intid == 27) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end
    if(intid == 28) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    if(intid == 29) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    if(intid == 30) then
    player:Teleport(530, 816.590027, 6934.669922, -80.544601)
    end
    if(intid == 31) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    if(intid == 32) then
    player:Teleport(530, -3361.959961, 5225.770020, -101.047997)
    end
    if(intid == 33) then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end
    if(intid == 34) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end
    if(intid == 35) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    if(intid == 36) then
    player:Teleport(530, 3413.649902, 1483.319946, 182.837997)
    end
    if(intid == 37) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    if(intid == 46) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    if(intid == 47) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    if(intid == 48) then
    player:Teleport(530, 3549.424072, 5179.854004, -4.430779)
    end
    if(intid == 49) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 50) then
    player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 124) then
    player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 136) then
    player:Teleport(0, -13152.9, 342.729, 53.1328)
    end
    if(intid == 110) then
    player:Teleport(389, 1.7849, -14.3685, -16.5533)
    end
    if(intid == 111) then
    player:Teleport(1, -746.207, -2213.18, 15.8909)
    end
    if(intid == 112) then
    player:Teleport(48, -152.984, 106.33, -39.0953)
    end
    if(intid == 113) then
    player:Teleport(0, -8776.78, 836.753, 93.1946)
    end
    if(intid == 114) then
    player:Teleport(0, -5189.22, 524.796, 389.107)
    end
    if(intid == 115) then
    player:Teleport(1, -4464.92, -1666.24, 91)
    end
    if(intid == 116) then
    player:Teleport(129, 2591.99, 1101.25, 52.8593)
    end
    if(intid == 117) then
    player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 118) then
    player:Teleport(349, 419.84, 11.3365, -131.079)
    end
    if(intid == 119) then
    player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 120) then
    player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 121) then
    player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 122) then
    player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    if(intid == 123) then
    player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 170) then
    player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    intid = 0
    end
    RegisterGossipEvent(55556,1,"warp_on_gossip_talk")
    RegisterGossipEvent(55556,2,"warp_on_gossip_select")
    Please help as I cannot figure this one out.
    Thanks a heap.
    Last edited by jdannels; 08-12-2008 at 10:01 AM. Reason: forgot text

  7. #7
    arcalypse's Avatar Member
    Reputation
    1
    Join Date
    Aug 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Neither can I.

  8. #8
    jdannels's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Working teleporter!!!

    Save this as LUA and make an entry in Creature_Names and Creature_Proto
    Thanks to UniversalWOW and AspireDev.org for this script... This one is my altered version. Easy to add and remove locations.

    Code:
    --*****************************************
    --*UniversalTeleNPC script by Oxin v1.2            *
    --*        AspireDev.org                        *
    --*Made for UniversalWoW(www.universal-wow.com)    *
    --*Everyone is free to distribute and modify to their    *
    --*needs but please leave the original credits            *
    --*****************************************
    local menunum = 33310
    local menuicon = 4
    local teleicon = 2
    local menu =
    {
        {"Alliance Cities",
            {
                {"Azshara Crater", 37, 1155.63, 190.085, 362.316},
                {"Darnassus", 1, 9943.809570, 2275.350098, 1341.390015},
                {"Exodar", 530, -3792.557861, -11691.3, -105.241},
                {"Ironforge", 0, -4977.095215, -888.452942, 501.621216},
                {"Stormwind", 0, -8967.320313, 566.548889, 93.855125},
                {"Shattrath ", 530, -1852.87, 5428.84, -10.4639},
            }
        },
        {"Places of Interest",
            {
                {"Southshore", 0, -940.062, -574.630, 0.262463},
                {"Hyjal", 0, 4618.64, -3847.98, 943.955},
                {"The Crypt", 0, -11034.2, -1528.67, 33.2137},
            }
        },
        {"New Entry",
            {
                {"another area", map, x, y, z},
                {"another area", map, x, y, z},
                {"another area", map, x, y, z},
            }
        },
    
    }
                    
    function TeleNPC_MainMenu(Unit, Player)
        local i = 0
        Unit:GossipCreateMenu(menunum, Player, 0)
        for k,v in pairs(menu) do
            i = i + 1
            if type(v[2]) == "table" then
                Unit:GossipMenuAddItem(menuicon, v[1], i, 0)
                i = i + #(v[2])
            else
                Unit:GossipMenuAddItem(teleicon, v[1], i, 0)
            end
        end
        Unit:GossipSendMenu(Player)
    end
    
    function TeleNPC_SubMenu(Unit, Player, i, Submenu)
        Unit:GossipCreateMenu(menunum-i, Player, 0)
        Unit:GossipMenuAddItem(7, "<--Back", 0, 0)
        for k,v in pairs(Submenu) do
            i = i + 1
            Unit:GossipMenuAddItem(teleicon, v[1], i, 0)
        end
        Unit:GossipSendMenu(Player)
    end
    
    function TeleNPC_OnGossipTalk(Unit, Event, Player)
        TeleNPC_MainMenu(Unit, Player)
    end
    
    function TeleNPC_OnGossipSelect(Unit, Event, Player, MenuId, Id, Code)
        local i = 0
        if(Id == 0) then
            TeleNPC_MainMenu(Unit,Player)
        else
            for k,v in pairs(menu) do
                i = i + 1
                if (Id == i) then
                    if type(v[2]) == "table" then
                        TeleNPC_SubMenu(Unit, Player, i, v[2])
                    else
                        if Player:IsInCombat() then
                            Unit:SendChatMessage(12, 0, "You can't teleport while in combat!")
                        else
                            Player:Teleport(v[2], v[3], v[4], v[5])
                        end
                        Unit:GossipComplete(Player)
                    end
                    return
                elseif (type(v[2]) == "table") then
                    for j,w in pairs(v[2]) do
                        i = i + 1
                        if (Id == i) then
                            if Player:IsInCombat() then
                                Unit:SendChatMessage(12, 0, "You can't teleport while in combat!")
                            else
                                Player:Teleport(w[2], w[3], w[4], w[5])
                            end
                            Unit:GossipComplete(Player)
                            return
                        end
                    end
                end
            end
        end
    end
    
    RegisterUnitGossipEvent(55557, 1, "TeleNPC_OnGossipTalk")
    RegisterUnitGossipEvent(55557, 2, "TeleNPC_OnGossipSelect")
    :wave::wave::wave::wave::wave::wave::wave::wave::wave::wave:

    Here is the SQL I use... enjoy
    Code:
    INSERT INTO creature_names (entry,name,subname,info_str,Flags1,type,family,rank,unk4,spelldataid,male_displayid,female_displayid,male_displayid2,female_displayid2,unknown_float1,unknown_float2,civilian,leader)
    VALUES (55557,Soul Reaper,Transporter,,0,0,0,3,0,,21019,0,0,0,1,1,0,)
    INSERT INTO creature_proto (entry,minlevel,maxlevel,faction,minhealth,maxhealth,mana,scale,npcflags,attacktime,attacktype,mindamage,maxdamage,rangedattacktime,rangedmindamage,rangedmaxdamage,mountdisplayid,equipmodel1,equipinfo1,equipslot1,equipmodel2,equipinfo2,equipslot2,equipmodel3,equipinfo3,equipslot3,respawntime,armor,resistance1,resistance2,resistance3,resistance4,resistance5,resistance6,combat_reach,bounding_radius,auras,boss,money,invisibility_type,death_state,walk_speed,run_speed,fly_speed,extra_a9_flags,spell1,spell2,spell3,spell4,spell_flags)
    VALUES (55557,70,70,35,100000,100000,100,1,1,1500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36000,6807,0,0,0,0,0,0,1,0,,0,0,0,0,2.5,8,14,0,0,0,0,0,0)
    Last edited by jdannels; 08-21-2008 at 08:11 AM.

Similar Threads

  1. [Guide] LUA teleporter NPC template and guide!!
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 34
    Last Post: 04-07-2009, 03:36 PM
  2. [Template] LUA Teleporter NPC and Mini guide!!
    By Jackie Moon in forum WoW EMU General Releases
    Replies: 13
    Last Post: 03-15-2009, 04:07 PM
  3. [Release] Fun Teleporter npc [Lua++]
    By stoneharry in forum WoW EMU General Releases
    Replies: 24
    Last Post: 02-23-2009, 06:48 PM
  4. [Release] Teleporter NPC (LUA++)
    By Vaudville in forum WoW EMU General Releases
    Replies: 9
    Last Post: 09-23-2008, 09:55 AM
  5. Will this teleporter npc lua script work?
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-22-2008, 11:50 AM
All times are GMT -5. The time now is 07:32 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search