LuaAPI Core
LuaAPI Core: Lua scripting for your server
Script your server's logic in Lua: events, rewards, bosses, PvP, economy, guild automation and more. React to the game as it happens, change almost anything at runtime, and persist it in your database. No DLL edits, no rebuilds.
React to the game
- 60 event hooks across the game loop: kills, deaths, logins, level-ups, resets, item pickups, shop and cash-shop transactions, map changes, commands, server lifecycle
- Sync hooks can allow or block an action (item sale, item use, cash-shop buy) by return value
Players, items, economy
- Read and write money, ruud, WCoin, goblin points, stats, level, experience and resets
- Full inventory control: create, insert, move and remove items
- Push live HP / mana / shield / AG updates to the client the moment you change them
Monsters & events
- Spawn and despawn monsters and NPCs anywhere, with elemental attributes
- Loop players or monsters on a map, in a party, in a guild, or nearby, in one call
- Build invasions, wave events and boss spawns, scheduled by timers or a timetable
Buffs & combat
- Apply any buff from script with custom duration, value and element, and schedule its expiry
- Run PvP and zone logic; gate item actions through the same guard chain the client uses
Cash Shop
- React to purchases, gifts and item use
- Grant shop items straight from script
Groups
- Broadcast, reward or teleport a whole guild or party together in a single loop
Database
- Query DataServer or JoinServer directly from Lua, rows delivered to a callback
- Persist anything: currencies, cooldowns, custom stats, history
By the numbers
- 155 API functions across players, monsters, items, buffs, stats, inventory, combat, movement and timers
- 60 event hooks
- 25 namespaces, logically grouped
- 13 data structures (player, monster, item, cash-shop and query-result objects)
Ships ready to use
- Every function and callback is documented and annotated for the Lua Language Server, so VS Code gives you autocomplete, parameter names and type hints as you type. No guessing field names, no digging through headers.
Full documentation: https://github.com/srv-config/Configs-Preview/wiki

1 Comment