Repository navigation
Home
itvnnnd87 edited this page Oct 24, 2026
·
3 revisions
Lua 5.2 scripts that run inside the TSWMU GameServer: game events, chat commands, characters, items, monsters, database queries, timers, schedules, and XML / INI / TXT config files. Reload them at any time without restarting the server.
| Count | |
|---|---|
| GameServer functions | 247 |
| Lua library functions | 57 |
| Module system functions | 3 |
| Total functions | 307 |
| Events | 61 |
| Short function names (aliases) | 230 |
| Ready-made modules | 14 |
| Category | Tables | Functions |
|---|---|---|
| Characters |
Player (109), Coin (3) |
112 |
| Objects and world |
Object (37), Monster (7), Map (5), Party (2), Skill (1) |
52 |
| Items |
Item (21), Inventory (11), Buff (6), MuunInventory (4), EventInventory (3), Warehouse (2) |
47 |
| Server and messages |
Server (10), Message (8) |
18 |
| Data and tools |
Util (5), File (4), DB (3), Config (3), Log (2), Event (1) |
18 |
| GameServer functions | 247 | |
| Lua library |
EventMonsterTracker (16), Scheduler (12), Timer (9), Coin by type (6), Helpers (4), ActionTick (4), Player object (3), OptionBonus (2), Item.RandomLevel (1) |
57 |
| Module system |
BridgeFunctionAttach, BridgeDispatch, LoadScript
|
3 |
| Category | Events |
|---|---|
| Basic: server start / reload, login, logout, death, chat commands, database, timers | 11 |
| Game: NPC, trade, items, shops, cash shop, teleport, PvP, monsters, skills, events | 47 |
| Schedule: notice, start, end | 3 |
All functions: every function on one page, one line each, with a link to its example.
Read the pages in order the first time; each page builds on the previous one.
- Folder structure and reloading
- Events and chat commands
- Function reference: server, objects, monsters, maps, messages
- Player functions: characters, coins, option table, player object
- Item functions: inventory, warehouse, items, buffs
- Game events: 47 events to check or follow what players do
- Library: coins by type, scheduler, monster tracker, option bonuses
- Reading config files (XML / INI / TXT / Lua)
- Database
- Timers
- Languages, safety and limits
- Modules and short function names
- Ready-made modules
- Complete example