The events library extends the pre-existing events by adding even more that users can make use of in their addons.
To use events, check out this guide on making use of them in your addon.
None of these events return a value.
Called when an emote occurs.
ashita.register_event('emote', function(emoteId, senderIndex, targetIndex, emoteFlag) end);
Called when the player is examined.
ashita.register_event('examined', function(name, index) end);
Called when there is an exp event.
ashita.register_event('exp_gain', function(exp, chain, meritmode) end);
Called when the player gains a buff.
ashita.register_event('gain_buff', function(id) end);
Called when the players health changes.
ashita.register_event('hp_change', function(old, new) end);
Called when the players max health changes.
ashita.register_event('hpmax_change', function(old, new) end);
Called when the players job changes.
ashita.register_event('job_change', function(mjob, mjoblvl, sjob, sjoblvl) end);
Called when the player levels down.
ashita.register_event('level_down', function(mjob, mjoblvl) end);
Called when the player levels up.
ashita.register_event('level_up', function(mjob, mjoblvl) end);
Called when the player changes their linkshell.
ashita.register_event('linkshell_change', function(old, new) end);
Called when the player logs in.
ashita.register_event('login', function(name) end);
Called when the player logs out.
ashita.register_event('logout', function(name) end);
Called when the player loses a buff.
ashita.register_event('lose_buff', function(id) end);
Called when the players mp changes.
ashita.register_event('mp_change', function(old, new) end);
Called when the players max mp changes.
ashita.register_event('mpmax_change', function(old, new) end);
Called when the player receives a party invite.
ashita.register_event('party_invite', function(name) end);
Called when the players status changes.
ashita.register_event('status_change', function(old, new) end);
Called when the players target changes.
ashita.register_event('target_change', function(index) end);
Called when the players TP changes.
ashita.register_event('tp_change', function(old, new) end);
Called when the weather changes.
ashita.register_event('weather_change', function(weather) end);
Called when the player changes zones.
ashita.register_event('zone_change', function(old, new) end);