Taxi Scripting issue, and public Connection issue. menu

User Tag List

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

    Taxi Scripting issue, and public Connection issue.

    Ok, im having two major problems. One being that when i set up my server for Non-Hamachi, people can connect to my server but cannot get past the realm select screen. i used this guide to set up my server for non-hamachi access.
    http://www.mmowned.com/forums/emulat...n-hamachi.html

    My second problem is with scripting my servers taxi, someone here posted a premade LUA script for a taxi, i added it and it worked fine. but then i edited it for my servers malls, and now the "Malls" option is showing up in-game on the taxi, but when i click it, nothing happens. here is the code im using for it.(i have never scripted with LUA before at all, so don't flame me if its a small error : )

    Code:
    function On_Gossip(pUnit, event, player)
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 999) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls And PvP", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    pUnit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    pUnit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    pUnit:GossipMenuAddItem(1, "Exodar", 304, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
    pUnit:GossipMenuAddItem(1, "Thunder_Bluff", 307, 0)
    pUnit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    pUnit:GossipMenuAddItem(1, "Horde Mall", 310, 0)
    pUnit:GossipMenuAddItem(1, "Alliance Mall", 311, 0)
    pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 312, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    end
    
    if(intid == 300) then
    player:Teleport(571, 5807.821289, 587.875366, 660.938782)
    unit:GossipComplete(player)
    end
    
    if(intid == 301) then
    player:Teleport(0, -8932.045898, 538.432983, 94.355003)
    unit:GossipComplete(player)
    end
    
    if(intid == 302) then
    player:Teleport(0, -4910.066406, -954.944641, 501.485260)
    unit:GossipComplete(player)
    end
    
    if(intid == 303) then
    player:Teleport(1, 9946.203125, 2614.886230, 1316.321777)
    unit:GossipComplete(player)
    end
    
    if(intid == 304) then
    player:Teleport(530, -4044.313477, -11908.476563, -2.447248)
    unit:GossipComplete(player)
    end
    
    if(intid == 305) then
    player:Teleport(1, 1492.897095, -4415.085449, 23.071123)
    unit:GossipComplete(player)
    end
    
    if(intid == 306) then
    player:Teleport(0, 1735.158936, 238.984070, 62.853424)
    unit:GossipComplete(player)
    end
    
    if(intid == 307) then
    player:Teleport(1, -1290.126099, 148.322083, 129.706223)
    unit:GossipComplete(player)
    end
    
    if(intid == 308) then
    player:Teleport(530, 9483.235352, -7290.837891, 14.293912)
    unit:GossipComplete(player)
    end
    
    if(intid == 309) then
    player:Teleport(530, -1866.214478, 5410.462402, -12.427251)
    unit:GossipComplete(player)
    end
    
    if(intid == 310) then
    player:Teleport(1, 2177.929199, -4765.253418, 54.911053)
    unit:GossipComplete(player)
    end
    
    if(intid == 311) then
    player:Teleport(0, -8856.007813, 599.473816, 92.058683)
    unit:GossipComplete(player)
    end
    
    if(intid == 312) then
    player:Teleport(0, -13204.020508, 274.802765, 21.857243)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(222334, 1, "On_Gossip")
    RegisterUnitGossipEvent(222334, 2,"Gossip_Submenus")
    Well, thats it, any help on either matter would be Great.
    Thanks, Dave.

    Taxi Scripting issue, and public Connection issue.
  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)
    please post your configs in [code] tags, that way we can find the error, and on your script i dont see anything wrong with it, but im crappy with LUA, sorry

    EDIT: for the LUA script, try this:
    Code:
    function On_Gossip(pUnit, event, player)
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 999) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls And PvP", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    pUnit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    pUnit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    pUnit:GossipMenuAddItem(1, "Exodar", 304, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
    pUnit:GossipMenuAddItem(1, "Thunder_Bluff", 307, 0)
    pUnit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    pUnit:GossipMenuAddItem(1, "Horde Mall", 310, 0)
    pUnit:GossipMenuAddItem(1, "Alliance Mall", 311, 0)
    pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 312, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    end
    
    if(intid == 300) then
    player:Teleport(571, 5807.821289, 587.875366, 660.938782)
    unit:GossipComplete(player)
    end
    
    if(intid == 301) then
    player:Teleport(0, -8932.045898, 538.432983, 94.355003)
    unit:GossipComplete(player)
    end
    
    if(intid == 302) then
    player:Teleport(0, -4910.066406, -954.944641, 501.485260)
    unit:GossipComplete(player)
    end
    
    if(intid == 303) then
    player:Teleport(1, 9946.203125, 2614.886230, 1316.321777)
    unit:GossipComplete(player)
    end
    
    if(intid == 304) then
    player:Teleport(530, -4044.313477, -11908.476563, -2.447248)
    unit:GossipComplete(player)
    end
    
    if(intid == 305) then
    player:Teleport(1, 1492.897095, -4415.085449, 23.071123)
    unit:GossipComplete(player)
    end
    
    if(intid == 306) then
    player:Teleport(0, 1735.158936, 238.984070, 62.853424)
    unit:GossipComplete(player)
    end
    
    if(intid == 307) then
    player:Teleport(1, -1290.126099, 148.322083, 129.706223)
    unit:GossipComplete(player)
    end
    
    if(intid == 308) then
    player:Teleport(530, 9483.235352, -7290.837891, 14.293912)
    unit:GossipComplete(player)
    end
    
    if(intid == 309) then
    player:Teleport(530, -1866.214478, 5410.462402, -12.427251)
    unit:GossipComplete(player)
    end
    
    if(intid == 310) then
    player:Teleport(1, 2177.929199, -4765.253418, 54.911053)
    unit:GossipComplete(player)
    end
    
    if(intid == 311) then
    player:Teleport(0, -8856.007813, 599.473816, 92.058683)
    unit:GossipComplete(player)
    end
    
    if(intid == 312) then
    player:Teleport(0, -13204.020508, 274.802765, 21.857243)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(222334, 1, "On_Gossip")
    RegisterUnitGossipEvent(222334, 2, "Gossip_Submenus")
    i think you missed a space off the bottom, not sure though, but this should work.
    Last edited by 1ns0mnia; 03-28-2009 at 09:06 PM.

  3. #3
    pandasoup12's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    damn.. ur script didnt work

  4. #4
    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)
    when the script loads on the world.exe, does it fail to load because of an error? (check the loading LUA part of the console, if it does it will give a number and the error.. the number is the line its erroring on)

  5. #5
    pandasoup12's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When i checked this, i took out all the scripts for the mobs/bosses in the world. just to find my taxi script easier. and no, it had no errors.


  6. #6
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    try this and tell me if this work for you



    Code:
    function On_Gossip(pUnit, event, player)
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 999) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls And PvP", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    pUnit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    pUnit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    pUnit:GossipMenuAddItem(1, "Exodar", 304, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
    pUnit:GossipMenuAddItem(1, "Thunder_Bluff", 307, 0)
    pUnit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    pUnit:GossipMenuAddItem(1, "Horde Mall", 310, 0)
    pUnit:GossipMenuAddItem(1, "Alliance Mall", 311, 0)
    pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 312, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player) --you forgot this
    end
    
    if(intid == 300) then
    player:Teleport(571, 5807.821289, 587.875366, 660.938782)
    unit:GossipComplete(player)
    end
    
    if(intid == 301) then
    player:Teleport(0, -8932.045898, 538.432983, 94.355003)
    unit:GossipComplete(player)
    end
    
    if(intid == 302) then
    player:Teleport(0, -4910.066406, -954.944641, 501.485260)
    unit:GossipComplete(player)
    end
    
    if(intid == 303) then
    player:Teleport(1, 9946.203125, 2614.886230, 1316.321777)
    unit:GossipComplete(player)
    end
    
    if(intid == 304) then
    player:Teleport(530, -4044.313477, -11908.476563, -2.447248)
    unit:GossipComplete(player)
    end
    
    if(intid == 305) then
    player:Teleport(1, 1492.897095, -4415.085449, 23.071123)
    unit:GossipComplete(player)
    end
    
    if(intid == 306) then
    player:Teleport(0, 1735.158936, 238.984070, 62.853424)
    unit:GossipComplete(player)
    end
    
    if(intid == 307) then
    player:Teleport(1, -1290.126099, 148.322083, 129.706223)
    unit:GossipComplete(player)
    end
    
    if(intid == 308) then
    player:Teleport(530, 9483.235352, -7290.837891, 14.293912)
    unit:GossipComplete(player)
    end
    
    if(intid == 309) then
    player:Teleport(530, -1866.214478, 5410.462402, -12.427251)
    unit:GossipComplete(player)
    end
    
    if(intid == 310) then
    player:Teleport(1, 2177.929199, -4765.253418, 54.911053)
    unit:GossipComplete(player)
    end
    
    if(intid == 311) then
    player:Teleport(0, -8856.007813, 599.473816, 92.058683)
    unit:GossipComplete(player)
    end
    
    if(intid == 312) then
    player:Teleport(0, -13204.020508, 274.802765, 21.857243)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(222334, 1, "On_Gossip")
    RegisterUnitGossipEvent(222334, 2, "Gossip_Submenus")

    Code:
    pUnit:GossipSendMenu(player)
    this was missing.

  7. #7
    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 On_Gossip(pUnit, event, player)
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls", 4, 0)
    pUnit:GossipSendMenu(player)
    end

    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 999) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls And PvP", 4, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 1) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 2) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    pUnit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    pUnit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    pUnit:GossipMenuAddItem(1, "Exodar", 304, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 3) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
    pUnit:GossipMenuAddItem(1, "Thunder_Bluff", 307, 0)
    pUnit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 4) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Horde Mall", 310, 0)
    pUnit:GossipMenuAddItem(1, "Alliance Mall", 311, 0)
    pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 312, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 300) then
    player:Teleport(571, 5807.821289, 587.875366, 660.938782)
    unit:GossipComplete(player)
    end

    if(intid == 301) then
    player:Teleport(0, -8932.045898, 538.432983, 94.355003)
    unit:GossipComplete(player)
    end

    if(intid == 302) then
    player:Teleport(0, -4910.066406, -954.944641, 501.485260)
    unit:GossipComplete(player)
    end

    if(intid == 303) then
    player:Teleport(1, 9946.203125, 2614.886230, 1316.321777)
    unit:GossipComplete(player)
    end

    if(intid == 304) then
    player:Teleport(530, -4044.313477, -11908.476563, -2.44724
    unit:GossipComplete(player)
    end

    if(intid == 305) then
    player:Teleport(1, 1492.897095, -4415.085449, 23.071123)
    unit:GossipComplete(player)
    end

    if(intid == 306) then
    player:Teleport(0, 1735.158936, 238.984070, 62.853424)
    unit:GossipComplete(player)
    end

    if(intid == 307) then
    player:Teleport(1, -1290.126099, 148.322083, 129.706223)
    unit:GossipComplete(player)
    end

    if(intid == 30 then
    player:Teleport(530, 9483.235352, -7290.837891, 14.293912)
    unit:GossipComplete(player)
    end

    if(intid == 309) then
    player:Teleport(530, -1866.214478, 5410.462402, -12.427251)
    unit:GossipComplete(player)
    end

    if(intid == 310) then
    player:Teleport(1, 2177.929199, -4765.253418, 54.911053)
    unit:GossipComplete(player)
    end

    if(intid == 311) then
    player:Teleport(0, -8856.007813, 599.473816, 92.058683)
    unit:GossipComplete(player)
    end

    if(intid == 312) then
    player:Teleport(0, -13204.020508, 274.802765, 21.857243)
    unit:GossipComplete(player)
    end
    end

    RegisterUnitGossipEvent(ENTRYID, 1, "On_Gossip")
    RegisterUnitGossipEvent(ENTRYID, 2, "Gossip_Submenus")
    The text in red, were you missing. The missing lines you had, was GossipCreateMenu and GossipSendMenu.

    The ENTRYID is the number(ID) you will type in to spawn the NPC In-Game. The ENTRYID has to be the same in the SQL script as in the LUA script.

    If it works, please tell me.
    -Buffy

  8. #8
    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 On_Gossip(pUnit, event, player)
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls", 4, 0)
    pUnit:GossipSendMenu(player)
    end

    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 999) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls And PvP", 4, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 1) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 2) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    pUnit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    pUnit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    pUnit:GossipMenuAddItem(1, "Exodar", 304, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 3) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
    pUnit:GossipMenuAddItem(1, "Thunder_Bluff", 307, 0)
    pUnit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 4) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Horde Mall", 310, 0)
    pUnit:GossipMenuAddItem(1, "Alliance Mall", 311, 0)
    pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 312, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 300) then
    player:Teleport(571, 5807.821289, 587.875366, 660.938782)
    unit:GossipComplete(player)
    end

    if(intid == 301) then
    player:Teleport(0, -8932.045898, 538.432983, 94.355003)
    unit:GossipComplete(player)
    end

    if(intid == 302) then
    player:Teleport(0, -4910.066406, -954.944641, 501.485260)
    unit:GossipComplete(player)
    end

    if(intid == 303) then
    player:Teleport(1, 9946.203125, 2614.886230, 1316.321777)
    unit:GossipComplete(player)
    end

    if(intid == 304) then
    player:Teleport(530, -4044.313477, -11908.476563, -2.44724
    unit:GossipComplete(player)
    end

    if(intid == 305) then
    player:Teleport(1, 1492.897095, -4415.085449, 23.071123)
    unit:GossipComplete(player)
    end

    if(intid == 306) then
    player:Teleport(0, 1735.158936, 238.984070, 62.853424)
    unit:GossipComplete(player)
    end

    if(intid == 307) then
    player:Teleport(1, -1290.126099, 148.322083, 129.706223)
    unit:GossipComplete(player)
    end

    if(intid == 30 then
    player:Teleport(530, 9483.235352, -7290.837891, 14.293912)
    unit:GossipComplete(player)
    end

    if(intid == 309) then
    player:Teleport(530, -1866.214478, 5410.462402, -12.427251)
    unit:GossipComplete(player)
    end

    if(intid == 310) then
    player:Teleport(1, 2177.929199, -4765.253418, 54.911053)
    unit:GossipComplete(player)
    end

    if(intid == 311) then
    player:Teleport(0, -8856.007813, 599.473816, 92.058683)
    unit:GossipComplete(player)
    end

    if(intid == 312) then
    player:Teleport(0, -13204.020508, 274.802765, 21.857243)
    unit:GossipComplete(player)
    end
    end

    RegisterUnitGossipEvent(ENTRYID, 1, "On_Gossip")
    RegisterUnitGossipEvent(ENTRYID, 2, "Gossip_Submenus")
    The text in red, were you missing. The missing lines you had, was GossipCreateMenu and GossipSendMenu.

    The ENTRYID is the number(ID) you will type in to spawn the NPC In-Game. The ENTRYID has to be the same in the SQL script as in the LUA script, if not the SQL and LUA will not be able to co-work with each other and you will just spawn an NPC with no menu.

    If it works, please tell me.
    -Buffy

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

    Evilbuffy is right, sorry..didn't notice that :P

  10. #10
    pandasoup12's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya, thats working, thanks guys.
    +rep

Similar Threads

  1. Quest Script Issue!
    By Eleky in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-14-2009, 07:10 AM
  2. Script Issue
    By EmuSerry in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 09-14-2008, 11:38 PM
  3. Lua scripting Issue
    By jbryan9184 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 07-05-2008, 04:16 PM
  4. LUA STealth Script Issue
    By Lakotaness in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 06-17-2008, 01:22 AM
  5. Replies: 0
    Last Post: 11-28-2007, 06:10 PM
All times are GMT -5. The time now is 01:48 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