Not a Valid LUA function menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    mantor4's Avatar Member
    Reputation
    2
    Join Date
    Aug 2006
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not a Valid LUA function

    So im still pretty new at Lua functions, but i have made a working 12 phase boss fight, and have never gotten this error before.
    the error is:

    scripts\BOSS_Torarghr.lua:8: Reference creation failed! <Togarghr_Shield_Crush> is not a valid Lua Function.

    the script looks like


    Code:
    function  Togarghr_OnCombat(Unit, Event)
    
    	Unit:SendChatMessage(14, 0, "Challenge accepted!")
    
    	Unit:RegisterEvent("Togarghr_Shield_Crush", 13000, 0)           (THIS IS LINE 8)
    
    	Unit:RegisterEvent("Togarghr_Phase1", 1000, 0)
    end	
    end
    
    function  Togarghr_Legion_Shield_Crush(Unit, Event)
    Unit:FullCastSpellOnTarget(60899, Unit:GetMainTank())
    end
    
    RegisterUnitEvent(999007, 1, "Togarghr_OnCombat")

    I am not sure what is wrong, so please help, will be much appreciated!
    Last edited by stoneharry; 07-08-2011 at 10:30 AM. Reason: Fixed prefix.

    Not a Valid LUA function
  2. #2
    choweyiii's Avatar Contributor
    Reputation
    91
    Join Date
    Aug 2010
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, there's yer problem. You registered 'Togarghr_Shield_Crush', when it's 'Togarghr_Legion_Shield_Crush'

    Also, you only need one end per function, that 2nd one there isn't doing anything.

    Any more questions, please feel free to ask.

  3. #3
    mantor4's Avatar Member
    Reputation
    2
    Join Date
    Aug 2006
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ill try changing it, thanks

Similar Threads

  1. [Lua Script] RegisterEvent lua function not working! HELP!
    By hinur in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 10-30-2015, 12:41 PM
  2. [Lua Script] "..." is not a valid LUA funcion?
    By Uppercutter in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 01-31-2012, 07:33 AM
  3. [Lua] Reference Creation Failed! (Non Valid Lua-Function?)
    By Pawaox-Z in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 04-14-2010, 09:41 AM
  4. Replies: 22
    Last Post: 05-29-2008, 03:52 PM
  5. [Question] Lua functions
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-10-2008, 07:39 PM
All times are GMT -5. The time now is 06:21 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