LUA Not Working? menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Protyke's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2009
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Not Working?

    Okay, well.. I've been using alot of LUA scripts lately that did not work. I thought it was the npcs I was using. I tried a very simple LUA script just now and it did not work. I've came to the conclusion that LUA is not working on my server.

    I have LUA enabled in the config file and still no-go. I respawned the npc and everything..

    The script I tested that concluded my decision:
    Code:
    function Mikhir_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Testing LUA")
    end
    
    function Grr Test_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "testing") 
    end
    
    function testing_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "testing") 
    end
    
    function testing_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "testing") 
    end
    
    RegisterUnitEvent(35005, 1, "Mikhir_OnCombat")
    RegisterUnitEvent(35005, 2, "Grr Test_OnLeaveCombat")
    RegisterUnitEvent(35005, 3, "testing_OnKilledTarget")
    RegisterUnitEvent(35005, 4, "testing_OnDied")
    This was not the only script I tested but this is the easiest one I got and it did not work. 35005 is my NPC entry ID in the database so that is not the problem.

    Code:
    <ScriptBackends LUA="1"
                    AS="1">
    AS was disabled but I enabled to test to see if that was the problem.

    - I am currently using ArcEmu revision 2562
    Last edited by Protyke; 04-25-2009 at 11:03 PM.
    Yep.

    LUA Not Working?
  2. #2
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this out, see if it works.

    Code:
    function Mikhir_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Testing LUA")
    end
    
    function Mikhir_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "testing") 
    end
    
    function Mikhir_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "testing") 
    end
    
    function Mikhir_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "testing") 
    end
    
    RegisterUnitEvent(35005, 1, "Mikhir_OnCombat")
    RegisterUnitEvent(35005, 2, "Mikhir_OnLeaveCombat")
    RegisterUnitEvent(35005, 3, "Mikhir_OnKilledTarget")
    RegisterUnitEvent(35005, 4, "Mikhir_OnDied")

  3. #3
    Protyke's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2009
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the function name has no effect .. it can be anything. No LUA stuff is working so its not a script problem.
    Yep.

  4. #4
    Kiyoshi's Avatar Member
    Reputation
    28
    Join Date
    Jun 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which core did you use? And did you happen to change the LUA engine at all?

  5. #5
    Protyke's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2009
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using ArcEmu revision 2562.. Not that I know of.. How does one change the LUA engine? lol
    Yep.

  6. #6
    Kiyoshi's Avatar Member
    Reputation
    28
    Join Date
    Jun 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lolz I'm just asking if maybe you tried to change it, but seriously I can't think of anything wrong, as long as your script_bin folder has LUAScripting.dll in then there shouldn't be a problem. Only advice I can really give is to recompile :S

  7. #7
    Protyke's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2009
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would recompiling wipe my entire mobs spawned? Or is there a way to transfer? Also, to recompile should I just update? or delete the whole thing and reinstall it via SVN.

    EDIT: I also only have 20 things inside my scripts_bin and LUAScripting.dll is not one of them.
    Yep.

  8. #8
    Protyke's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2009
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    -Problem Fixed- Stoneharry helped me on MSN.
    Yep.

Similar Threads

  1. [ArcEmu] LUA not working.. Any ideas?
    By tiesmik in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 02-21-2011, 11:22 AM
  2. brand new lua(not working in game need help)
    By Flake0207 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-24-2009, 04:03 PM
  3. TeleporterNPC.lua not working!
    By _DEFiANT in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 08-26-2008, 01:24 AM
  4. LUA Not Working.
    By pplzperson in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 08-13-2008, 08:12 AM
  5. [Help] Lua not working
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 03-15-2008, 04:41 PM
All times are GMT -5. The time now is 03:55 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