LUA Trouble menu

User Tag List

Thread: LUA Trouble

Results 1 to 8 of 8
  1. #1
    plaguez's Avatar Member
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Trouble

    OK so the problem is.. I am making a teleporter NPC.. i downloaded one from jackie moons post and when i put his into the scripts folder, it works fine.. then as soon as i try to customize it a bit and add something it doesnt.. when i talk to the npc he just says how can i help you? not sure why the lua isnt showing up on the npc.. can anyone help?

    LUA Trouble
  2. #2
    VictoRo's Avatar Contributor
    Reputation
    81
    Join Date
    Feb 2008
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try specify what it is you change and where.

  3. #3
    plaguez's Avatar Member
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipMenuAddItem(2, "Horde Mall", 4, 0)
    unit:GossipMenuAddItem(2, "Alliance Mall", 5, 0)
    unit:GossipMenuAddItem(2, "PvP Zones", 6, 0)
    unit:GossipMenuAddItem(2, "Custom Instances", 7, 0)
    unit:GossipMenuAddItem(2, "Remove Rez Sickness", 8, 0)
    unit:GossipSendMenu(player)
    end

    function Gossip_Submenus(unit, event, player, id, intid, code)

    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipMenuAddItem(2, "Horde Mall", 4, 0)
    unit:GossipMenuAddItem(2, "Alliance Mall", 5, 0)
    unit:GossipMenuAddItem(2, "PvP Zones", 6, 0)
    unit:GossipMenuAddItem(2, "Custom Instances", 7, 0)
    unit:GossipMenuAddItem(2, "Remove Rez Sickness", 8, 0)
    unit:GossipSendMenu(player)
    end

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

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

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

    if(intid == 4) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Horde Mall ( No Alliance )", 314, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 5) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Alliance Mall ( No Horde )", 310, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 6) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Gub Arena", 311, 0)
    unit:GossipMenuAddItem(1, "Thunder Dome", 312, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 7 then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Scarlet Hand", 313, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if (intid == then
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    player:SendAreaTriggerMessage("Stop dying NUB!")
    player:SendBroadcastMessage("GM's Are watching you, you are not alone!")
    end




    if(intid == 300) then
    player:Teleport(571, 5798.553711, 645.019287, 647.477783)
    unit:GossipComplete(player)
    end

    if(intid == 301) then
    player:Teleport(0, -8913.230469, 554.632996, 93.794830)
    unit:GossipComplete(player)
    end

    if(intid == 302) then
    player:Teleport(0, -4982.447266, -880.969604, 501.659882)
    unit:GossipComplete(player)
    end

    if(intid == 303) then
    player:Teleport(1, 9946.639648, 2610.149414, 1316.25634
    unit:GossipComplete(player)
    end

    if(intid == 304) then
    player:Teleport(530, -4008.085205, -11885.257813, -1.419589)
    unit:GossipComplete(player)
    end

    if(intid == 305) then
    player:Teleport(1, 1505.377319, -4414.602539, 20.598469)
    unit:GossipComplete(player)
    end

    if(intid == 306) then
    player:Teleport(0, 1831.750854, 238.543503, 60.478447)
    unit:GossipComplete(player)
    end

    if(intid == 307) then
    player:Teleport(1, -1282.347534, 133.302917, 131.218323)
    unit:GossipComplete(player)
    end

    if(intid == 30 then
    player:Teleport(530, 9381.675781, -7277.671387, 14.241373)
    unit:GossipComplete(player)
    end

    if(intid == 309) then
    player:Teleport(530, -1704.053589, 5376.160156, 3.416441)
    unit:GossipComplete(player)
    end

    if(intid == 310) then
    player:Teleport(0, -4821.256836, -975.759460, 464.708710)
    unit:GossipComplete(player)
    end

    if(intid == 311) then
    player:Teleport(0, -13232, 221.471375, 32.202503)
    unit:GossipComplete(player)
    end

    if(intid == 312) then
    player:Teleport(1, -3761.212158, 1150.965820, 127.435577)
    unit:GossipComplete(player)
    end

    if(intid == 313) then
    player:Teleport(44, 76.7306, 1.04692, 18.6773)
    unit:GossipComplete(player)
    end

    if(intid == 314) then
    player:Teleport(1, 7561.259277, -1518.128052, 159.557480)
    unit:GossipComplete(player)
    end
    end

    RegisterUnitGossipEvent(76666, 1, "On_Gossip")
    RegisterUnitGossipEvent(76666, 2, "Gossip_Submenus")
    My Changes Were.... Alliance + Horde Mall, Pvp Zones, Custom instance, Rez sickness... The Cities were allready there..

  4. #4
    plaguez's Avatar Member
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also +rep to whover fixes it.

  5. #5
    shadowslayer133's Avatar Active Member
    Reputation
    61
    Join Date
    May 2008
    Posts
    313
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try restarting your server

    Done by piersd
    Gamer tag - Midnight133

  6. #6
    plaguez's Avatar Member
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have lots

    Ok so the problem is.. When arcemu-world.exe trys to load it, it fails.. now i just need to figure out why.


    Error is.. scripts/Port.lua:79: ')' expected near ' then'
    Last edited by 2dgreengiant; 03-03-2009 at 01:19 PM.

  7. #7
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this one You forgot some ends and parenthesis
    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipMenuAddItem(2, "Horde Mall", 4, 0)
    unit:GossipMenuAddItem(2, "Alliance Mall", 5, 0)
    unit:GossipMenuAddItem(2, "PvP Zones", 6, 0)
    unit:GossipMenuAddItem(2, "Custom Instances", 7, 0)
    unit:GossipMenuAddItem(2, "Remove Rez Sickness", 8, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipMenuAddItem(2, "Horde Mall", 4, 0)
    unit:GossipMenuAddItem(2, "Alliance Mall", 5, 0)
    unit:GossipMenuAddItem(2, "PvP Zones", 6, 0)
    unit:GossipMenuAddItem(2, "Custom Instances", 7, 0)
    unit:GossipMenuAddItem(2, "Remove Rez Sickness", 8, 0)
    unit:GossipSendMenu(player)
    end
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    unit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    unit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    unit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    unit:GossipMenuAddItem(1, "Exodar", 304, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    unit:GossipMenuAddItem(1, "Undercity", 306, 0)
    unit:GossipMenuAddItem(1, "Thunder Bluff", 307, 0)
    unit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Horde Mall ( No Alliance )", 314, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Alliance Mall ( No Horde )", 310, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Gub Arena", 311, 0)
    unit:GossipMenuAddItem(1, "Thunder Dome", 312, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 7) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Scarlet Hand", 313, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 8) then
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    player:SendAreaTriggerMessage("Stop dying NUB!")
    player:SendBroadcastMessage("GM's Are watching you, you are not alone!")
    end
    
    if(intid == 300) then
    player:Teleport(571, 5798.553711, 645.019287, 647.477783)
    unit:GossipComplete(player)
    end
    
    if(intid == 301) then
    player:Teleport(0, -8913.230469, 554.632996, 93.794830)
    unit:GossipComplete(player)
    end
    
    if(intid == 302) then
    player:Teleport(0, -4982.447266, -880.969604, 501.659882)
    unit:GossipComplete(player)
    end
    
    if(intid == 303) then
    player:Teleport(1, 9946.639648, 2610.149414, 1316.256348)
    unit:GossipComplete(player)
    end
    
    if(intid == 304) then
    player:Teleport(530, -4008.085205, -11885.257813, -1.419589)
    unit:GossipComplete(player)
    end
    
    if(intid == 305) then
    player:Teleport(1, 1505.377319, -4414.602539, 20.598469)
    unit:GossipComplete(player)
    end
    
    if(intid == 306) then
    player:Teleport(0, 1831.750854, 238.543503, 60.478447)
    unit:GossipComplete(player)
    end
    
    if(intid == 307) then
    player:Teleport(1, -1282.347534, 133.302917, 131.218323)
    unit:GossipComplete(player)
    end
    
    if(intid == 308) then
    player:Teleport(530, 9381.675781, -7277.671387, 14.241373)
    unit:GossipComplete(player)
    end
    
    if(intid == 309) then
    player:Teleport(530, -1704.053589, 5376.160156, 3.416441)
    unit:GossipComplete(player)
    end
    
    if(intid == 310) then
    player:Teleport(0, -4821.256836, -975.759460, 464.708710)
    unit:GossipComplete(player)
    end
    
    if(intid == 311) then
    player:Teleport(0, -13232, 221.471375, 32.202503)
    unit:GossipComplete(player)
    end
    
    if(intid == 312) then
    player:Teleport(1, -3761.212158, 1150.965820, 127.435577)
    unit:GossipComplete(player)
    end
    
    if(intid == 313) then
    player:Teleport(44, 76.7306, 1.04692, 18.6773)
    unit:GossipComplete(player)
    end
    
    if(intid == 314) then
    player:Teleport(1, 7561.259277, -1518.128052, 159.557480)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(76666, 1, "On_Gossip")
    RegisterUnitGossipEvent(76666, 2, "Gossip_Submenus")


  8. #8
    plaguez's Avatar Member
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks =) + rep when i can..

Similar Threads

  1. Trouble with lua code
    By CrazyCactuaR in forum WoW UI, Macros and Talent Specs
    Replies: 2
    Last Post: 08-07-2011, 05:03 AM
  2. I'm having trouble with lua and cant same to fix it.
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 04-06-2008, 05:29 PM
  3. trouble finding .blp
    By yellowsn in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 11-23-2006, 12:06 AM
  4. Blizz is in some trouble. youll love this :)
    By WoWLegend in forum World of Warcraft General
    Replies: 23
    Last Post: 09-26-2006, 08:01 AM
All times are GMT -5. The time now is 10:51 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