fixes to trading

This commit is contained in:
[VB]AWOL
2013-11-26 22:25:53 -06:00
parent effda8e95b
commit a46cec0036
6 changed files with 8 additions and 9 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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]);
};
};
};