mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
remove delete vehicle without keys
remove delete vehicle without keys as this needs to be a function not an event. The unlock event will work but the delete function needs to be ran before server startup.
This commit is contained in:
@@ -76,28 +76,6 @@ CREATE EVENT `updateStockDaily` ON SCHEDULE EVERY 1 DAY COMMENT 'Updates out of
|
|||||||
;;
|
;;
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Event structure for DeleteNonKeyVehicles
|
|
||||||
-- ----------------------------
|
|
||||||
DROP EVENT IF EXISTS `DeleteNonKeyVehicles`;
|
|
||||||
DELIMITER ;;
|
|
||||||
CREATE EVENT `DeleteNonKeyVehicles` ON SCHEDULE EVERY 1 DAY DO DELETE FROM
|
|
||||||
`Object_DATA`
|
|
||||||
WHERE
|
|
||||||
`Object_DATA`.`CharacterID` <> 0
|
|
||||||
AND `Object_DATA`.`CharacterID` <= 12500
|
|
||||||
AND `Object_DATA`.`Classname` NOT LIKE 'Tent%'
|
|
||||||
AND `Object_DATA`.`Classname` NOT LIKE '%Locked'
|
|
||||||
AND `Object_DATA`.`Classname` NOT LIKE 'Land%'
|
|
||||||
AND `Object_DATA`.`Classname` NOT LIKE 'Cinder%'
|
|
||||||
AND `Object_DATA`.`Classname` NOT LIKE 'Wood%'
|
|
||||||
AND `Object_DATA`.`Classname` NOT LIKE 'Metal%'
|
|
||||||
AND `Object_DATA`.`Classname` NOT LIKE '%Storage%'
|
|
||||||
AND `Object_DATA`.`Classname` NOT IN ('OutHouse_DZ', 'GunRack_DZ', 'WorkBench_DZ', 'Sandbag1_DZ', 'FireBarrel_DZ', 'DesertCamoNet_DZ', 'StickFence_DZ', 'LightPole_DZ', 'DeerStand_DZ', 'ForestLargeCamoNet_DZ', 'Plastic_Pole_EP1_DZ', 'Hedgehog_DZ', 'FuelPump_DZ', 'Fort_RazorWire', 'SandNest_DZ', 'ForestCamoNet_DZ', 'Fence_corrugated_DZ', 'CanvasHut_DZ', 'Generator_DZ')
|
|
||||||
AND FindVehicleKeys(Object_DATA.CharacterID) = 0
|
|
||||||
;;
|
|
||||||
DELIMITER ;
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Event structure for UnlockNonKeyVehicles
|
-- Event structure for UnlockNonKeyVehicles
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user