Skip to content

Commit 7fe94c3

Browse files
authored
Merge pull request #63 from ElunaLuaEngine/master-2026-02-28_13-28
Update Eluna documentation
2 parents fb77562 + e2c5ae5 commit 7fe94c3

20 files changed

+251
-540
lines changed

Global/RegisterBGEvent.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,10 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Registers a <a class="mod" href="../BattleGround/index.html">BattleGround</a> event handler.</p>
91-
<p>In Multistate mode (default), events are either registered to the WORLD state (-1) or the MAP states (map ID). These events will only ever trigger on their respective state.</p>
92-
<p>In Compatibility mode, all events are registered to the WORLD state (-1).</p>
9391
<div class="table-container">
9492
<table>
9593
<thead>
9694
<tr>
97-
<th>ID</th>
9895
<th>Event</th>
9996
<th>State</th>
10097
<th>Parameters</th>
@@ -103,29 +100,25 @@ <h1 class='fqn'>
103100
</thead>
104101
<tbody>
105102
<tr>
106-
<td>1</td>
107-
<td>ON_START</td>
103+
<td><span title="1">events.bg.on_start</span></td>
108104
<td>MAP</td>
109105
<td><span title="number">event</span>, <span title="BattleGround">bg</span>, <span title="number">bgId</span>, <span title="number">instanceId</span></td>
110106
<td>Needs to be added to TC</td>
111107
</tr>
112108
<tr>
113-
<td>2</td>
114-
<td>ON_END</td>
109+
<td><span title="2">events.bg.on_end</span></td>
115110
<td>MAP</td>
116111
<td><span title="number">event</span>, <span title="BattleGround">bg</span>, <span title="number">bgId</span>, <span title="number">instanceId</span>, <span title="number">winner</span></td>
117112
<td>Needs to be added to TC</td>
118113
</tr>
119114
<tr>
120-
<td>3</td>
121-
<td>ON_CREATE</td>
115+
<td><span title="3">events.bg.on_create</span></td>
122116
<td>MAP</td>
123117
<td><span title="number">event</span>, <span title="BattleGround">bg</span>, <span title="number">bgId</span>, <span title="number">instanceId</span></td>
124118
<td>Needs to be added to TC</td>
125119
</tr>
126120
<tr>
127-
<td>4</td>
128-
<td>ON_PRE_DESTROY</td>
121+
<td><span title="4">events.bg.on_pre_destroy</span></td>
129122
<td>MAP</td>
130123
<td><span title="number">event</span>, <span title="BattleGround">bg</span>, <span title="number">bgId</span>, <span title="number">instanceId</span></td>
131124
<td>Needs to be added to TC</td>

Global/RegisterCreatureEvent.html

Lines changed: 28 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,10 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Registers a <a class="mod" href="../Creature/index.html">Creature</a> event handler.</p>
91-
<p>In Multistate mode (default), events are either registered to the WORLD state (-1) or the MAP states (map ID). These events will only ever trigger on their respective state.</p>
92-
<p>In Compatibility mode, all events are registered to the WORLD state (-1).</p>
9391
<div class="table-container">
9492
<table>
9593
<thead>
9694
<tr>
97-
<th>ID</th>
9895
<th>Event</th>
9996
<th>State</th>
10097
<th>Parameters</th>
@@ -103,197 +100,169 @@ <h1 class='fqn'>
103100
</thead>
104101
<tbody>
105102
<tr>
106-
<td>1</td>
107-
<td>ON_ENTER_COMBAT</td>
103+
<td><span title="1">events.creature.on_enter_combat</span></td>
108104
<td>MAP</td>
109105
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">target</span></td>
110106
<td>Can return true to stop normal action</td>
111107
</tr>
112108
<tr>
113-
<td>2</td>
114-
<td>ON_LEAVE_COMBAT</td>
109+
<td><span title="2">events.creature.on_leave_combat</span></td>
115110
<td>MAP</td>
116111
<td><span title="number">event</span>, <span title="Creature">creature</span></td>
117112
<td>Can return true to stop normal action</td>
118113
</tr>
119114
<tr>
120-
<td>3</td>
121-
<td>ON_TARGET_DIED</td>
115+
<td><span title="3">events.creature.on_target_died</span></td>
122116
<td>MAP</td>
123117
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">victim</span></td>
124118
<td>Can return true to stop normal action</td>
125119
</tr>
126120
<tr>
127-
<td>4</td>
128-
<td>ON_DIED</td>
121+
<td><span title="4">events.creature.on_died</span></td>
129122
<td>MAP</td>
130123
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">killer</span></td>
131124
<td>Can return true to stop normal action</td>
132125
</tr>
133126
<tr>
134-
<td>5</td>
135-
<td>ON_SPAWN</td>
127+
<td><span title="5">events.creature.on_spawn</span></td>
136128
<td>MAP</td>
137129
<td><span title="number">event</span>, <span title="Creature">creature</span></td>
138130
<td>Can return true to stop normal action</td>
139131
</tr>
140132
<tr>
141-
<td>6</td>
142-
<td>ON_REACH_WP</td>
133+
<td><span title="6">events.creature.on_reach_wp</span></td>
143134
<td>MAP</td>
144135
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="number">type</span>, <span title="number">id</span></td>
145136
<td>Can return true to stop normal action</td>
146137
</tr>
147138
<tr>
148-
<td>7</td>
149-
<td>ON_AIUPDATE</td>
139+
<td><span title="7">events.creature.on_ai_update</span></td>
150140
<td>MAP</td>
151141
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="number">diff</span></td>
152142
<td>Can return true to stop normal action</td>
153143
</tr>
154144
<tr>
155-
<td>8</td>
156-
<td>ON_RECEIVE_EMOTE</td>
145+
<td><span title="8">events.creature.on_receive_emote</span></td>
157146
<td>MAP</td>
158147
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Player">player</span>, <span title="number">emoteid</span></td>
159148
<td>Can return true to stop normal action</td>
160149
</tr>
161150
<tr>
162-
<td>9</td>
163-
<td>ON_DAMAGE_TAKEN</td>
151+
<td><span title="9">events.creature.on_damage_taken</span></td>
164152
<td>MAP</td>
165153
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">attacker</span>, <span title="number">damage</span></td>
166154
<td>Can return true to stop normal action, can return new damage as second return value.</td>
167155
</tr>
168156
<tr>
169-
<td>10</td>
170-
<td>ON_PRE_COMBAT</td>
157+
<td><span title="10">events.creature.on_pre_combat</span></td>
171158
<td>MAP</td>
172159
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">target</span></td>
173160
<td>Can return true to stop normal action</td>
174161
</tr>
175162
<tr>
176-
<td>12</td>
177-
<td>ON_OWNER_ATTACKED</td>
163+
<td><span title="12">events.creature.on_owner_attacked</span></td>
178164
<td>MAP</td>
179165
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">target</span></td>
180166
<td>Can return true to stop normal action. Not on mangos</td>
181167
</tr>
182168
<tr>
183-
<td>13</td>
184-
<td>ON_OWNER_ATTACKED_AT</td>
169+
<td><span title="13">events.creature.on_owner_attacked_at</span></td>
185170
<td>MAP</td>
186171
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">attacker</span></td>
187172
<td>Can return true to stop normal action. Not on mangos</td>
188173
</tr>
189174
<tr>
190-
<td>14</td>
191-
<td>ON_HIT_BY_SPELL</td>
175+
<td><span title="14">events.creature.on_hit_by_spell</span></td>
192176
<td>MAP</td>
193177
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">caster</span>, <span title="number">spellid</span></td>
194178
<td>Can return true to stop normal action</td>
195179
</tr>
196180
<tr>
197-
<td>15</td>
198-
<td>ON_SPELL_HIT_TARGET</td>
181+
<td><span title="15">events.creature.on_spell_hit_target</span></td>
199182
<td>MAP</td>
200183
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">target</span>, <span title="number">spellid</span></td>
201184
<td>Can return true to stop normal action</td>
202185
</tr>
203186
<tr>
204-
<td>19</td>
205-
<td>ON_JUST_SUMMONED_CREATURE</td>
187+
<td><span title="19">events.creature.on_just_summoned_creature</span></td>
206188
<td>MAP</td>
207189
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Creature">summon</span></td>
208190
<td>Can return true to stop normal action</td>
209191
</tr>
210192
<tr>
211-
<td>20</td>
212-
<td>ON_SUMMONED_CREATURE_DESPAWN</td>
193+
<td><span title="20">events.creature.on_summoned_creature_despawn</span></td>
213194
<td>MAP</td>
214195
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Creature">summon</span></td>
215196
<td>Can return true to stop normal action</td>
216197
</tr>
217198
<tr>
218-
<td>21</td>
219-
<td>ON_SUMMONED_CREATURE_DIED</td>
199+
<td><span title="21">events.creature.on_summoned_creature_died</span></td>
220200
<td>MAP</td>
221201
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Creature">summon</span>, <span title="Unit">killer</span></td>
222202
<td>Can return true to stop normal action. Not on mangos</td>
223203
</tr>
224204
<tr>
225-
<td>22</td>
226-
<td>ON_SUMMONED</td>
205+
<td><span title="22">events.creature.on_summoned</span></td>
227206
<td>MAP</td>
228207
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">summoner</span></td>
229208
<td>Can return true to stop normal action</td>
230209
</tr>
231210
<tr>
232-
<td>23</td>
233-
<td>ON_RESET</td>
211+
<td><span title="23">events.creature.on_reset</span></td>
234212
<td>MAP</td>
235213
<td><span title="number">event</span>, <span title="Creature">creature</span></td>
236214
<td></td>
237215
</tr>
238216
<tr>
239-
<td>24</td>
240-
<td>ON_REACH_HOME</td>
217+
<td><span title="24">events.creature.on_reach_home</span></td>
241218
<td>MAP</td>
242219
<td><span title="number">event</span>, <span title="Creature">creature</span></td>
243220
<td>Can return true to stop normal action</td>
244221
</tr>
245222
<tr>
246-
<td>26</td>
247-
<td>ON_CORPSE_REMOVED</td>
223+
<td><span title="26">events.creature.on_corpse_removed</span></td>
248224
<td>MAP</td>
249225
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="number">respawndelay</span></td>
250226
<td>Can return true to stop normal action, can return new respawndelay as second return value</td>
251227
</tr>
252228
<tr>
253-
<td>27</td>
254-
<td>ON_MOVE_IN_LOS</td>
229+
<td><span title="27">events.creature.on_move_in_los</span></td>
255230
<td>MAP</td>
256231
<td><span title="number">event</span>, <span title="Creature">creature</span>, <span title="Unit">who</span></td>
257232
<td>Can return true to stop normal action. Does not actually check LOS, just uses the sight range</td>
258233
</tr>
259234
<tr>
260-
<td>30</td>
261-
<td>ON_DUMMY_EFFECT</td>
235+
<td><span title="30">events.creature.on_dummy_effect</span></td>
262236
<td>MAP</td>
263237
<td><span title="number">event</span>, <span title="WorldObject">caster</span>, <span title="number">spellid</span>, <span title="number">effindex</span>, <span title="Creature">creature</span></td>
264238
<td></td>
265239
</tr>
266240
<tr>
267-
<td>31</td>
268-
<td>ON_QUEST_ACCEPT</td>
241+
<td><span title="31">events.creature.on_quest_accept</span></td>
269242
<td>MAP</td>
270243
<td><span title="number">event</span>, <span title="Player">player</span>, <span title="Creature">creature</span>, <span title="Quest">quest</span></td>
271244
<td>Can return true</td>
272245
</tr>
273246
<tr>
274-
<td>34</td>
275-
<td>ON_QUEST_REWARD</td>
247+
<td><span title="34">events.creature.on_quest_reward</span></td>
276248
<td>MAP</td>
277249
<td><span title="number">event</span>, <span title="Player">player</span>, <span title="Creature">creature</span>, <span title="Quest">quest</span>, <span title="number">opt</span></td>
278250
<td>Can return true</td>
279251
</tr>
280252
<tr>
281-
<td>35</td>
282-
<td>ON_DIALOG_STATUS</td>
253+
<td><span title="35">events.creature.on_dialog_status</span></td>
283254
<td>MAP</td>
284255
<td><span title="number">event</span>, <span title="Player">player</span>, <span title="Creature">creature</span></td>
285256
<td></td>
286257
</tr>
287258
<tr>
288-
<td>36</td>
289-
<td>ON_ADD</td>
259+
<td><span title="36">events.creature.on_add</span></td>
290260
<td>MAP</td>
291261
<td><span title="number">event</span>, <span title="Creature">creature</span></td>
292262
<td></td>
293263
</tr>
294264
<tr>
295-
<td>37</td>
296-
<td>ON_REMOVE</td>
265+
<td><span title="37">events.creature.on_remove</span></td>
297266
<td>MAP</td>
298267
<td><span title="number">event</span>, <span title="Creature">creature</span></td>
299268
<td></td>

Global/RegisterCreatureGossipEvent.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,10 @@ <h1 class='fqn'>
8888

8989
<div class='docblock'>
9090
<p>Registers a <a class="mod" href="../Creature/index.html">Creature</a> gossip event handler.</p>
91-
<p>In Multistate mode (default), events are either registered to the WORLD state (-1) or the MAP states (map ID). These events will only ever trigger on their respective state.</p>
92-
<p>In Compatibility mode, all events are registered to the WORLD state (-1).</p>
9391
<div class="table-container">
9492
<table>
9593
<thead>
9694
<tr>
97-
<th>ID</th>
9895
<th>Event</th>
9996
<th>State</th>
10097
<th>Parameters</th>
@@ -103,15 +100,13 @@ <h1 class='fqn'>
103100
</thead>
104101
<tbody>
105102
<tr>
106-
<td>1</td>
107-
<td>ON_HELLO</td>
103+
<td><span title="1">events.gossip.on_hello</span></td>
108104
<td>MAP</td>
109105
<td><span title="number">event</span>, <span title="Player">player</span>, <span title="Creature">object</span></td>
110106
<td>Object is the Creature/GameObject/Item. Can return false to do default action.</td>
111107
</tr>
112108
<tr>
113-
<td>2</td>
114-
<td>ON_SELECT</td>
109+
<td><span title="2">events.gossip.on_select</span></td>
115110
<td>MAP</td>
116111
<td><span title="number">event</span>, <span title="Player">player</span>, <span title="Creature">object</span>, <span title="number">sender</span>, <span title="number">intid</span>, <span title="string">code</span>, <span title="number">menu_id</span></td>
117112
<td>Object is the Creature/GameObject/Item/Player, menu_id is only for player gossip. Can return false to do default action.</td>

0 commit comments

Comments
 (0)