Difference between revisions of "Hunt locationsTable"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
This table is loaded by SpawnManager::LoadHuntLocations() | This table is loaded by SpawnManager::LoadHuntLocations() | ||
At server startup we spawn into the world an "amount" of "itemid" for each line in the given "range". | |||
When one of these items is picked up, we generate a UpsItemSpawnEvent() which will create a new item after "interval"+random("max_random") | |||
Revision as of 23:21, 27 February 2020
This table is loaded by SpawnManager::LoadHuntLocations()
At server startup we spawn into the world an "amount" of "itemid" for each line in the given "range".
When one of these items is picked up, we generate a UpsItemSpawnEvent() which will create a new item after "interval"+random("max_random")
field | type | foreign key | description |
---|---|---|---|
id | int(8) unsigned | ||
x | double(10,2) | coordinate on the map | |
y | double(10,2) | coordinate on the map | |
z | double(10,2) | coordinate on the map | |
itemid | int(10) | item to spawn taken from item_stats table | |
interval | int(11) | time to respawn a new item in seconds | |
max_random | int(11) | random time between 0 and given value added to interval value above | |
sector | int(10) | ||
amount | int(10) | Number of items to spawn in the area | |
range | double(10,2) | radius in centimeters | |
lock_str | int(5) | The lock strength of the generated item. | |
lock_skill | int(2) | The lock skill used to open the item. | |
flags | varchar(200) | The flags to apply to the item. |