-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Script Interface
marksamman edited this page Sep 13, 2014
·
4 revisions
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
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: