I want remove the deleting item databases for a listes item.
I think change the ligne in the server_deleteObj.sqf :
if (parseNumber _id > 0) then { //Send request _key = format["CHILD:304:%1:",_id]; _key call server_hiveWrite; diag_log format["DELETE: %1 Deleted by ID: %2",_activatingPlayer,_id]; } else { //Send request _key = format["CHILD:310:%1:",_uid]; _key call server_hiveWrite; diag_log format["DELETE: %1 Deleted by UID: %2",_activatingPlayer,_uid]; };
By :
if (parseNumber _id > 0) then { if (typeOf(_object) in !_cpcimmune) then { //Send request _key = format["CHILD:304:%1:",_id]; _key call server_hiveWrite; diag_log format["DELETE: %1 Deleted by ID: %2",_activatingPlayer,_id]; }; } else { if (typeOf(_object) in !_cpcimmune) then { //Send request _key = format["CHILD:310:%1:",_uid]; _key call server_hiveWrite; diag_log format["DELETE: %1 Deleted by UID: %2",_activatingPlayer,_uid]; }; };
In the "_cpcimmune" I declare the list off item :
_cpcimmune =[ "WoodFloor_DZ", "WoodFloorHalf_DZ", "WoodFloorQuarter_DZ", "Land_DZE_LargeWoodDoorLocked", "WoodLargeWallDoor_DZ", "WoodLargeWallWin_DZ", "WoodLargeWall_DZ", "Land_DZE_WoodDoorLocked", "WoodSmallWallDoor_DZ", "WoodSmallWallWin_DZ", "Land_DZE_GarageWoodDoor", "Land_DZE_GarageWoodDoorLocked", "WoodLadder_DZ", "WoodStairsSans_DZ", "WoodStairs_DZ", "WoodSmallWall_DZ", "WoodSmallWallThird_DZ", "CinderWallHalf_DZ", "CinderWall_DZ", "CinderWallDoorway_DZ", "Land_DZE_LargeWoodDoor", "MetalFloor_DZ", "CinderWallDoorSmallLocked_DZ", "CinderWallSmallDoorway_DZ", "CinderWallDoor_DZ", "MetalFloor_DZ", "Land_HBarrier1_DZ", "Land_HBarrier3_DZ", "Land_HBarrier5_DZ" ];
But it's correct ? I'm not sure for the expression :
if (typeOf(_object) in !_cpcimmune) then {
With this modification I want to the item respawn at the server reboot