mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Swap bloodbags in traders and loot for classic system
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user