mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
fixes to trading
This commit is contained in:
@@ -9,7 +9,7 @@ TradeInprogress = true;
|
||||
|
||||
// [part_out,part_in, qty_out, qty_in, loc];
|
||||
|
||||
_activatingPlayer = getPlayerUID player;
|
||||
_activatingPlayer = player;
|
||||
|
||||
_part_out = (_this select 3) select 0;
|
||||
_part_in = (_this select 3) select 1;
|
||||
|
||||
@@ -9,7 +9,7 @@ TradeInprogress = true;
|
||||
|
||||
// [part_out,part_in, qty_out, qty_in, loc];
|
||||
|
||||
_activatingPlayer = getPlayerUID player;
|
||||
_activatingPlayer = player;
|
||||
|
||||
_part_out = (_this select 3) select 0;
|
||||
_part_in = (_this select 3) select 1;
|
||||
|
||||
@@ -4,7 +4,7 @@ private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_bos","_bag","_clas
|
||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
_activatingPlayer = getPlayerUID player;
|
||||
_activatingPlayer = player;
|
||||
|
||||
_part_out = (_this select 3) select 0;
|
||||
_part_in = (_this select 3) select 1;
|
||||
|
||||
@@ -6,7 +6,7 @@ TradeInprogress = true;
|
||||
|
||||
_total_parts_out = 0;
|
||||
|
||||
_activatingPlayer = getPlayerUID player;
|
||||
_activatingPlayer = player;
|
||||
|
||||
_part_out = (_this select 3) select 0;
|
||||
_part_in = (_this select 3) select 1;
|
||||
|
||||
@@ -4,7 +4,7 @@ private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_trad
|
||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
_activatingPlayer = getPlayerUID player;
|
||||
_activatingPlayer = player;
|
||||
|
||||
_part_out = (_this select 3) select 0;
|
||||
_part_in = (_this select 3) select 1;
|
||||
|
||||
@@ -113,15 +113,14 @@ TraderDialogLoadItemList = {
|
||||
};
|
||||
} else {
|
||||
if (isClass(configFile >> "CfgVehicles" >> _name)) then {
|
||||
_objclass = configFile >> "CfgVehicles" >> _name;
|
||||
_distance = dayz_sellDistance_vehicle;
|
||||
if (_objclass isKindOf "AIR") then {
|
||||
if (_name isKindOf "Air") then {
|
||||
_distance = dayz_sellDistance_air;
|
||||
};
|
||||
if (_objclass isKindOf "SHIP") then {
|
||||
if (_name isKindOf "Ship") then {
|
||||
_distance = dayz_sellDistance_boat;
|
||||
};
|
||||
_count = {(typeOf _x) == _name} count (nearestObjects [player, [_objclass], _distance]);
|
||||
_count = {(typeOf _x) == _name} count (nearestObjects [player, [_name], _distance]);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user