• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

How To Add Lua Scripts

Status
Not open for further replies.

ZeuS

Respected Member
Hello Everyone,

I'm just new to this community so I apology if asking so noob'ish question but I didn't find any guide about " how to add Lua scripts to core " so maybe some of you guide me on this .

I know how to write or ad custom C++ scripts ( through Scripts/Custom ) and ... But Lua is bit confusing ! shall I just create Script.lua to LuaScripts folder and that's all ? Or I should add something more ...

I'd be thankful if you guys guide me on this .
 

Jameyboor

Retired Staff
It's as simple as creating a directory named "scripts" and placing that directory inside the folder where your worldserver.exe is located.

Then, just move the desired lua script in your the scripts folder you just made and restart your worldserver.exe .
 

ZeuS

Respected Member
It's as simple as creating a directory named "scripts" and placing that directory inside the folder where your worldserver.exe is located.

Then, just move the desired lua script in your the scripts folder you just made and restart your worldserver.exe .

Pardon but I already Cloned Lua included core from https://github.com/ElunaLuaEngine/Source , I think you didnt notice ...
For example I want to add a World chat script which is Lua ... What should I do ?
P.S : I didn't compile my core yet !
 

Jameyboor

Retired Staff
I think you're misunderstanding me instead.
Compile your core, then go to your build/bin/release folder and follow my instructions above.
 

Foereaper

Founder
Compile your core, then make a folder named scripts where you have your world server and auth server, and place your scripts there. Lua scripts do not have to be compiled with the core itself
 

ZeuS

Respected Member
Compile your core, then make a folder named scripts where you have your world server and auth server, and place your scripts there. Lua scripts do not have to be compiled with the core itself

Thank you ,

BTW just days ago I used a friend's core which had world chat script in it ...And the script was in the TrinityCore/LuaScripts/WorldChat.lua

That's the reason I got confused when JomoyBoor said put em in bin folder !
I hope you understand me !
 

Rochet2

Moderator / Eluna Dev
The folder contains Lisa scripts that come with the source. Maybe we should add a readme and take a look at the cmake stuff finally.
 
Status
Not open for further replies.
Top