Skip to content

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

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:

Clone this wiki locally