Skip to content
itvnnnd87 edited this page Oct 24, 2026 · 3 revisions

TSWMU - MU Online Season 21 Server Documentation

TSWMU LuaAPI

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.

At a glance

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

Functions by category

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

Events by category

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

Pages

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.

  1. Folder structure and reloading
  2. Events and chat commands
  3. Function reference: server, objects, monsters, maps, messages
  4. Player functions: characters, coins, option table, player object
  5. Item functions: inventory, warehouse, items, buffs
  6. Game events: 47 events to check or follow what players do
  7. Library: coins by type, scheduler, monster tracker, option bonuses
  8. Reading config files (XML / INI / TXT / Lua)
  9. Database
  10. Timers
  11. Languages, safety and limits
  12. Modules and short function names
  13. Ready-made modules
  14. Complete example

Clone this wiki locally