diff options
Diffstat (limited to 'docs/creature.md')
| -rw-r--r-- | docs/creature.md | 320 |
1 files changed, 53 insertions, 267 deletions
diff --git a/docs/creature.md b/docs/creature.md index e8f4097..128360c 100644 --- a/docs/creature.md +++ b/docs/creature.md @@ -6,230 +6,49 @@ Contains individual creature spawn data for each individual spawn of each individual creature in the game world. -<table> -<colgroup> -<col width="12%" /> -<col width="12%" /> -<col width="12%" /> -<col width="12%" /> -<col width="12%" /> -<col width="12%" /> -<col width="12%" /> -<col width="12%" /> -</colgroup> -<tbody> -<tr class="odd"> -<td><p><strong>Field</strong></p></td> -<td><p><strong>Type</strong></p></td> -<td><p><strong>Attributes</strong></p></td> -<td><p><strong>Key</strong></p></td> -<td><p><strong>Null</strong></p></td> -<td><p><strong>Default</strong></p></td> -<td><p><strong>Extra</strong></p></td> -<td><p><strong>Comment</strong></p></td> -</tr> -<tr class="even"> -<td><p><a href="#guid">guid</a></p></td> -<td><p>int(10)</p></td> -<td><p>unsigned</p></td> -<td><p>PRI</p></td> -<td><p>NO</p></td> -<td><p>NULL</p></td> -<td><p>Auto Increment</p></td> -<td><p>Global Unique Identifier</p></td> -</tr> -<tr class="odd"> -<td><p><a href="#id">id</a></p></td> -<td><p>mediumint(8)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p>Creature Identifier</p></td> -</tr> -<tr class="even"> -<td><p><a href="#map">map</a></p></td> -<td><p>smallint(5)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p>Map Identifier</p></td> -</tr> -<tr class="odd"> -<td><p><a href="#spawnmask">spawnMask</a></p></td> -<td><p>tinyint(3)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>1</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="even"> -<td><p><a href="#phasemask">phaseMask</a></p></td> -<td><p>smallint(5)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>1</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="odd"> -<td><p><a href="#modelid">modelid</a></p></td> -<td><p>mediumint(8)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p>0 core determined random model or model_id to prevent random model selection by core.</p></td> -</tr> -<tr class="even"> -<td><p><a href="#equipment_id">equipment_id</a></p></td> -<td><p>tinyint(3)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>1</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="odd"> -<td><p><a href="#position_x">position_x</a></p></td> -<td><p>float</p></td> -<td><p>signed</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="even"> -<td><p><a href="#position_y">position_y</a></p></td> -<td><p>float</p></td> -<td><p>signed</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="odd"> -<td><p><a href="#position_z">position_z</a></p></td> -<td><p>float</p></td> -<td><p>signed</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="even"> -<td><p><a href="#orientation">orientation</a></p></td> -<td><p>float</p></td> -<td><p>signed</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="odd"> -<td><p><a href="#spawntimesecs">spawntimesecs</a></p></td> -<td><p>int(10)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>120</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="even"> -<td><p><a href="#wander_distance">wander_distance</a></p></td> -<td><p>float</p></td> -<td><p>signed</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>5</p></td> -<td><p> </p></td> -<td><p>Dist in yards for random movement.</p></td> -</tr> -<tr class="odd"> -<td><p><a href="#currentwaypoint">currentwaypoint</a></p></td> -<td><p>mediumint(8)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p>Storage used by core. "Always set as 0"</p></td> -</tr> -<tr class="even"> -<td><p><a href="#curhealth">curhealth</a></p></td> -<td><p>int(10)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>1</p></td> -<td><p> </p></td> -<td><p>Storage used by core. "Always set as 1"</p></td> -</tr> -<tr class="odd"> -<td><p><a href="#curmana">curmana</a></p></td> -<td><p>int(10)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p>Storage used by core. "Always set as 0"</p></td> -</tr> -<tr class="even"> -<td><p><a href="#movementtype">MovementType</a></p></td> -<td><p>tinyint(3)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p>0 No movement, 1 random, 2 path</p></td> -</tr> -<tr class="odd"> -<td><p><a href="#npcflag">npcflag</a></p></td> -<td><p>int(10)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="even"> -<td><p><a href="#unit_flags">unit_flags</a></p></td> -<td><p>int(10)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -<tr class="odd"> -<td><p><a href="#dynamicflags">dynamicflags</a></p></td> -<td><p>int(10)</p></td> -<td><p>unsigned</p></td> -<td><p> </p></td> -<td><p>NO</p></td> -<td><p>0</p></td> -<td><p> </p></td> -<td><p> </p></td> -</tr> -</tbody> -</table> +| Field | Type | Attributes | Key | Null | Default | Extra | Comment | +|-----------------------|--------------|------------|-----|------|---------|----------------|---------------------------------------------------------------------------------------| +| [guid][1] | int(10) | unsigned | PRI | NO | NULL | Auto Increment | Global Unique Identifier | +| [id][2] | mediumint(8) | unsigned | | NO | 0 | | Creature Identifier | +| [map][3] | smallint(5) | unsigned | | NO | 0 | | Map Identifier | +| [spawnMask][4] | tinyint(3) | unsigned | | NO | 1 | | | +| [phaseMask][5] | smallint(5) | unsigned | | NO | 1 | | | +| [modelid][6] | mediumint(8) | unsigned | | NO | 0 | | 0 core determined random model or model_id to prevent random model selection by core. | +| [equipment_id][7] | tinyint(3) | unsigned | | NO | 1 | | | +| [position_x][8] | float | signed | | NO | 0 | | | +| [position_y][9] | float | signed | | NO | 0 | | | +| [position_z][10] | float | signed | | NO | 0 | | | +| [orientation][11] | float | signed | | NO | 0 | | | +| [spawntimesecs][12] | int(10) | unsigned | | NO | 120 | | | +| [wander_distance][13] | float | signed | | NO | 5 | | Dist in yards for random movement. | +| [currentwaypoint][14] | mediumint(8) | unsigned | | NO | 0 | | Storage used by core. "Always set as 0" | +| [curhealth][15] | int(10) | unsigned | | NO | 1 | | Storage used by core. "Always set as 1" | +| [curmana][16] | int(10) | unsigned | | NO | 0 | | Storage used by core. "Always set as 0" | +| [MovementType][17] | tinyint(3) | unsigned | | NO | 0 | | 0 No movement, 1 random, 2 path | +| [npcflag][18] | int(10) | unsigned | | NO | 0 | | | +| [unit_flags][19] | int(10) | unsigned | | NO | 0 | | | +| [dynamicflags][20] | int(10) | unsigned | | NO | 0 | | | + +[1]: #guid +[2]: #id +[3]: #map +[4]: #spawnmask +[5]: #phasemask +[6]: #modelid +[7]: #equipment_id +[8]: #position_x +[9]: #position_y +[10]: #position_z +[11]: #orientation +[12]: #spawntimesecs +[13]: #wander_distance +[14]: #currentwaypoint +[15]: #curhealth +[16]: #curmana +[17]: #movementtype +[18]: #npcflag +[19]: #unit_flags +[20]: #dynamicflags **Field Descriptions** @@ -255,47 +74,14 @@ Example: The creature will spawn in only the 10 and 25 man heroic versions of the map that the creature is spawned on. - - - -<table> -<colgroup> -<col width="50%" /> -<col width="50%" /> -</colgroup> -<thead> -<tr class="header"> -<th><p>Value</p></th> -<th><p>Comment</p></th> -</tr> -</thead> -<tbody> -<tr class="odd"> -<td><p>0</p></td> -<td><p>Not spawned</p></td> -</tr> -<tr class="even"> -<td><p>1</p></td> -<td><p>Spawned only in 10-man-normal versions of maps (includes maps without a heroic mode)</p></td> -</tr> -<tr class="odd"> -<td><p>2</p></td> -<td><p>Spawned only in 25-man-normal versions of maps (or heroics pre 3.2)</p></td> -</tr> -<tr class="even"> -<td><p>4</p></td> -<td><p>Spawned only in 10-man heroic versions of maps</p></td> -</tr> -<tr class="odd"> -<td><p>8</p></td> -<td><p>Spawned only in 25-man-heroic versions of maps</p></td> -</tr> -<tr class="even"> -<td><p>15</p></td> -<td><p>Spawned in all versions of maps</p></td> -</tr> -</tbody> -</table> +| Value | Comment | +|-------|--------------------------------------------------------------------------------------| +| 0 | Not spawned | +| 1 | Spawned only in 10-man-normal versions of maps (includes maps without a heroic mode) | +| 2 | Spawned only in 25-man-normal versions of maps (or heroics pre 3.2) | +| 4 | Spawned only in 10-man heroic versions of maps | +| 8 | Spawned only in 25-man-heroic versions of maps | +| 15 | Spawned in all versions of maps | ### phaseMask @@ -313,8 +99,8 @@ This can be left at 0 and a random model from its assigned models in [creature\_ The ID as defined within [creature\_equip\_template](creature_equip_template) corresponding to the [entry](creature_template). The value essential defines the equip: -- ** -1**: A random equip from the set of equips in [creature\_equip\_template](creature_equip_template) will be chosen. -- ** 0**: No equipment defined. +- **-1**: A random equip from the set of equips in [creature\_equip\_template](creature_equip_template) will be chosen. +- **0**: No equipment defined. - **1+**: The individual id within creature\_equip\_template. If creature spawned with `.npc add`, then this value will be set automatically (0 if nothing in creature_equip_template). |
