Repository navigation
LuaAPI Included Modules
itvnnnd87 edited this page Oct 24, 2026
·
1 revision
The server ships with these modules in Data\LuaAPI\Includes. Each folder has a README.txt (what it does, setup, every setting) and a Config.lua with the settings. The script file itself does not need to be edited.
Turn a module on by removing -- in front of its line in Main.lua, then press Reload LuaAPI.
| Module | What it does | Chat commands | Database |
|---|---|---|---|
WelcomeMessage |
Messages when a character enters the game (levels, VIP, map ...). | ||
CmdCommands |
Example chat command /test. Start here for your own commands. |
2000 | |
NpcMessage |
NPCs talk by themselves; monsters taunt the players they kill. | ||
CustomWindowName |
Character information in the game window title; PK warning; daily maintenance disconnect. | optional | |
CustomItemExchange |
Exchange jewels and equipment for WCoin / Goblin Point / Ruud, rates by VIP level. | 3001-3010 | |
ItemOptionExpand |
Extra bonuses for equipped items by item level (2113 item lines included). | ||
DailyReward |
One item bag per account per day at login, by VIP level. | DailyReward.sql |
|
RechargeGift |
An NPC gives gifts by recharge total, one level after another, into the Gremory Case. | your recharge table | |
CumulativeRecharge |
One-time and daily / weekly / monthly rewards for recharge tiers, from two NPCs. | CumulativeRecharge.sql |
|
RandomQuestSystem |
Timed event: players take a random kill quest from an NPC and earn coins. | ||
MonsterSpawn |
Keeps a number of monsters alive at chosen points; rewards the killers. | ||
ShopPointRate |
Coins for killing chosen monsters; optional Zen from experience. | ||
Entrylimit |
Blocks banned IP / MAC / disk serial; protects a test server. | ||
Warehouse |
Opens the warehouse anywhere with /warehouse (VIP, price, safe zone options). |
2001 |
Commands are declared in Data\Commands\LuaCommands.xml. Each README lists the lines to add, for example:
<Command ID="2001" name="warehouse" Description="Mobile warehouse" Authority="0"/>The name can be changed freely (any language, save the file as UTF-8); the ID must match the module's Config.lua. Use IDs that no other module uses.
- Every module runs isolated: an error in one module is logged and never stops another one.
- NPCs and monsters created by a module are removed on Reload LuaAPI and created again, so they are never doubled.
- Rewards are given only after the items or coins were really taken, and only when there is room in the inventory or Gremory Case.
- Database answers are ignored if the character has already left the game.
Next: Complete example