summaryrefslogtreecommitdiff
path: root/docs/game_event_npcflag.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/game_event_npcflag.md')
-rw-r--r--docs/game_event_npcflag.md85
1 files changed, 79 insertions, 6 deletions
diff --git a/docs/game_event_npcflag.md b/docs/game_event_npcflag.md
index ced0048..f8688f6 100644
--- a/docs/game_event_npcflag.md
+++ b/docs/game_event_npcflag.md
@@ -1,7 +1,80 @@
-[Database Structure](Database-Structure) > [World-Database](World-Database) > [game_event_npcflag](game_event_npcflag)
+# game\_event\_npcflag
-Column | Type | Description
---- | --- | ---
-EventEntry | tinyint(3) unsigned |
-Guid | mediumint(8) unsigned |
-Npcflag | int(10) unsigned |
+`Back-to:World`
+
+**The \`game\_event\_npcflag\` table**
+
+This table contains npcflags that are to be added to an NPC when the specified event is active for the creature with the given guid.
+
+**Structure**
+
+<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="#game_event_npcflag-eventEntry">eventEntry</a></p></td>
+<td><p>tinyint(3)</p></td>
+<td><p>unsigned</p></td>
+<td><p>PRI</p></td>
+<td><p>NO</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+<td><p>Entry of the game event</p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#game_event_npcflag-guid">guid</a></p></td>
+<td><p>mediumint(8)</p></td>
+<td><p>unsigned</p></td>
+<td><p>PRI</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="#game_event_npcflag-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>
+</tbody>
+</table>
+
+**Description of the fields**
+
+### eventEntry
+
+The eventEntry that is tied to this npcflag change.
+
+### guid
+
+The guid of the creature that you want to change npcflag for.
+
+### npcflag
+
+The npcflags that you want to set. The value specified here is bitwise added to the npcflag already set on the NPC.
+
+So, if you want the creature to be also a quest giver, just put 2 in this column.