summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcrom <malcromdev@gmail.com>2022-01-12 21:50:05 -0400
committerGitHub <noreply@github.com>2022-01-13 02:50:05 +0100
commitc8e7ffc8daae0683f3cc47f4c46d99624a8d8815 (patch)
tree841545c54ca8c56dc0748a99d6dbb68947bbf276 /docs
parent1060482971a322c8d14fea40a75c968732dc9350 (diff)
downloadwiki-c8e7ffc8daae0683f3cc47f4c46d99624a8d8815.tar.gz
wiki-c8e7ffc8daae0683f3cc47f4c46d99624a8d8815.tar.bz2
wiki-c8e7ffc8daae0683f3cc47f4c46d99624a8d8815.zip
chore: creature.md (#675)
* Update creature.md * Update creature.md
Diffstat (limited to 'docs')
-rw-r--r--docs/creature.md99
1 files changed, 57 insertions, 42 deletions
diff --git a/docs/creature.md b/docs/creature.md
index 0820ea7..ae3346a 100644
--- a/docs/creature.md
+++ b/docs/creature.md
@@ -9,48 +9,53 @@ Contains individual creature spawn data for each individual spawn of each indivi
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|-----------------------|--------------|------------|-----|------|---------|----------------|---------------------------------------------------------------------------------------|
| [guid][1] | INT | UNSIGNED | PRI | NO | NULL | Auto Increment | Global Unique Identifier |
-| [id][2] | MEDIUMINT | UNSIGNED | | NO | 0 | | Creature Identifier |
-| [map][3] | SMALLINT | UNSIGNED | | NO | 0 | | Map Identifier |
-| [zoneId][4] | SMALLINT | UNSIGNED | | NO | 0 | | Zone Identifier |
-| [areaId][5] | SMALLINT | UNSIGNED | | NO | 0 | | Area Identifier |
-| [spawnMask][6] | TINYINT | UNSIGNED | | NO | 1 | | |
-| [phaseMask][7] | SMALLINT | UNSIGNED | | NO | 1 | | |
-| [equipment_id][8] | TINYINT | UNSIGNED | | NO | 1 | | |
-| [position_x][9] | FLOAT | SIGNED | | NO | 0 | | |
-| [position_y][10] | FLOAT | SIGNED | | NO | 0 | | |
-| [position_z][11] | FLOAT | SIGNED | | NO | 0 | | |
-| [orientation][12] | FLOAT | SIGNED | | NO | 0 | | |
-| [spawntimesecs][13] | INT | UNSIGNED | | NO | 120 | | |
-| [wander_distance][14] | FLOAT | SIGNED | | NO | 5 | | Dist in yards for random movement. |
-| [currentwaypoint][15] | MEDIUMINT | UNSIGNED | | NO | 0 | | Storage used by core. "Always set as 0" |
-| [curhealth][16] | INT | UNSIGNED | | NO | 1 | | Storage used by core. "Always set as 1" |
-| [curmana][17] | INT | UNSIGNED | | NO | 0 | | Storage used by core. "Always set as 0" |
-| [MovementType][18] | TINYINT | UNSIGNED | | NO | 0 | | 0 No movement, 1 random, 2 path |
-| [npcflag][19] | INT | UNSIGNED | | NO | 0 | | |
-| [unit_flags][20] | INT | UNSIGNED | | NO | 0 | | |
-| [dynamicflags][21] | INT | UNSIGNED | | NO | 0 | | |
+| [creature_id1][2] | MEDIUMINT | UNSIGNED | | NO | 0 | | Creature Identifier |
+| [creature_id1][3] | MEDIUMINT | UNSIGNED | | NO | 0 | | Creature Identifier |
+| [chanceid1][4] | FLOAT | UNSIGNED | | NO | 100 | |
+ |
+| [map][5] | SMALLINT | UNSIGNED | | NO | 0 | | Map Identifier |
+| [zoneId][6] | SMALLINT | UNSIGNED | | NO | 0 | | Zone Identifier |
+| [areaId][7] | SMALLINT | UNSIGNED | | NO | 0 | | Area Identifier |
+| [spawnMask][8] | TINYINT | UNSIGNED | | NO | 1 | | |
+| [phaseMask][9] | SMALLINT | UNSIGNED | | NO | 1 | | |
+| [equipment_id][10] | TINYINT | UNSIGNED | | NO | 1 | | |
+| [position_x][11] | FLOAT | SIGNED | | NO | 0 | | |
+| [position_y][12] | FLOAT | SIGNED | | NO | 0 | | |
+| [position_z][13] | FLOAT | SIGNED | | NO | 0 | | |
+| [orientation][14] | FLOAT | SIGNED | | NO | 0 | | |
+| [spawntimesecs][15] | INT | UNSIGNED | | NO | 120 | | |
+| [wander_distance][16] | FLOAT | SIGNED | | NO | 5 | | Dist in yards for random movement. |
+| [currentwaypoint][17] | MEDIUMINT | UNSIGNED | | NO | 0 | | Storage used by core. "Always set as 0" |
+| [curhealth][18] | INT | UNSIGNED | | NO | 1 | | Storage used by core. "Always set as 1" |
+| [curmana][19] | INT | UNSIGNED | | NO | 0 | | Storage used by core. "Always set as 0" |
+| [MovementType][20] | TINYINT | UNSIGNED | | NO | 0 | | 0 No movement, 1 random, 2 path |
+| [npcflag][21] | INT | UNSIGNED | | NO | 0 | | |
+| [unit_flags][22] | INT | UNSIGNED | | NO | 0 | | |
+| [dynamicflags][23] | INT | UNSIGNED | | NO | 0 | | |
[1]: #guid
-[2]: #id
-[3]: #map
-[4]: #zoneId
-[5]: #areaId
-[6]: #spawnmask
-[7]: #phasemask
-[8]: #equipment_id
-[9]: #position_x
-[10]: #position_y
-[11]: #position_z
-[12]: #orientation
-[13]: #spawntimesecs
-[14]: #wander_distance
-[15]: #currentwaypoint
-[16]: #curhealth
-[17]: #curmana
-[18]: #movementtype
-[19]: #npcflag
-[20]: #unit_flags
-[21]: #dynamicflags
+[2]: #creatureid1
+[3]: #creatureid2
+[4]: #chanceid1
+[5]: #map
+[6]: #zoneId
+[7]: #areaId
+[8]: #spawnmask
+[9]: #phasemask
+[10]: #equipment_id
+[11]: #position_x
+[12]: #position_y
+[13]: #position_z
+[14]: #orientation
+[15]: #spawntimesecs
+[16]: #wander_distance
+[17]: #currentwaypoint
+[18]: #curhealth
+[19]: #curmana
+[20]: #movementtype
+[21]: #npcflag
+[22]: #unit_flags
+[23]: #dynamicflags
**Field Descriptions**
@@ -58,9 +63,19 @@ Contains individual creature spawn data for each individual spawn of each indivi
A unique identifier given to each creature to distinguish one creature from another. Two creatures can NOT have same GUID.
-### id
+### creature\_id1
-The ID of the [template](creature_template#creature_template-entry) that is used when instantiating this creature.
+The Main ID of the [template](creature_template#creature_template-entry) that is used when instantiating this creature.
+
+### creature\_id2
+
+The Secondary ID of the [template](creature_template#creature_template-entry) that is used when instantiating this creature.
+
+### chanceid1
+
+The float chance that id1 will be choosen when spawning. Must be greater that zero and less than or equal to 100.
+
+This field should be set to 100 if creature_id2 is 0 and normally 50 if creature_id2 has a value and you wish for equal spawn chance.
### map