Triggers
These triggers are added by MythicRPG, and are meant to be used within the features that MythicRPG implements
| Trigger | When it fires... |
|---|---|
| onClassGain | When an archetype is gained |
| onClassLoss | When an archetype is lost |
| onLevelUp | When an archetype levels up |
| onJoin | When the player joins the server |
| onRespawn | When the player with the archetype respawns |
| onSpawn | When the player with the archetype respawns after death or joins the server |
| onDeath | When the player with the archetype dies |
| onRightClick | When the player with the archetype right-clicks |
| onInteract | When a player with the archetype interacts with a mob |
| onCrouch | When the player with the archetype starts to crouch |
| onUnCrouch | When the player with the archetype stops to crouch |
| onShoot | When the player with the archetype shoots a projectile from a bow |
| onFish | When a player is fishing, ie casting the line out |
| onFishBite | Called when there is a bite on the hook and it is ready to be reeled |
| onFishCatch | When a player has successfully caught a fish and is reeling it in |
| onFishGrab | When a player has successfully caught an entity |
| onFishGround | When a bobber is stuck in the ground |
| onFishReel | When a player reels in their hook without receiving any bites |
| onFishFail | When a player fails to catch a bite while fishing usually due to poor timing |
| onConsume | When an item is eaten |
| onPotionSplash | When a potion is splashed |
| onKill | When the player with the archetype kills another entity |
| onBlockBreak | When the player with the archetype breaks a block |
| onBlockPlace | When the player with the archetype places a block |
| onItemPickup | When the player with the archetype picks up an item |
| onQuickcastOpen | When the player with the archetype opens the quick cast |
| onQuickCastClose | When the player with the archetype ends the quick cast |
| onLearnSpell | When the player with the archetype learns a new spell |
| onSpellCooldownEnd | When a learned spell's cooldown finishes |
| onPointEarn | When the player earns points |
| onPointSpend | When the player spends points (e.g. talent investment) |
| onSpellCastStart | When the player starts a cast-time cast |
| onSpellCastComplete | When a cast finishes successfully and the spell's skills run |
| onSpellCastCancel | When a cast is cancelled before it completes |
| onSpellCastInterrupt | When a cast is cancelled by the interrupt mechanic |
| onSpellCastPushback | When damage extends the remaining cast time (DamagePushback) |
| onRespawnAtGraveyard | When the player respawns at a graveyard |
| onDeathDropsFiltered | When a drop rule is applied at death |
| onExperienceLost | When an experience-loss rule is applied at death |
| onWaystoneDiscover | When the player discovers a waystone |
| onWaystoneTeleport | After a successful waystone teleport |
| onWaystoneStateChange | When the player's state for a waystone changes |
| onWaystoneRespawn | When the player respawns at a waystone |
| onWaystoneInteract | Reserved hook for admin scripts; not auto-fired by mythicrpg |
| onPartyCreate | When the player creates a party |
| onPartyDisband | When the player's party is disbanded |
| onPartyJoin | When the player joins a party |
| onPartyLeave | When the player leaves their party |
| onPartyMemberJoin | When another player joins the player's party |
| onPartyMemberLeave | When another member leaves the player's party |
| onPartyMemberDeath | When a member of the player's party dies |
| onPartyLeaderChange | When leadership of the player's party changes |
| onFriendAdd | When the player gains a friend |
| onFriendRemove | When the player loses a friend |
| onFriendOnline | When one of the player's friends comes online |
| onFriendOffline | When one of the player's friends goes offline |
| onTalentInvest | When the player invests a rank into a talent |
| onTalentDivest | When the player refunds a rank from a talent |