TSWMU's GameServer includes a built-in Lua engine so server owners can write extra features without recompiling the GameServer: login announcements, custom chat commands, daily rewards, scheduled monster spawns, stat bonuses based on equipment, custom UI windows, skill damage formulas, item bag lists...
This section contains 3 groups of documentation:
- General concepts (the pages in this section): how to enable it, folders, script loading order, event list, timers, DB queries, constants, sample modules.
- Function list (reference pages by group: Player, Item, Map...): each function, its parameters and return values.
- 3 separate Lua systems: UI Lua (
Data\Lua_Ui), skill formulas (Data\Scripts\Skills) and item bags (Data\Scripts\Item\ItemBagScript.lua). Each system runs in its own separate Lua engine and does not share functions or variables with LuaAPI.
We recommend reading in this order: Overview and enabling the feature, Folder structure, Events, then pick the sample module closest to your needs and edit it.