Lua Problem menu

User Tag List

Thread: Lua Problem

Results 1 to 8 of 8
  1. #1
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Problem

    Ok so I have a Lua script, but it wont load,

    Code:
    RegisterGossipEvent(100000, 1, "TeleNPC_OnGossipTalk")
    RegisterGossipEvent(100000, 2, "TeleNPC_OnGossipSelect")
    When it trys to load it says,

    RegisterGossipEvent a nil

    I also have the C++ lua.

    +rep will be used if you fix it
    ahhhh

    Lua Problem
  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)
    Nothing wrong in the part you posted there, else that the ID is on 6 digitals, can maybe be to long? Atleast so the NPC works ingame that's no problem.

    And is the NPC created? Could be that it says null too.

    Else, more of the code would be good to find whats wrong

  3. #3
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well nothing else is wrong from the script becuase it says, Error on line 152 which is the
    RegisterGossipEvent(100000, 1, "TeleNPC_OnGossipTalk")
    ahhhh

  4. #4
    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)
    As it's an error on the register command line, it could be an error in the function that it register.

    Post the function name to that register

  5. #5
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't get what you mean?
    ahhhh

  6. #6
    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)
    There is nothing wrong with the 2 lines that you posted us. But it's telling that it's the first RegisterGossipEvent that gives the error. And it's nothing wrong on that line

    Therefor, it could be the function that this line point at, the function named
    TeleNPC_OnGossipTalk. So if you want help, you can't expect it with only posting the registergossipevent part.

  7. #7
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function TeleNPC_OnGossipTalk(Unit, Event, Player)
       TeleNPC_MainMenu(Unit, Player)
    end
    I can't give you the whole thing. But if you need more just tell which part.
    ahhhh

  8. #8
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what he means is that since its saying the registering event is messed up it has something do do with anything connected to what the registering event is registering
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. Lua problem
    By Minichili in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-14-2008, 09:45 AM
  2. [Help] Lua problem
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-23-2008, 04:34 AM
  3. lua problem
    By *Alexz* in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 02-14-2008, 10:41 PM
  4. [Question]-Lua Problem
    By Peter1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-07-2008, 07:59 AM
  5. [Question] LUA problem
    By Peter1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-01-2008, 09:21 AM
All times are GMT -5. The time now is 10:17 PM. 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