Attempt to index local 'Unit' (a nil value) menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    chris999's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Attempt to index local 'Unit' (a nil value)

    Resolved - downloaded a new repack
    Last edited by chris999; 01-05-2011 at 10:18 AM. Reason: RESOLVED

    Attempt to index local 'Unit' (a nil value)
  2. #2
    chris999's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Resolved - downloaded a new repack
    Last edited by chris999; 01-05-2011 at 10:18 AM.

  3. #3
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is saying you have errors in lines 15 and 19.

    I think the error on line 15 is that you have a space between the comma and Unit. Try this instead:

    Code:
    Unit:CastSpellOnTarget(63355,Unit:GetMainTank())
    The error in line 19 is that there should be no brackets around Unit:GetHealthPct() <= 50, so the correct line would be:
    Code:
    if Unit:GetHealthPct() <= 50 then
    hey ervyone whats up gamboys

  4. #4
    chris999's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thankyou for the reply, shows that perhaps there is hope :P
    Unfortunately, I made those two renditions yet still sufferred from the same error. :\
    Should I try a different repack? I currently have Shadow's Repack 3.3.2 V2.1.

    EDIT: RESOLVED
    Last edited by chris999; 01-05-2011 at 10:18 AM.

Similar Threads

  1. [Lua Script] Help with script, index upvalue "NPC_SPAWNER_A" <nil value> ?
    By hinur in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 12-15-2015, 03:00 AM
  2. Replies: 0
    Last Post: 01-18-2015, 07:33 AM
  3. Plr is nil value
    By Xmaily in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-20-2013, 04:09 PM
  4. LUA, How Can i check for a nil value?
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 06-21-2009, 08:32 PM
  5. [Lua][HowTo] Nil Checks, Local, and "And"
    By BrantX in forum WoW EMU Guides & Tutorials
    Replies: 11
    Last Post: 03-25-2009, 06:31 PM
All times are GMT -5. The time now is 07:43 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