User Tools

Site Tools


building:scripts:events

This is an old revision of the document!


Scripting Events

Scripting events have 3 properties:

  1. The Moment and Condition in Which They Are Called (Event Name)
  2. The Event System Used (Event Type)
    This determine how to register the event and access the parameters.
  3. The Script to Execute
    This is your script or someone else script that you registered to a specific event to perform a specific behaviour on specific objects.

Event Systems

New Internal Events

Sinfar server side plugin adds many new events, they can be script_based or variable_based. Here's the list:

Variable NameDescriptionCallerParametersReturn Value / BypassEvent() ResultExample
EVENT_CANUSECalled before determining if can item can be used or not.The Item0: The item possessorBoolean: Weather or not the item can be used (SetEventResultInt(TRUE or FALSE))scroll_w_canuse
building/scripts/events.1552265052.txt.gz · Last modified: 2019/03/11 00:44 by Mavrixio

phpBB Appliance - Powered by TurnKey Linux