Help with script, index upvalue "NPC_SPAWNER_A" <nil value> ? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    hinur's Avatar Member
    Reputation
    1
    Join Date
    Jul 2015
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with script, index upvalue "NPC_SPAWNER_A" <nil value> ?

    I'm making a custom expansion, and i'm creating a custom player spawn event. I've finished the code but whenever I run it it says
    " attempting to call index upvalue "NPC_SPAWNER_A" <nil value>".
    the code is here: [Lua] Wow- starting creation problem - Pastebin.com

    any help would be great!

    Help with script, index upvalue &quot;NPC_SPAWNER_A&quot; &lt;nil value&gt; ?
  2. #2
    Blubblab's Avatar Member
    Reputation
    3
    Join Date
    Nov 2015
    Posts
    13
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not familiar with the whole emulator but what it says could be 2 different things.

    First the value isn't initialized, the second you try a non closure object to call with the ':' operator in that case try '.' instead.

  3. #3
    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)
    NPC_SPAWNER_A is not a valid variable, it has no value. (it is nil)

    This way of coding is incredibly bad because you are storing a pointer to the entity. Instead you should retrieve a reference from the GUID in each function.

Similar Threads

  1. New Private Server - Need Help with Scripting Please
    By Xerxe in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-14-2008, 09:02 AM
  2. [Help] New to LUA, Need help with script.
    By nickelo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-14-2008, 11:23 PM
  3. [Help] I need help with Script's
    By PsycoDisciples in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 01-24-2008, 05:20 PM
  4. i need help with script, im a noob
    By orangegold in forum WoW UI, Macros and Talent Specs
    Replies: 2
    Last Post: 10-27-2007, 05:47 PM
  5. help with scripts
    By orangegold in forum World of Warcraft General
    Replies: 0
    Last Post: 03-28-2007, 05:50 PM
All times are GMT -5. The time now is 09:47 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