Skip to content

Commit ff62b1e

Browse files
committed
Update Eluna documentation
1 parent 12a9dae commit ff62b1e

File tree

2 files changed

+39
-10
lines changed

2 files changed

+39
-10
lines changed

Creature/GetAITarget.html

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,49 @@ <h1 class='fqn'>
8989
<div class='docblock'>
9090
<p>Returns a target from the <a class="mod" href="../Creature/index.html">Creature</a>'s threat list based on the
9191
supplied arguments.</p>
92-
<pre><code>enum SelectAggroTarget
93-
{
94-
SELECT_TARGET_RANDOM = 0, //Just selects a random target
95-
SELECT_TARGET_TOPAGGRO, //Selects targets from top aggro to bottom
96-
SELECT_TARGET_BOTTOMAGGRO, //Selects targets from bottom aggro to top
97-
SELECT_TARGET_NEAREST,
98-
SELECT_TARGET_FARTHEST
99-
};
100-
</code></pre>
10192
<p>For example, if you wanted to select the third-farthest <a class="mod" href="../Player/index.html">Player</a>
10293
within 50 yards that has the <a class="mod" href="../Aura/index.html">Aura</a> "Corrupted Blood" (ID 24328),
10394
you could use this function like so:</p>
10495
<pre><code>target = creature:GetAITarget(4, true, 3, 50, 24328)
10596
</code></pre>
97+
<div class="table-container">
98+
<table>
99+
<thead>
100+
<tr>
101+
<th>SelectAggroTarget</th>
102+
<th>ID</th>
103+
<th>Comment</th>
104+
</tr>
105+
</thead>
106+
<tbody>
107+
<tr>
108+
<td>SELECT_TARGET_RANDOM</td>
109+
<td>0</td>
110+
<td>Just selects a random target</td>
111+
</tr>
112+
<tr>
113+
<td>SELECT_TARGET_TOPAGGRO</td>
114+
<td>1</td>
115+
<td>Sorts targets from top aggro to bottom</td>
116+
</tr>
117+
<tr>
118+
<td>SELECT_TARGET_BOTTOMAGGRO</td>
119+
<td>2</td>
120+
<td>Sorts targets from bottom aggro to top</td>
121+
</tr>
122+
<tr>
123+
<td>SELECT_TARGET_NEAREST</td>
124+
<td>3</td>
125+
<td>Sorts targets from the nearest to the furthest</td>
126+
</tr>
127+
<tr>
128+
<td>SELECT_TARGET_FARTHEST</td>
129+
<td>4</td>
130+
<td>Sorts targets from the furthest to the nearest</td>
131+
</tr>
132+
</tbody>
133+
</table>
134+
</div>
106135

107136

108137
<h2 id="synopsis" class='section-header'>

date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
document.write("14/11/2024");
1+
document.write("23/11/2024");

0 commit comments

Comments
 (0)