Script Interface - RodrigoOt/forgottenserver GitHub Wiki
The scripting interface in The Forgotten Server is supported by the Lua programming language. You can customize the server with scripts for the following interfaces:
- Action events (using items)
- Chat channel events (joining, speaking and leaving)
- Creature events (login, logout and death)
- Global events (startup, shutdown, players record, timed, intervals)
- Monster events (artificial intelligence)
- Movements (creature step in/out, moving items)
- NPCs (artificial intelligence)
- Raids
- Talkactions (speaking in local chat)
- Spells
- Weapons
Global
Metatables
Lua does not have a class system. However, it is possible to emulate a similar system in Lua, called Metatables.
The script interface provides the following metatables: