Help with trinitycore Eluna script menu

User Tag List

Results 1 to 3 of 3
  1. #1
    spleee101's Avatar Active Member
    Reputation
    63
    Join Date
    Oct 2007
    Posts
    160
    Thanks G/R
    1/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with trinitycore Eluna script

    So i feel really stupid having to ask this question, but I have not done lua before and for the life of me can not figure out this error I am getting. The script is literally a direct copy of the basic tutorial script from emudevs youtube video and is below,
    Code:
    local npcId = 555008
    
    function OnEnterCombat(event, creature, target)
        creature:CastSpell(target, 2000, true)
    end
    
    function OnLeaveCombat(event, creature)
        creature:SendUnitSay("text blah blah", 0)
    end
        
    RegisterCreatureEvent(npcId, 1, OnEnterCombat)
    RegisterCreatureEvent(npcId, 2, OnLeaveCombat) 
    the error i get is
    Code:
    lua: prog.lua:11: attempt to call global 'RegisterCreatureEvent' (a nil value)
    stack traceback:
        prog.lua:11: in main chunk
        [C]: in ?

    EDIT: Solved no longer an issue....
    Last edited by spleee101; 11-21-2015 at 01:26 PM. Reason: Fixed the issue

    Help with trinitycore Eluna script
  2. #2
    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)
    It looks like this was an issue with the emulator you were using, not the script. Probably a bad repack.

    Line 11 RegisterCreatureEvent was not understood. This means it wasn't in the API.

  3. #3
    spleee101's Avatar Active Member
    Reputation
    63
    Join Date
    Oct 2007
    Posts
    160
    Thanks G/R
    1/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey thanks for responding stone harry I appreciate it. However this is from a compiled eluna source no repacks can be found near my computer :P. the mistake was actually a typo in my OnEnterCombat function. All in all i got it working and all is good, thanks for helping me out like always tho appreciate it man.

Similar Threads

  1. Need help with threat mob scripting
    By yashirotcm in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 07-31-2009, 02:05 PM
  2. Need help with an LUA script.
    By Ryoken in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 06-21-2009, 09:30 PM
  3. Need help with a PHP Script
    By Fireking300 in forum Programming
    Replies: 2
    Last Post: 06-13-2009, 02:27 PM
  4. Help with this LUA script
    By jordash in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 03-08-2008, 04:19 PM
  5. {question} Alil help with the .M2 script for 3DS max
    By BH5432 in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 01-17-2008, 07:55 PM
All times are GMT -5. The time now is 06:05 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