From 30d961931f7a3c0407190bca94c50196ffdfbed1 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Wed, 29 Mar 2017 12:22:31 -0400 Subject: [PATCH] Fix unable to sell classic 'ItemBloodbag' at traders Mistake from 4fa36df --- CHANGE LOG 1.0.6.2.txt | 1 + .../AdvancedTrading/functions/z_at_checkArrayInConfig.sqf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index 2ac8d3483..c6c3ac9fc 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -21,6 +21,7 @@ [FIXED] DayZ_RollingMessage FPS impact. #1926 @BigEgg17 [FIXED] Random skin selection on new character creation with DZE_defaultSkin = [["Male skin1","Male skin2"],["Female skin1","Female skin2"]]; [FIXED] Corpse markers are now deleted for bodies that are hidden. +[FIXED] Unable to sell classic 'ItemBloodbag' at traders. @oiad [NOTE] Fixes below are included in the mission file and server pbo as part of server package 1.0.6.1A (March 10th 2017) [FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions. diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_checkArrayInConfig.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_checkArrayInConfig.sqf index 1529a47bc..8df01abae 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_checkArrayInConfig.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_checkArrayInConfig.sqf @@ -68,7 +68,7 @@ _totalPrice = 0; _text = ""; _type = getText(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "type"); // Make sure type matches for items that have the same weapon and magazine classname (i.e. PipeBomb, Mine, Javelin, etc.) - if ((_type == "trade_items" && !(_y in _mags)) or (_type == "trade_weapons" && !(_y in _weaps))) exitWith {}; + if ((_type == "trade_items" && !(_y in _mags) && !_swap) or (_type == "trade_weapons" && !(_y in _weaps))) exitWith {}; _sell = getArray(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "sell"); _buy = getArray(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "buy"); if (_swap) then {_y = "ItemBloodbag"};