"..." is not a valid LUA funcion? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Uppercutter's Avatar Sergeant
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "..." is not a valid LUA funcion?

    Hello, I recently started to script again and im currently making a cinematic script.

    Everything works fine untill a certain point called "CinematicWithFitz4", everything stops from that point on and it will give me an error in ArcEmu-world (Reference creation failed! (CinematicWithFitz4) is not a valid Lua function.

    And now im busy asking, does anyone know how to make a gossip npc where you can talk to to start the cinematic non-gossip? Like that you cannot talk to her anymore untill the whole cinematic is over
    .

    Code:
    function CinematicWithFitz3(pUnit, event)
            pUnit:CancelSpell()
            pUnit:RemoveEvents()
    		SetDBCSpellVar(45922, "c_is_flags", 0x01000) a, plrs in pairs
    		SetDBCSpellVar(48864, "c_is_flags", 0x01000)
    		for a, plrs in pairs(pUnit:GetInRangePlayers()) do
                    plrs:SetPlayerLock(0)
                    plrs:CastSpell(45922)
                    plrs:CastSpell(48864)
            local x, y, z, o = LadyVespira:GetX(), LadyVespira:GetY(), LadyVespira:GetZ(), LadyVespira:GetO()
            LadyVespira:MoveTo(4506.507324, -2335.370117, 1138.052368, 4.499972)        
    		LadyVespira:SendChatMessage(12, 0, "That was a threat, not a warning.")
            LadyVespira:RegisterEvent("CinematicWithFitz4", 5000, 1)
    end
    
    -- Nothing works below this point.
    
    function CinematicWithFitz4(pUnit, event)
            StephanieFitzpatrick:SendChatMessage(12, 0, "So this is how you want to kill us? Make this into a fair fight and we will see who fail's this time.")
    		LadyVespira:RegisterEvent("CinematicEnd1", 5000, 1)
    end
    
    function CinematicEnd1(pUnit, event)
            LadyVespira:MoveTo(255.325027, -99.952003, 18.679380, 3.161774)
            LadyVespira:SendChatMessage(14, 0, "So if I understand this right, you want me to torcher you and kill you? I would love to do that.")
            local x, y, z, o = LadyVespira:GetX(), LadyVespira:GetY(), LadyVespira:GetZ(), LadyVespira:GetO()
            LadyVespira:MoveTo(4511.660156, -2301.169922, 1138.150024, 4.511810)
    		LadyVespira:RegisterEvent("CinematicEnd2", 9000, 1)
    	end
    end
    Thanks alot in advance.

    Regards, Uppercutter.

    "..." is not a valid LUA funcion?
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    It's telling you the function "CinematicWithFitz4" does not exist.

    In the code you have posted, it obviously does.

    Try changing:

    LadyVespira:RegisterEvent("CinematicWithFitz4", 5000, 1)

    to

    LadyVespira:RegisterEvent(CinematicWithFitz4, 5000, 1)

  3. #3
    Uppercutter's Avatar Sergeant
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot it worked, but the first time after a server restart it stops at the same place where you answered me to do
    Code:
    LadyVespira:RegisterEvent(CinematicWithFitz4, 5000, 1)
    The second time im trying to do this cinematic it goes perfect untill that point, she does continue but when "Lady Vespira" is supposed to walk up to "Stephanie Fitzpatrick" she stops in the middle of the walk and returns back to her spawn point, the third time it works perfect (just some minor bugs) but still if people want to kill this boss after a server restart they will be encountering 2 bugged npc's which doesnt make it look like an awesome boss, any suggestions?

    Sorry for a double question but, how can I get a boss to do "Shadow Prison" (45922) on npc's?

    Current (part of my) script:
    Code:
    function CinematicWithFitz3(pUnit, event)
            pUnit:CancelSpell()
            pUnit:RemoveEvents()
    		SetDBCSpellVar(45922, "c_is_flags", 0x01000)
    		SetDBCSpellVar(48864, "c_is_flags", 0x01000)
    		for a, plrs in pairs(pUnit:GetInRangePlayers()) do
                    plrs:SetPlayerLock(0)
                    plrs:CastSpell(45922) 
                    plrs:CastSpell(48864)
            local x, y, z, o = LadyVespira:GetX(), LadyVespira:GetY(), LadyVespira:GetZ(), LadyVespira:GetO()
            LadyVespira:MoveTo(4506.507324, -2335.370117, 1138.052368, 4.499972)        
    		LadyVespira:SendChatMessage(12, 0, "That was a threat, not a warning.")
            LadyVespira:RegisterEvent(CinematicWithFitz4, 5000, 1)
    end
    
    function CinematicWithFitz4(pUnit, event)
            LadyVespira:RegisterEvent("CinematicEnd1", 5000, 1)
            StephanieFitzpatrick:SendChatMessage(12, 0, "I always knew you we're a piece of trash, you can't even do a fair fight with us.")
            StephanieFitzpatrick:CastSpell(34648)
    end
    
    function CinematicEnd1(pUnit, event)
            LadyVespira:MoveTo(255.325027, -99.952003, 18.679380, 3.161774)
            LadyVespira:SendChatMessage(14, 0, "So if I understand this right, you want me to torcher you and kill you? I would love to do that.")
            local x, y, z, o = LadyVespira:GetX(), LadyVespira:GetY(), LadyVespira:GetZ(), LadyVespira:GetO()
            LadyVespira:MoveTo(4511.660156, -2301.169922, 1138.150024, 4.511810)
    		LadyVespira:RegisterEvent("CinematicEnd2", 9000, 1)
    	end
    end
    Regards, Uppercutter

Similar Threads

  1. This is not a valid image file when posting
    By Jaladhjin in forum Report Bugs
    Replies: 7
    Last Post: 08-07-2013, 11:10 AM
  2. [Lua Script] Not a Valid LUA function
    By mantor4 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-08-2011, 07:48 AM
  3. [ArcEmu] Item # is not a valid item! CRAP!
    By ProphetWoW in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 08-26-2010, 02:11 AM
  4. [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
  5. not a valid win32 application
    By countfancypants in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 03-21-2009, 06:05 PM
All times are GMT -5. The time now is 12:54 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search