Change Ground Spawn respawn timers to match normal spawns (msec to sec). Highly recommended sql included!

This commit is contained in:
JJ 2017-12-16 23:20:20 -05:00
parent 9af9deb0f5
commit 97873ff42d
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
ALTER TABLE `ground_spawns` MODIFY `respawn_timer` int(11) unsigned NOT NULL default 300;
UPDATE `ground_spawns` SET `respawn_timer` = `respawn_timer` / 1000;

View File

@ -70,7 +70,7 @@ Object::Object(uint32 id, uint32 type, uint32 icon, const Object_Struct& object,
//creating a re-ocurring ground spawn.
Object::Object(const EQEmu::ItemInstance* inst, char* name,float max_x,float min_x,float max_y,float min_y,float z,float heading,uint32 respawntimer)
: respawn_timer(respawntimer), decay_timer(300000)
: respawn_timer(respawntimer * 1000), decay_timer(300000)
{
user = nullptr;