aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSevi <gonzo1247@yahoo.de>2020-12-28 16:27:44 +0100
committerjackpoz <giacomopoz@gmail.com>2021-01-03 22:10:55 +0100
commit6392d9ac481dd015133d6b69a6642437a503d94a (patch)
tree6cd12944a72343c1bf1e90955a16ab0474c8e3ee /sql
parented975ef4c0e614addc069785f23c1b7f522f3b8e (diff)
Core/Vehicles: add a way to delay the Vehicle despawn Time if its needed.
* New database table `vehicle_template` holds info for despawn delay with option to extend it in the future (cherry picked from commit c7b10d3c5fd082faf6c2835239e340babc3dfc76) # Conflicts: # src/server/game/Entities/Unit/Unit.cpp # src/server/game/Entities/Vehicle/Vehicle.cpp # src/server/game/Globals/ObjectMgr.cpp # src/server/game/Globals/ObjectMgr.h
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/3.3.5/2020_12_31_00_world.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2020_12_31_00_world.sql b/sql/updates/world/3.3.5/2020_12_31_00_world.sql
new file mode 100644
index 00000000000..15be0e0e2a7
--- /dev/null
+++ b/sql/updates/world/3.3.5/2020_12_31_00_world.sql
@@ -0,0 +1,9 @@
+--
+-- Table structure for table `vehicle_template`
+--
+DROP TABLE IF EXISTS `vehicle_template`;
+CREATE TABLE `vehicle_template` (
+ `creatureId` int(10) unsigned NOT NULL,
+ `despawnDelayMs` int(11) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`creatureId`)
+) ENGINE=MyISAM;