-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Script Interface
Mark Samman edited this page Oct 23, 2013
·
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)
- 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:
- Metatable: Combat
- Metatable: Condition
- Metatable: Container
- Metatable: Creature
- Metatable: Group
- Metatable: Guild
- Metatable: House
- Metatable: Item
- Metatable: ItemType
- Metatable: ModalWindow
- Metatable: Monster
- Metatable: NetworkMessage
- Metatable: Npc
- Metatable: Player
- Metatable: Position
- Metatable: Town
- Metatable: Tile
- Metatable: Vocation