This is an old revision of the document!
Scripting events have 3 properties:
Sinfar server side plugin adds many new events, they can be PAGE INFO ALREADY TRANSFERRED TO THE NEW WIKI - Script Based Events or PAGE INFO ALREADY TRANSFERRED TO THE NEW WIKI - Variable Based Events.
Here's the list of the new PAGE INFO ALREADY TRANSFERRED TO THE NEW WIKI - Variable Based Events:
Variable Name | Description | Caller | Parameters | Return Value / BypassEvent() Result | Example |
---|---|---|---|---|---|
EVENT_CANUSE | Called before determining if an item can be used or not. | The Item | 0: The item possessor | Boolean: Wether or not the item can be used (SetEventResultInt(TRUE or FALSE)) | scroll_w_canuse |
EVENT_RECVITEM | An item is about to be added to an object inventory | The object that will acquire the item | 0: The Item 1: The current item possessor | Boolean: Wether or not the item should be added to the caller's inventory | mail_putinbox |
EVENT_CLEARALLACTIONS | Called when an object actions list is about to be cleared. It is one way to know when an action has been interrupted (for any reason) | The object | None | None |