mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
0.85a
This commit is contained in:
@@ -95,11 +95,6 @@ if (_bulkqty >= 1) then {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
|
||||
|
||||
dayzTradeResult = nil;
|
||||
@@ -109,8 +104,17 @@ if (_bulkqty >= 1) then {
|
||||
|
||||
_qty = {_x == _part_in} count magazines player;
|
||||
|
||||
|
||||
if (_qty >= _qty_in) then {
|
||||
|
||||
|
||||
if(_bos == 0) then {
|
||||
_qty = 1;
|
||||
};
|
||||
|
||||
// trade all items
|
||||
for "_x" from 1 to _qty do {
|
||||
|
||||
["dayzTradeObject",[_activatingPlayer,_traderID,_bos]] call callRpcProcedure;
|
||||
|
||||
diag_log format["DEBUG Starting to wait for answer: %1", dayzTradeObject];
|
||||
@@ -132,8 +136,11 @@ if (_bulkqty >= 1) then {
|
||||
} else {
|
||||
cutText [format[("Insufficient Stock %1"),_textPartOut] , "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
};
|
||||
dayzTradeResult = nil;
|
||||
|
||||
|
||||
} else {
|
||||
_needed = _qty_in - _qty;
|
||||
cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||
|
||||
Reference in New Issue
Block a user