Eventtype
Contents
- 1 Introduction
- 2 Notes
- 3 Eventlist
- 3.1 ACTIVATE_CHAT_CHANNEL
- 3.2 ACTIVATE_CHAT_GROUP
- 3.3 ACTIVATE_CHAT_GUILD
- 3.4 ACTIVATE_CHAT_MISSION
- 3.5 ACTIVATE_CHAT_PRIVATE
- 3.6 ACTIVATE_CHAT_SAY
- 3.7 ACTIVATE_CHAT_SECTOR
- 3.8 ACTIVATE_CHAT_USER
- 3.9 AUTOAIM_MODE_CHANGED
- 3.10 CHANGE_ACTIVE_CHATTAB
- 3.11 CHARINFOMENU_TOGGLE
- 3.12 CHAT_CANCELLED
- 3.13 CHAT_DONE
- 3.14 CHAT_MSG_BAR1
- 3.15 CHAT_MSG_BAR2
- 3.16 CHAT_MSG_BAR3
- 3.17 CHAT_MSG_BAR
- 3.18 CHAT_MSG_BARENTER
- 3.19 CHAT_MSG_BARLEAVE
- 3.20 CHAT_MSG_BARLIST
- 3.21 CHAT_MSG_BAR_EMOTE1
- 3.22 CHAT_MSG_BAR_EMOTE2
- 3.23 CHAT_MSG_BAR_EMOTE3
- 3.24 CHAT_MSG_BAR_EMOTE
- 3.25 CHAT_MSG_BUDDYNOTE
- 3.26 CHAT_MSG_CHANNEL
- 3.27 CHAT_MSG_CHANNEL_ACTIVE
- 3.28 CHAT_MSG_CHANNEL_EMOTE
- 3.29 CHAT_MSG_CHANNEL_EMOTE_ACTIVE
- 3.30 CHAT_MSG_CONFIRMATION
- 3.31 CHAT_MSG_DEATH
- 3.32 CHAT_MSG_ERROR
- 3.33 CHAT_MSG_GLOBAL_SERVER
- 3.34 CHAT_MSG_GROUP
- 3.35 CHAT_MSG_GUIDE
- 3.36 CHAT_MSG_GUILD
- 3.37 CHAT_MSG_GUILD_EMOTE
- 3.38 CHAT_MSG_GUILD_MOTD
- 3.39 CHAT_MSG_GROUP_NOTIFICATION
- 3.40 CHAT_MSG_INCOMINGBUDDYNOTE
- 3.41 CHAT_MSG_MISSION
- 3.42 CHAT_MSG_MOTD
- 3.43 CHAT_MSG_NATION
- 3.44 CHAT_MSG_PRINT
- 3.45 CHAT_MSG_PRIVATE
- 3.46 CHAT_MSG_PRIVATEOUTGOING
- 3.47 CHAT_MSG_SECTOR
- 3.48 CHAT_MSG_SECTORD
- 3.49 CHAT_MSG_SECTORD_MISSION
- 3.50 CHAT_MSG_SECTORD_SECTOR
- 3.51 CHAT_MSG_SECTOR_EMOTE
- 3.52 CHAT_MSG_SERVER
- 3.53 CHAT_MSG_SERVER_CHANNEL
- 3.54 CHAT_MSG_SERVER_CHANNEL_ACTIVE
- 3.55 CHAT_MSG_SERVER_GUILD
- 3.56 CHAT_MSG_SERVER_SECTOR
- 3.57 CHAT_MSG_SYSTEM
- 3.58 CHAT_SCROLL_DOWN
- 3.59 CHAT_SCROLL_UP
- 3.60 CINEMATIC_START
- 3.61 COMMAND
- 3.62 DESIRED_SPEED_CHANGED
- 3.63 ENTERED_STATION
- 3.64 ENTERING_STATION
- 3.65 ENTER_ZONE_NFZ
- 3.66 FLIGHT_MODE_CHANGED
- 3.67 FORGIVENESS_DIALOG
- 3.68 GROUP_CREATED
- 3.69 GROUP_MEMBER_DIED
- 3.70 GROUP_MEMBER_HEALTH_UPDATE
- 3.71 GROUP_MEMBER_JOINED
- 3.72 GROUP_MEMBER_KILLED
- 3.73 GROUP_MEMBER_LEFT
- 3.74 GROUP_MEMBER_LOCATION_CHANGED
- 3.75 GROUP_MEMBER_UPDATE
- 3.76 GROUP_OWNER_CHANGED
- 3.77 GROUP_SELF_INVITED
- 3.78 GROUP_SELF_JOINED
- 3.79 GROUP_SELF_LEFT
- 3.80 GUILD_ACTIVITY_LOG
- 3.81 GUILD_BALANCE_UPDATED
- 3.82 GUILD_BANK_LOG
- 3.83 GUILD_MEMBERS_UPDATED
- 3.84 GUILD_MEMBER_ADDED
- 3.85 GUILD_MEMBER_REMOVED
- 3.86 GUILD_MEMBER_UPDATED
- 3.87 GUILD_MOTD_UPDATED
- 3.88 GUILD_PRIVILEGES_UPDATED
- 3.89 HUD_HELP_TOGGLE
- 3.90 HUD_HIDE
- 3.91 HUD_INVENTORY_TOGGLE
- 3.92 HUD_MODE_TOGGLE
- 3.93 HUD_SHOW
- 3.94 HUD_SKIRMISH_CLOSE
- 3.95 HUD_SKIRMISH_OPEN
- 3.96 HUD_SKIRMISH_UPDATE
- 3.97 HUD_TOGGLE
- 3.98 HUD_UPDATE
- 3.99 INVENTORY_ADD
- 3.100 INVENTORY_RECEIVED
- 3.101 INVENTORY_REMOVE
- 3.102 INVENTORY_UPDATE
- 3.103 JETTISONMENU_TOGGLE
- 3.104 JUMP_OUT_CINEMATIC_FINISHED
- 3.105 LEAVE_ZONE_NFZ
- 3.106 LEAVING_STATION
- 3.107 LOGIN_FAILED
- 3.108 LOGIN_SUCCESSFUL
- 3.109 MISSIONLIST_UPDATED
- 3.110 MISSION_ADDED
- 3.111 MISSION_NOTIFICATION
- 3.112 MISSION_QUESTION_OPEN
- 3.113 MISSION_REMOVED
- 3.114 MISSION_TIMER_START
- 3.115 MISSION_TIMER_STOP
- 3.116 MISSION_UPDATED
- 3.117 MSG_LOGOFF_TIMER
- 3.118 MSG_NOTIFICATION
- 3.119 NAVMENU_TOGGLE
- 3.120 NAVROUTE_ADD
- 3.121 NAVROUTE_CHANGED
- 3.122 NAVROUTE_SAVE
- 3.123 NAVROUTE_UNDOLAST
- 3.124 OBJECT_INFO_UPDATED
- 3.125 OPEN_SURVEY
- 3.126 PLAYERLIST_TOGGLE
- 3.127 PLAYER_DIED
- 3.128 PLAYER_ENTERED_GAME
- 3.129 PLAYER_ENTERED_SECTOR
- 3.130 PLAYER_GOT_HIT
- 3.131 PLAYER_GUILD_TAG_UPDATED
- 3.132 PLAYER_HIT
- 3.133 PLAYER_HOME_CHANGED
- 3.134 PLAYER_LEFT_SECTOR
- 3.135 PLAYER_LOGGED_OUT
- 3.136 PLAYER_RECEIVED_NEW_ACCOMPLISHMENTS
- 3.137 PLAYER_STATS_UPDATED
- 3.138 PLAYER_UPDATE_ACCOMPLISHMENTS
- 3.139 PLAYER_UPDATE_FACTIONSTANDINGS
- 3.140 PLAYER_UPDATE_SKILLS
- 3.141 PLAYER_UPDATE_STATS
- 3.142 PROXIMITY_ALERT
- 3.143 SECTOR_ALIGNMENT_UPDATED
- 3.144 SECTOR_CHANGED
- 3.145 SECTOR_LOADED
- 3.146 SECTOR_LOADING
- 3.147 SERVER_DISCONNECTED
- 3.148 SHIP_CHANGED
- 3.149 SHIP_SPAWNED
- 3.150 SHIP_UPDATED
- 3.151 SHOW_STATION
- 3.152 START
- 3.153 STATION_TURRET_HEALTH_UPDATE
- 3.154 STATION_UPDATED
- 3.155 STATION_UPDATE_DESIREDITEMS
- 3.156 STATION_UPDATE_PRICE
- 3.157 STATION_UPDATE_REQUESTED
- 3.158 STORM_STARTED
- 3.159 STORM_STOPPED
- 3.160 SYSMENU_TOGGLE
- 3.161 TARGET_CHANGED
- 3.162 TARGET_HEALTH_UPDATE
- 3.163 TARGET_SCANNED
- 3.164 TERMINATE
- 3.165 TRANSACTION_COMPLETED
- 3.166 TRANSACTION_FAILED
- 3.167 UNLOAD_INTERFACE
- 3.168 UPDATE_BUDDY_LIST
- 3.169 UPDATE_CHARACTER_LIST
- 3.170 UPDATE_CHARINFO
- 3.171 UPDATE_DUEL_INFO
- 3.172 UPDATE_NEWS
- 3.173 UPDATE_NEWS_HEADLINES
- 3.174 VOICECHAT_PLAYER_LISTEN_STATUS
- 3.175 VOICECHAT_PLAYER_MUTE_STATUS
- 3.176 VOICECHAT_PLAYER_TALK_STATUS
- 3.177 WARP_OUT_CINEMATIC_FINISHED
- 3.178 WEAPON_GROUP_CHANGED
- 3.179 WEAPON_PROGRESS_START
- 3.180 WEAPON_PROGRESS_STOP
- 3.181 rHUDxscale
Introduction
Events are used for communication between different parts of the client. For example the chat log is registered to the CHAT_MSG_CHANNEL event. When the client receives a chat message the event is triggered and the received string passed along with it. The event callback in the chat log now appends the string to the log.
A very basic example using the TARGET_CHANGED event. It's triggered whenever the target changes
-- define a table. this table is the "object" that gets registered with event target = {} -- define a function called OnEvent within this table. It's called when the event is triggered. -- It has at least one argument, containing the name of the event that is passed to it function target:OnEvent(event) -- this way it is possible to handle multiple events with one table if event == "TARGET_CHANGED" then -- the only action is to print something print("Target Changed") end end -- register the table with the event RegisterEvent(target, "TARGET_CHANGED")
Notes
Calling RegisterEvent twice with the same arguments will result in the same table receiving an event twice, which is generally not wanted. Use ReloadInterface or UnregisterEvent to get rid previously registered tables before registering new ones.
Passing locally defined tables to RegisterEvent doesn't work. example:
do local tab = {} function tab:OnEvent() print("this doesn't work") end RegisterEvent(tab, "MYEVENT") end
the table needs a strong reference:
do local tab = {} function tab:OnEvent() print("this does work") end RegisterEvent(tab, "MYEVENT") tab_strong = tab end
Eventlist
The client provides a set of predefined events.
Known events are:
ACTIVATE_CHAT_CHANNEL
Description:
ACTIVATE_CHAT_GROUP
Description:
ACTIVATE_CHAT_GUILD
Description:
ACTIVATE_CHAT_MISSION
Description:
ACTIVATE_CHAT_PRIVATE
Description:
ACTIVATE_CHAT_SAY
Description:
ACTIVATE_CHAT_SECTOR
Description:
ACTIVATE_CHAT_USER
Description:
AUTOAIM_MODE_CHANGED
Description:
CHANGE_ACTIVE_CHATTAB
Description:
CHARINFOMENU_TOGGLE
Description:
CHAT_CANCELLED
Description:
CHAT_DONE
Description:
CHAT_MSG_BAR1
Description:
A message from an Itani in the station bar.
Arguments:
CHAT_MSG_BAR2
Description:
A message from a Serco in the station bar.
Arguments:
CHAT_MSG_BAR3
Description:
A message from a UIT in the station bar.
Arguments:
CHAT_MSG_BAR
Description:
CHAT_MSG_BARENTER
Description:
A message stating that a player has entered the bar.
Arguments:
CHAT_MSG_BARLEAVE
Description:
A message stating that a player has left the bar.
Arguments:
CHAT_MSG_BARLIST
Description:
A message listing the players currently in the bar.
Arguments:
CHAT_MSG_BAR_EMOTE1
Description:
An emote (/me) message from an Itani in the station bar.
Arguments:
CHAT_MSG_BAR_EMOTE2
Description:
An emote (/me) message from a Serco in the station bar.
Arguments:
CHAT_MSG_BAR_EMOTE3
Description:
An emote (/me) message from a UIT in the station bar.
Arguments:
CHAT_MSG_BAR_EMOTE
Description:
CHAT_MSG_BUDDYNOTE
Description:
CHAT_MSG_CHANNEL
Description:
CHAT_MSG_CHANNEL_ACTIVE
Description:
CHAT_MSG_CHANNEL_EMOTE
Description:
CHAT_MSG_CHANNEL_EMOTE_ACTIVE
Description:
CHAT_MSG_CONFIRMATION
Description:
CHAT_MSG_DEATH
Description:
CHAT_MSG_ERROR
Description:
CHAT_MSG_GLOBAL_SERVER
Description:
CHAT_MSG_GROUP
Description:
A message from a player in your group.
Arguments:
CHAT_MSG_GUIDE
Description:
A message from a guide.
Arguments:
CHAT_MSG_GUILD
Description:
A message from guildmate.
Arguments:
arg1 = {string msg, string name, int location = sectorid, int faction = factionid}
CHAT_MSG_GUILD_EMOTE
Description:
An emote (/me) message from a guildmate.
Arguments:
arg1 = {string msg, string name, int location = sectorid, int faction = factionid}
CHAT_MSG_GUILD_MOTD
Description:
Not used, instead guild MOTD triggers CHAT_MSG_SERVER event.
The guild MOTD.
CHAT_MSG_GROUP_NOTIFICATION
Description:
CHAT_MSG_INCOMINGBUDDYNOTE
Description:
CHAT_MSG_MISSION
Description:
CHAT_MSG_MOTD
Description:
CHAT_MSG_NATION
Description:
A message on nation chat. Depricated/unused.
CHAT_MSG_PRINT
Description:
CHAT_MSG_PRIVATE
Description:
An incoming private message from another player.
Arguments:
arg1 = {string msg, string name}
CHAT_MSG_PRIVATEOUTGOING
Description:
An outgoing private message to another player.
Arguments:
CHAT_MSG_SECTOR
Description:
A message from a player in the sector.
Arguments:
CHAT_MSG_SECTORD
Description:
A message from the sector daemon.
Arguments:
CHAT_MSG_SECTORD_MISSION
Description:
A mission message from the sector daemon.
Arguments:
CHAT_MSG_SECTORD_SECTOR
Description:
A sector message from the sector daemon (temp KOS standing messages and the 'You've been caught in an Ion Storm.' messages)
Arguments:
CHAT_MSG_SECTOR_EMOTE
Description:
An emote (/me) message from a player in-sector.
Arguments:
CHAT_MSG_SERVER
Description:
CHAT_MSG_SERVER_CHANNEL
Description:
CHAT_MSG_SERVER_CHANNEL_ACTIVE
Description:
CHAT_MSG_SERVER_GUILD
Description:
CHAT_MSG_SERVER_SECTOR
Description:
CHAT_MSG_SYSTEM
Description:
A message from another player in your system.
Arguments:
CHAT_SCROLL_DOWN
Description:
CHAT_SCROLL_UP
Description:
CINEMATIC_START
Description:
Called when an ingame cinematic is started. Examples include the undocking animation and the warping sequences.
Arguments:
COMMAND
Description:
DESIRED_SPEED_CHANGED
Description:
ENTERED_STATION
Description:
ENTERING_STATION
Description:
ENTER_ZONE_NFZ
Description:
FLIGHT_MODE_CHANGED
Description:
FORGIVENESS_DIALOG
Description:
GROUP_CREATED
Description:
GROUP_MEMBER_DIED
Description:
GROUP_MEMBER_HEALTH_UPDATE
Description:
GROUP_MEMBER_JOINED
Description:
GROUP_MEMBER_KILLED
Description:
GROUP_MEMBER_LEFT
Description:
GROUP_MEMBER_LOCATION_CHANGED
Description:
GROUP_MEMBER_UPDATE
Description:
GROUP_OWNER_CHANGED
Description:
GROUP_SELF_INVITED
Description:
GROUP_SELF_JOINED
Description:
GROUP_SELF_LEFT
Description:
GUILD_ACTIVITY_LOG
Description:
GUILD_BALANCE_UPDATED
Description:
GUILD_BANK_LOG
Description:
GUILD_MEMBERS_UPDATED
Description:
GUILD_MEMBER_ADDED
Description:
Triggered when guild member logs on or joins the guild.
Arguments:
charid charid of added guild member.
GUILD_MEMBER_REMOVED
Description:
Triggered when guild member logs off or leaves the guild.
Arguments:
charid charid of removed guild member.
GUILD_MEMBER_UPDATED
Description:
GUILD_MOTD_UPDATED
Description:
GUILD_PRIVILEGES_UPDATED
Description:
HUD_HELP_TOGGLE
Description:
HUD_HIDE
Description:
HUD_INVENTORY_TOGGLE
Description:
HUD_MODE_TOGGLE
Description:
HUD_SHOW
Description:
HUD_SKIRMISH_CLOSE
Description:
HUD_SKIRMISH_OPEN
Description:
HUD_SKIRMISH_UPDATE
Description:
HUD_TOGGLE
Description:
HUD_UPDATE
Description:
INVENTORY_ADD
Description:
INVENTORY_RECEIVED
Description:
INVENTORY_REMOVE
Description:
INVENTORY_UPDATE
Description:
JETTISONMENU_TOGGLE
Description:
JUMP_OUT_CINEMATIC_FINISHED
Description:
Called when the sector jump-out cinematic is finished.
Arguments:
LEAVE_ZONE_NFZ
Description:
LEAVING_STATION
Description:
LOGIN_FAILED
Description:
LOGIN_SUCCESSFUL
Description:
MISSIONLIST_UPDATED
Description:
MISSION_ADDED
Description:
MISSION_NOTIFICATION
Description:
MISSION_QUESTION_OPEN
Description:
MISSION_REMOVED
Description:
MISSION_TIMER_START
Description:
MISSION_TIMER_STOP
Description:
MISSION_UPDATED
Description:
MSG_LOGOFF_TIMER
Description:
MSG_NOTIFICATION
Description:
NAVMENU_TOGGLE
Description:
NAVROUTE_ADD
Description:
NAVROUTE_CHANGED
Description:
NAVROUTE_SAVE
Description:
NAVROUTE_UNDOLAST
Description:
OBJECT_INFO_UPDATED
Description:
OPEN_SURVEY
Description:
PLAYERLIST_TOGGLE
Description:
PLAYER_DIED
Description:
PLAYER_ENTERED_GAME
Description:
PLAYER_ENTERED_SECTOR
Description:
PLAYER_GOT_HIT
Description:
PLAYER_GUILD_TAG_UPDATED
Description:
PLAYER_HIT
Description:
PLAYER_HOME_CHANGED
Description:
PLAYER_LEFT_SECTOR
Description:
PLAYER_LOGGED_OUT
Description:
PLAYER_RECEIVED_NEW_ACCOMPLISHMENTS
Description:
PLAYER_STATS_UPDATED
Description:
PLAYER_UPDATE_ACCOMPLISHMENTS
Description:
PLAYER_UPDATE_FACTIONSTANDINGS
Description:
PLAYER_UPDATE_SKILLS
Description:
PLAYER_UPDATE_STATS
Description:
PROXIMITY_ALERT
Description:
SECTOR_ALIGNMENT_UPDATED
Description:
SECTOR_CHANGED
Description:
SECTOR_LOADED
Description:
SECTOR_LOADING
Description:
SERVER_DISCONNECTED
Description:
SHIP_CHANGED
Description:
SHIP_SPAWNED
Description:
SHIP_UPDATED
Description:
SHOW_STATION
Description:
START
Description:
STATION_TURRET_HEALTH_UPDATE
Description:
STATION_UPDATED
Description:
STATION_UPDATE_DESIREDITEMS
Description:
STATION_UPDATE_PRICE
Description:
STATION_UPDATE_REQUESTED
Description:
STORM_STARTED
Description:
STORM_STOPPED
Description:
SYSMENU_TOGGLE
Description:
TARGET_CHANGED
Description:
TARGET_HEALTH_UPDATE
Description:
TARGET_SCANNED
Description:
Triggered when asteroid is scanned.
Arguments:(scaninfo, nodeid, objectid)
scaninfo string containing information on ores contained by the roid. Same thing that's displayed in top right corner of the hud (HUD.scaninfo.title)
nodeid nodeid of scanned roid.
objectid objectid of scanned roid.
TERMINATE
Description:
TRANSACTION_COMPLETED
Description:
TRANSACTION_FAILED
Description:
UNLOAD_INTERFACE
Description:
Raised when interface is about to be reloaded.
Arguments:
UPDATE_BUDDY_LIST
Description:
UPDATE_CHARACTER_LIST
Description:
UPDATE_CHARINFO
Description:
UPDATE_DUEL_INFO
Description:
UPDATE_NEWS
Description:
UPDATE_NEWS_HEADLINES
Description:
VOICECHAT_PLAYER_LISTEN_STATUS
Description:
VOICECHAT_PLAYER_MUTE_STATUS
Description:
VOICECHAT_PLAYER_TALK_STATUS
Description:
WARP_OUT_CINEMATIC_FINISHED
Description:
Called when the wormhole warp-out cinematic is finished.
Arguments:
WEAPON_GROUP_CHANGED
Description:
WEAPON_PROGRESS_START
Description:
WEAPON_PROGRESS_STOP
Description:
rHUDxscale
Description: