|Main Page Other languages: English • German • FrenchArcEmu Website ArcEmu Forum Bug Tracker|
What are LUA scripts?
LUA scripts are scripts that add extra functionality to your server. Most often they are used to add speech and spells to bosses, units, gossip menus, utilities for the server, functioning game objects, or miscellaneous fun scripts like "Mount vendors".
Copy all the scripts from the src\scripts\lua source folder in the server\scripts folder as they are, preserving directory structure. So, in server\scripts you should have a bunch of files with the .lua extension. When loading world.exe you should get a notice of your scripts being loaded. If not, make sure Screen is set to 2 or 3 in the <LogLevel> setting in your server\configs\world.conf.
Make sure that all the required library files are in the server/lib directory. For LUA these are called libLUAScripting.a, libLUAScripting.la, libLUAScripting.so.0.0.0 and two symlinks. Also be sure that these are the required version so Arcemu is able to load them.
Inspect worldserver output and look for this line:
21:05 N [Arcemu] Server: Loading External Script Libraries...
Make sure that below it somewhere there is a line like:
libLUAScripting.so : 0x0xc497cf8 : v2.951 : delayed load.
Verification of a proper compile/configuration
Your file structure will look as follows
C:/arcemu/ C:/arcemu/logon.exe C:/arcemu/world.exe C:/arcemu/libeay32.dll C:/arcemu/libmysql.dll
The configs directory will look as follows
C:/arcemu/configs C:/arcemu/configs/logon.conf C:/arcemu/configs/optional.conf C:/arcemu/configs/realms.conf C:/arcemu/configs/world.conf
The `modules` directory will look as follows
C:/arcemu/modules C:/arcemu/modules/arcEventScripts.dll C:/arcemu/modules/arcGossipScripts.dll C:/arcemu/modules/arcInstanceScripts.dll C:/arcemu/modules/arcMiscScripts.dll C:/arcemu/modules/arcQuestScripts.dll C:/arcemu/modules/arcSpellHandlers.dll C:/arcemu/modules/ExtraScripts.dll C:/arcemu/modules/LUAScripting.dll C:/arcemu/modules/ServerStatusPlugin.dll
You will have a directory with DBCs in it as so
C:/arcemu/DBC C:/arcemu/DBC/*.dbc (Full names of DBCs not listed due to quantity of DBCs that will have been extracted)
You will have a directory with Maps in it as so
C:/arcemu/maps C:/arcemu/maps/*.map (Full names of Maps not listed due to quantity of Maps that will have been extracted) Some users have bin type maps that have been extracted, this is normal.
You will have a directory with Vmaps in it as so
C:/arcemu/vmaps C:/arcemu/vmaps/*.vmap (Full names of vmaps not listed due to quantity of Maps that will have been extracted)
C:/arcemu/scripts C:/arcemu/scripts/*.lua Please note you can sort your LUA folder with subfolders. Ex. C:/arcemu/scripts/Stuff I made/*.lua Additional LUA information