summaryrefslogtreecommitdiff
path: root/docs/gameobject_template_addon.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gameobject_template_addon.md')
-rw-r--r--docs/gameobject_template_addon.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/gameobject_template_addon.md b/docs/gameobject_template_addon.md
new file mode 100644
index 0000000..9596453
--- /dev/null
+++ b/docs/gameobject_template_addon.md
@@ -0,0 +1,48 @@
+# gameobject\_template\_addon
+
+Table created and content moved from gameobject\_template in commit bd4bf0a
+
+## Structure
+
+| | | | | | | | |
+|-----------------------------------------------|--------------|----------------|---------|----------|-------------|-----------|-------------|
+| **Field** | **Type** | **Attributes** | **Key** | **Null** | **Default** | **Extra** | **Comment** |
+| [entry](#gameobject_template_addon-entry) | mediumint(8) | unsigned | PRI | NO | 0 |   |   |
+| [faction](#gameobject_template_addon-faction) | smallint(5) | unsigned |   | NO | 0 |   |   |
+| [flags](#gameobject_template_addon-flags) | int(10) | unsigned |   | NO | 0 |   |   |
+| mingold | mediumint(8) | unsigned |   | NO | 0 |   |   |
+| maxgold | mediumint(8) | unsigned |   | NO | 0 |   |   |
+
+## Description of the fields
+
+### entry
+
+ID of the game object, from [gameobject\_template.entry](https://trinitycore.atlassian.net/wiki/display/tc/gameobject_template#gameobject_template-entry). (`WDB fields)`
+
+### faction
+
+Object's faction, if any. See [FactionTemplate](FactionTemplate) (`Sniff fields)`
+
+### flags
+
+| Flag | Name | Comments |
+|------|------------|---------------------------|
+| 1 | 0x00000001 | GO\_FLAG\_IN\_USE |
+| 2 | 0x00000002 | GO\_FLAG\_LOCKED |
+| 4 | 0x00000004 | GO\_FLAG\_INTERACT\_COND |
+| 8 | 0x00000008 | GO\_FLAG\_TRANSPORT |
+| 16 | 0x00000010 | GO\_FLAG\_NOT\_SELECTABLE |
+| 32 | 0x00000020 | GO\_FLAG\_NODESPAWN |
+| 64 | 0x00000040 | GO\_FLAG\_TRIGGERED |
+| 512 | 0x00000200 | GO\_FLAG\_DAMAGED |
+| 1024 | 0x00000400 | GO\_FLAG\_DESTROYED |
+
+`Sniff fields`
+
+### mingold
+
+Minimum money, in copper, that the gameobject can drop when accessed / used.
+
+### maxgold
+
+Maximum money, in copper, that the gameobject can drop when accessed / used.