Lua Help! menu

User Tag List

Thread: Lua Help!

Results 1 to 12 of 12
  1. #1
    halostorm's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Help!

    Hello,i followed a tutorial on mmowned and i got it finished but when i add the npc it just says, Greetings (name) the lua dont load :S. I think it's wrong in the lua script so can somone look at it and see if there is anything wrong ?

    Lua pastebin - collaborative debugging tool

    Lua Help!
  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)
    when you load your world console, if there are any major errors it will give you the line number when it laoads the LUA files, just check them over please and see if it does, if so post the line number.

  3. #3
    halostorm's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

    #-#-#-#-#-#-#-#-#-#-#-#-#
    # Scripting Engine Setup
    #
    # Hearthstone can support multiple script backends via the means of loading .dll

    files for them.
    # This section in the config can enable/disable those backends.
    #
    # LUA
    # If you would like to enable the LUA scripting backend, enable this.
    # Default: 0
    #
    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

    #-#-#-#-#-#-#-#-#-#-#-#-#

    <ScriptBackends LUA="1"
    AS="1">
    ------------------------------------
    I put 1 there and i get this error:
    Attached Thumbnails Attached Thumbnails Lua Help!-error9-jpg  
    Last edited by halostorm; 03-31-2009 at 04:49 PM.

  4. #4
    halostorm's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BUMP, plz help me out

  5. #5
    Mircast's Avatar Member
    Reputation
    14
    Join Date
    Sep 2008
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    RegisterUnitGossipEvent(700025, 1, "On_Gossip")
    RegisterUnitGossipEvent(700025, 2, "Gossip_Submenus")
    .npc spawn 700025
    Make sure the NPC flags are set to 1

  6. #6
    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)
    I checked out you're script, and I can't find anything wrong with it. There is only one problem I can think of, which can cause this problem;

    Make sure that 700025 [Entry ID] is the same in the SQL script for the NPC. If you don't have the same ID's in both you're scripts they will not co-work and the NPC will only say "Greetins <name>! How can I help you?" or something like that. If this doesn't work, send me a personal message or write here.


    - Buffy

  7. #7
    halostorm's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still same prob The Entry ID is correct.
    I made a lua teleporter 1 week ago and it had no problem, but i deleted it :P
    And dunno why it's not working now =/
    Last edited by halostorm; 04-02-2009 at 08:00 PM.

  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)
    This is a part of you're script:

    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Orgrimmar", 300, 0)
    unit:GossipMenuAddItem(1, "Thunder Bluff", 301, 0)
    unit:GossipMenuAddItem(1, "Silvermoon City", 302, 0)
    unit:GossipMenuAddItem(1, "Undercity", 303, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    Make sure that all the <unit> are changed too <pUnit>. This might be the problem. Some repacks / cores doesn't take <unit> anymore, but <pUnit> and <unit> has the same function in the script.

    - Buffy

  9. #9
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 1, 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, "Horde Cities", 1, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Orgrimmar", 300, 0)
    unit:GossipMenuAddItem(1, "Thunder Bluff", 301, 0)
    unit:GossipMenuAddItem(1, "Silvermoon City", 302, 0)
    unit:GossipMenuAddItem(1, "Undercity", 303, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 300) then
    player:Teleport(1, 1367.466919, -4371.567383, 26.065283)
    unit:GossipComplete(player)
    end
    
    if(intid == 301) then
    player:Teleport(1, -1284.004639, 136.579697, 130.899277)
    unit:GossipComplete(player)
    end
    
    if(intid == 302) then
    player:Teleport(530, 9404.359375, -7278.427246, 14.206444)
    unit:GossipComplete(player)
    end
    
    if(intid == 303) then
    player:Teleport(0, 1746.322021, 238.931107, 61.823792)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(700025, 1, "On_Gossip")
    RegisterUnitGossipEvent(700025, 2, "Gossip_Submenus")
    700025 is the npc id.
    Now that will work, but from the error id I'm guessing it's something else.

    Notice how it gets to the kiljaedon script? It then gets an error.
    Remove this script.

    If your script is still not working, remove all the scripts in your script folder and JUST add this one, try again. If still error it's your Lua engine, your probably using the RUBBISH aspire default one (sorry aspire users but this is true.) Just get a different Lua engine, even sun++ which is quite old is better.

  10. #10
    halostorm's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well i use Hearstone and LPDB and sun++.(Compile)
    But i still got same error :S
    I changed all the unit to pUnit and i deleted Kil jaeden script, i tryed to run the server with only my teleporter.lua But it dont works :S
    Does anyone got any other suggestions ??
    Last edited by halostorm; 04-03-2009 at 08:52 PM.

  11. #11
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you tried it with only your teleporter.lua, did it still crash?

  12. #12
    halostorm's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now every lua is loading but i get this error when i try to speak with the npc.
    Attached Thumbnails Attached Thumbnails Lua Help!-error10-jpg  

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
  3. LUA help
    By stoneharry in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 02-25-2008, 03:27 PM
  4. Lua help
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-18-2008, 07:03 PM
  5. Lua help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-04-2008, 12:17 PM
All times are GMT -5. The time now is 10:22 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