From 97873ff42d6b4407d790e5d79886c7ee2c2259f0 Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 16 Dec 2017 23:20:20 -0500 Subject: [PATCH] Change Ground Spawn respawn timers to match normal spawns (msec to sec). Highly recommended sql included! --- utils/sql/git/optional/2017_12_16_GroundSpawn_Respawn_Timer.sql | 2 ++ zone/object.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 utils/sql/git/optional/2017_12_16_GroundSpawn_Respawn_Timer.sql diff --git a/utils/sql/git/optional/2017_12_16_GroundSpawn_Respawn_Timer.sql b/utils/sql/git/optional/2017_12_16_GroundSpawn_Respawn_Timer.sql new file mode 100644 index 000000000..f7c8b6a31 --- /dev/null +++ b/utils/sql/git/optional/2017_12_16_GroundSpawn_Respawn_Timer.sql @@ -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; diff --git a/zone/object.cpp b/zone/object.cpp index d8db2f1d8..0ba5f9fa3 100644 --- a/zone/object.cpp +++ b/zone/object.cpp @@ -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;