View Full Version : Lua script won't load

03-12-2014, 04:34 PM
So I have Eluna installed on TrinityCore for 3.3.5 and everything went okay, so I put the .lua files of the plugin and put it in the lua_script folder in 'C:/TrinityCore/build/bin/relase/lua_scripts' then execute the .sql querry I need (a table, its a VIP plugin) when I start up the server, I can't use the commands. I tested other lua scripts also, but it didn't work.

So, how do I fix this?

03-12-2014, 04:45 PM
Are you sure get world setting enable for lua? and havent touch Eluna cause its eating up much rams

03-12-2014, 05:06 PM
Wait, what? World setting?

03-12-2014, 05:24 PM
Wait, what? World setting?

In the world config there is a setting for Lua to be enabled. I think it's enabled by default but it's something to check.

03-12-2014, 05:36 PM
It is enabled, because I see 'text = 1' or something with Eluna. Why do I get this problem? :( :twitch:

03-12-2014, 05:53 PM
Show us the script(s)
Show us screenshots of anything you think could be important
Show us what you get in the console when you write .reload eluna ingame or in the console.
Show us what you get in the console after trying to type a VIP command ingame.
Tell us what Eluna version you have or where did you get it.


ps. TC doesnt have config setting. Only cmake setting, which is indeed enabled by default.

03-12-2014, 06:07 PM
In my Directory (Release) Image:


Scripts Image:


Typing .reload eluna (In console)

[Eluna]: Restarting Lua Engine
[Eluna]: Lua Engine loaded.
Deleted non-existing transmogrification entries...
[Eluna]: Error loading file 'lua_scripts\vip_v2.lua'.
lua_scripts\vip_v2.lua:173: attempt to call global 'RegisterServerHook' <a nil value>
[Eluna]: Error loading file Error loading file 'lua_scripts\worldchat_v2.lua'.
lua_scripts\worldchat_v2.lua:173: attempt to call global 'RegisterServerHook' <a nil value>

Typing #vip (In game with a VIP account)

There is no such command.

Where I got Eluna from?


This should do it.

03-12-2014, 06:38 PM
Would be nice if you pasted your scripts as Rochet2 said. 'RegisterServerHook' doesn't exist and hasn't for months now. I'm assuming you're using player events: http://wiki.emudevs.com/doku.php?id=eluna_player_events, else you can look at the other event types http://wiki.emudevs.com/doku.php?id=eluna

03-12-2014, 06:53 PM
Thanks for the reply! I just added a entry to the transmogrification guy, and It worked. So it's the script thats not working. Solved.