====== Events Library ====== 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 [[addons:events|this guide]] on making use of them in your addon. None of these events return a value. ---- ==== Emote Event ==== Called when an emote occurs. ashita.register_event('emote', function(emoteId, senderIndex, targetIndex, emoteFlag) end); ---- ==== Examined Event ==== Called when the player is examined. ashita.register_event('examined', function(name, index) end); ---- ==== Exp Gain Event ==== Called when there is an exp event. ashita.register_event('exp_gain', function(exp, chain, meritmode) end); ---- ==== Gain Buff Event ==== Called when the player gains a buff. ashita.register_event('gain_buff', function(id) end); ---- ==== HP Change Event ==== Called when the players health changes. ashita.register_event('hp_change', function(old, new) end); ---- ==== HP Max Change Event ==== Called when the players max health changes. ashita.register_event('hpmax_change', function(old, new) end); ---- ==== Job Change Event ==== Called when the players job changes. ashita.register_event('job_change', function(mjob, mjoblvl, sjob, sjoblvl) end); ---- ==== Level Down Event ==== Called when the player levels down. ashita.register_event('level_down', function(mjob, mjoblvl) end); ---- ==== Level Up Event ==== Called when the player levels up. ashita.register_event('level_up', function(mjob, mjoblvl) end); ---- ==== Linkshell Change Event ==== Called when the player changes their linkshell. ashita.register_event('linkshell_change', function(old, new) end); ---- ==== Login Event ==== Called when the player logs in. ashita.register_event('login', function(name) end); ---- ==== Logout Event ==== Called when the player logs out. ashita.register_event('logout', function(name) end); ---- ==== Lose Buff Event ==== Called when the player loses a buff. ashita.register_event('lose_buff', function(id) end); ---- ==== MP Change Event ==== Called when the players mp changes. ashita.register_event('mp_change', function(old, new) end); ---- ==== MP Max Change Event ==== Called when the players max mp changes. ashita.register_event('mpmax_change', function(old, new) end); ---- ==== Party Invite Event ==== Called when the player receives a party invite. ashita.register_event('party_invite', function(name) end); ---- ==== Status Change Event ==== Called when the players status changes. ashita.register_event('status_change', function(old, new) end); ---- ==== Target Change Event ==== Called when the players target changes. ashita.register_event('target_change', function(index) end); ---- ==== TP Change Event ==== Called when the players TP changes. ashita.register_event('tp_change', function(old, new) end); ---- ==== Weather Change Event ==== Called when the weather changes. ashita.register_event('weather_change', function(weather) end); ---- ==== Zone Change Event ==== Called when the player changes zones. ashita.register_event('zone_change', function(old, new) end);