Swap bloodbags in traders and loot for classic system

This commit is contained in:
ebaydayz
2016-04-15 16:11:17 -04:00
parent 0b290d8fec
commit 110befba7f
37 changed files with 86 additions and 104 deletions

View File

@@ -12,7 +12,7 @@ TraderCatList = [];
TraderItemList = [];
TraderDialogLoadItemList = {
private ["_index","_trader_id","_activatingPlayer","_distance","_objclass","_item_list"];
private ["_index","_trader_id","_activatingPlayer","_distance","_objclass","_item_list","_ignore"];
TraderItemList = [];
_index = _this select 0;
@@ -51,9 +51,14 @@ TraderDialogLoadItemList = {
};
};
_ignore = false;
if (dayz_classicBloodBagSystem && _class in dayz_typedBags) then {
if (_class == "bloodBagONEG") then {_class = "ItemBloodbag";} else {_ignore = true;};
};
_data = [9999,[_class,_typeNum],99999,_buy,_sell,0,_trader_id,_type];
PVDZE_plr_TradeMenuResult set [count PVDZE_plr_TradeMenuResult, _data];
if (!_ignore) then {PVDZE_plr_TradeMenuResult set [count PVDZE_plr_TradeMenuResult, _data];};
};
lbClear TraderDialogItemList;