From a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 Mon Sep 17 00:00:00 2001 From: FrancescoBorzi Date: Mon, 25 Feb 2019 19:24:20 +0100 Subject: Import DB wiki from TC 335 --- docs/pool_gameobject.md | 106 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 98 insertions(+), 8 deletions(-) (limited to 'docs/pool_gameobject.md') diff --git a/docs/pool_gameobject.md b/docs/pool_gameobject.md index c046cc6..9f28262 100644 --- a/docs/pool_gameobject.md +++ b/docs/pool_gameobject.md @@ -1,8 +1,98 @@ -[Database Structure](Database-Structure) > [World-Database](World-Database) > [pool_gameobject](pool_gameobject) - -Column | Type | Description ---- | --- | --- -Guid | int(10) unsigned | -Pool_entry | mediumint(8) unsigned | -Chance | float unsigned | -Description | varchar(255) | +# pool\_gameobject + +`Back-to:World` + +**The \`pool\_gameobject\` table** + +This table contains gameobjects that are tied to a specific pool. +This table can only contain gameobjects that have a type of GAMEOBJECT\_TYPE\_CHEST, GAMEOBJECT\_TYPE\_GOOBER, GAMEOBJECT\_TYPE\_FISHINGHOLE. + +**Structure** + + ++++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Field

Type

Attributes

Key

Null

Default

Extra

Comment

guid

int(10)

unsigned

PRI

NO

0

 

 

pool_entry

mediumint(8)

unsigned

 

NO

0

 

 

chance

float

unsigned

 

NO

0

 

 

description

varchar(255)

signed

 

YES

NULL

 

 

+ +**Description of the fields** + +### guid + +Gameobject's guid. + +### pool\_entry + +The pool that this gameobject is in. Refers to pool\_template entry. + +### chance + +The explicit percentage chance that this gameobject will be spawned. + +If the pool spawns just one gameobject (max\_limit = 1 in the respective pool\_template), the core selects the gameobject to be spawned in a two-step process: First, only the explicitly-chanced (chance > 0) gameobjects of the pool are rolled. If this roll does not produce any gameobject, all the gameobjects without explicit chance (chance = 0) are rolled with equal chance. +If the pool spawns more than one gameobject, the chance is ignored and all the gameobjects in the pool are rolled in one step with equal chance. + +In case the pool spawns just one gameobject and all the gameobjects have a nonzero chance, the sum of the chances for all the gameobjects must equal to 100, otherwise the pool won't be spawned. + +### description + +This field usually names the game object corresponding to the guid and mentions which spawn point it is. Example: Spawn Point 4 - Tin Vein -- cgit