scripting:reference:events_reference
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripting:reference:events_reference [2014/06/07 20:10] – [ItemAdded] mit | scripting:reference:events_reference [2025/05/28 16:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Events Reference ===== | ===== Events Reference ===== | ||
| - | + | Here is a list of all the events currently supported by the world server. | |
| - | Here is a list of all the events currently supported by the world server | + | |
| ===== Player Status Events ===== | ===== Player Status Events ===== | ||
| Line 26: | Line 25: | ||
| </ | </ | ||
| ==== PlayerLoginComplete ==== | ==== PlayerLoginComplete ==== | ||
| + | ^ Triggered by | A player completing the log-in process to the world | | ||
| + | ^ Event Parameter | None | | ||
| + | ^ CancelTransaction | N/A | | ||
| + | ^ Notes | See above - This event (if present) is triggered after the ' | ||
| + | //Example// | ||
| + | < | ||
| + | { | ||
| + | *say %PLAYER% has finished entering our world! | ||
| + | } | ||
| + | </ | ||
| ==== PlayerLogout ==== | ==== PlayerLogout ==== | ||
| ==== PlayerBirthday ==== | ==== PlayerBirthday ==== | ||
| Line 40: | Line 49: | ||
| ===== Menus & UI Events ===== | ===== Menus & UI Events ===== | ||
| ==== OSDSelect ==== | ==== OSDSelect ==== | ||
| + | ^ Triggered by | Player clicking a scripted OSD item | | ||
| + | ^ Event Parameter | OSDName: | ||
| + | ^ CancelTransaction | N/A | | ||
| + | ^ Notes | For details on created scripted UI, see the [[scripting: | ||
| + | \\ | ||
| ==== MenuOption ==== | ==== MenuOption ==== | ||
| ^ Triggered by | A player selecting a customisable menu or button in the main game UI | | ^ Triggered by | A player selecting a customisable menu or button in the main game UI | | ||
| Line 78: | Line 92: | ||
| ===== Inventory & Skill Events ===== | ===== Inventory & Skill Events ===== | ||
| ==== UseItem ==== | ==== UseItem ==== | ||
| + | ^ Triggered by | An item being used by the player | | ||
| + | ^ Event Parameter | Item Name | | ||
| + | ^ CancelTransaction | Cancels the normal ' | ||
| + | ^ Notes | Not all items will always have a ' | ||
| + | //Example// | ||
| + | < | ||
| + | { | ||
| + | *msg %PLAYER% You used the axe to chop down the nearest tree | ||
| + | *grantitem %PLAYER% 1 Wood | ||
| + | CancelTransaction() | ||
| + | } | ||
| + | </ | ||
| ==== ItemAdded ==== | ==== ItemAdded ==== | ||
| - | ^ Triggered by | a new item being added to the player' | + | ^ Triggered by | A new item being added to the player' |
| ^ Event Parameter | Item Name | | ^ Event Parameter | Item Name | | ||
| ^ CancelTransaction | N/A | | ^ CancelTransaction | N/A | | ||
| Line 95: | Line 121: | ||
| </ | </ | ||
| ==== ItemRemoved ==== | ==== ItemRemoved ==== | ||
| - | ==== TaskComplete ==== | ||
| - | ==== TaskStart ==== | ||
| ==== UseSkill ==== | ==== UseSkill ==== | ||
| ==== SkillAdded ==== | ==== SkillAdded ==== | ||
| Line 102: | Line 126: | ||
| ==== BarterRequest ==== | ==== BarterRequest ==== | ||
| + | ===== Weapon Events ===== | ||
| + | ==== FireWeapon ==== | ||
| + | ==== WeaponHitGround ==== | ||
| + | ==== WeaponHitPlayer ==== | ||
| + | |||
| + | ===== Task System Events ===== | ||
| + | ==== BuildingTaskStart ==== | ||
| + | ^ Triggered by | A player building task starting (See *dobuildingtask) | | ||
| + | ^ Event Parameter | Building Type | | ||
| + | ^ CancelTransaction | N/A | | ||
| + | ^ Notes | $gTaskItem1 = 2. $gTaskItem2 = Building record num. | | ||
| + | //Example// | ||
| + | < | ||
| + | { | ||
| + | *msg %PLAYER% You triggered a building task from a building of type 10 | ||
| + | } | ||
| + | </ | ||
| + | ==== CustomTaskStart ==== | ||
| + | ==== CombiTaskStart ==== | ||
| + | ==== BuildingTaskComplete ==== | ||
| + | ==== CustomTaskComplete ==== | ||
| + | ==== CombiTaskComplete ==== | ||
| + | ==== TaskComplete ==== | ||
| + | ^ Triggered by | A player task completing | | ||
| + | ^ Event Parameter | Task Type | | ||
| + | ^ | 0 = Combination task (Triggered through the ' | ||
| + | ^ | 1 = Custom task (Triggered through the *dotask command) | | ||
| + | ^ | 2 = Building task (Triggered through the *dobuildingtask command) | | ||
| + | ^ CancelTransaction | N/A | | ||
| + | ^ Notes | TBD - $gTaskItem1 etc | | ||
| + | //Example// | ||
| + | < | ||
| + | { | ||
| + | if ( $gTaskItem1 == 100 ) | ||
| + | { | ||
| + | *msg %PLAYER% You completed task 100 | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | ==== TaskStart ==== | ||
| ===== Building Events ===== | ===== Building Events ===== | ||
| - | '' | + | ==== NewBuilding |
| - | PreAccessBuilding | + | ==== PreAccessBuilding |
| - | AccessBuilding | + | ==== AccessBuilding |
| - | AccessConstruction | + | ==== AccessConstruction |
| - | BuildingPurchase | + | ==== BuildingPurchase |
| - | BuildingDestroyed | + | ==== BuildingDestroyed |
| - | BuildingTriggered | + | ==== BuildingTriggered |
| - | BuildingTriggerSequenceComplete | + | ==== BuildingTriggerSequenceComplete |
| - | BuildingProductionRun | + | ==== BuildingProductionRun |
| - | BuildingDemolished | + | ==== BuildingDemolished |
| - | BuildingOwnerDied | + | ==== BuildingOwnerDied |
| - | PlaceBuilding | + | ==== PlaceBuilding |
| - | PlaceAnyBuilding | + | ==== PlaceAnyBuilding |
| - | BuildingCapture | + | ==== BuildingCapture |
| - | BuildingIDProxEnter | + | ==== BuildingIDProxEnter |
| - | BuildingIDProxLeave | + | ==== BuildingIDProxLeave |
| - | BuildingProxEnter | + | ==== BuildingProxEnter |
| - | BuildingProxLeave | + | ==== BuildingProxLeave |
| - | '' | + | ==== PickupBuilding ==== |
| + | ==== BuildingDamaged ==== | ||
| + | |||
| + | ===== Special Server Events ===== | ||
| + | ==== Custom ==== | ||
| + | ==== ProductionRunStart ==== | ||
| + | ==== ProductionRunEnd ==== | ||
| + | ==== EndSequence ==== | ||
| + | ==== & | ||
| + | ==== Timer ==== | ||
| + | ==== ScriptReload ==== | ||
| + | ==== RangeLeave ==== | ||
| + | ==== SeaDepth ==== | ||
| + | ==== KillWildlife ==== | ||
| + | ==== WorldUpdate ==== | ||
| + | |||
| + | ===== Entity Events ===== | ||
| + | ==== EntityDestroyed ==== | ||
| + | ==== EntityDamaged ==== | ||
| + | ==== EntityUpdate ==== | ||
| ===== Town Events ===== | ===== Town Events ===== | ||
| - | '' | + | ==== TownButton |
| - | TownDeclareWar | + | ==== TownDeclareWar |
| - | TownEndWar | + | ==== TownEndWar |
| - | '' | + | |
| ===== Battle Events ===== | ===== Battle Events ===== | ||
| - | '' | + | ==== InitChallenge |
| - | AcceptChallenge | + | ==== AcceptChallenge |
| - | BattleStart | + | ==== BattleStart |
| - | BattleUpdate | + | ==== BattleUpdate |
| - | BattleEnd | + | ==== BattleEnd |
| - | BattleSurrender | + | ==== BattleSurrender |
| - | BattleLeave | + | ==== BattleLeave |
| - | BattleJoin | + | ==== BattleJoin |
| - | BattleAcceptSurrender | + | ==== BattleAcceptSurrender |
| - | BattleComplete | + | ==== BattleComplete |
| - | '' | + | |
| - | ===== Special Server Events ===== | ||
| - | '' | ||
| - | EndSequence \\ | ||
| - | & | ||
| - | Timer \\ | ||
| - | ScriptReload \\ | ||
| - | RangeLeave \\ | ||
| - | SeaDepth \\ | ||
| - | '' | ||
scripting/reference/events_reference.1402171847.txt.gz · Last modified: (external edit)
