mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 01:49:19 +03:00
sync with DayZ 1.7.4 CE
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private["_activatingPlayer","_trader_id","_category","_action","_id","_type","_loc","_name","_qty","_cost","_qty","_sell","_cur","_order","_tid","_currency","_actionFile","_in","_out","_part","_cat","_cancel","_Display","_File","_textCurrency","_textPart"];
|
||||
private["_activatingPlayer","_trader_id","_category","_action","_id","_btype","_stype","_loc","_name","_qty","_cost","_qty","_sell","_order","_tid","_bcurrency","_scurrency","_actionFile","_in","_out","_part","_cat","_cancel","_Display","_File","_textCurrency","_textPart"];
|
||||
|
||||
{player removeAction _x} forEach s_player_parts;s_player_parts = [];
|
||||
|
||||
@@ -8,7 +8,7 @@ _activatingPlayer = _this select 1;
|
||||
_trader_id = (_this select 3) select 0;
|
||||
_category = (_this select 3) select 1;
|
||||
|
||||
diag_log format["DEBUG TRADER OBJ: %1", _trader];
|
||||
diag_log format["DEBUG TRADER OBJ: %1", _trader_id];
|
||||
|
||||
dayzTraderMenu = [_activatingPlayer,_trader_id,_category,_action];
|
||||
publicVariable "dayzTraderMenu";
|
||||
@@ -18,27 +18,28 @@ if (isServer) then {
|
||||
|
||||
waitUntil {!isNil "dayzTraderMenuResult"};
|
||||
|
||||
//diag_log format["DEBUG Sell: %1", dayzTraderMenuResult];
|
||||
diag_log format["DEBUG Sell: %1", dayzTraderMenuResult];
|
||||
{
|
||||
_id = parseNumber (_x select 0);
|
||||
_type = _x select 1;
|
||||
_loc = _x select 2;
|
||||
_name = _x select 3;
|
||||
_qty = parseNumber (_x select 4);
|
||||
_cost = parseNumber (_x select 5);
|
||||
_sell = parseNumber (_x select 6);
|
||||
_cur = _x select 7;
|
||||
_cat = _x select 8;
|
||||
_order = parseNumber (_x select 9);
|
||||
_tid = parseNumber (_x select 10);
|
||||
_currency = _x select 11;
|
||||
_actionFile = _x select 12;
|
||||
_header = _x select 0; // "TRD"
|
||||
_btype = _x select 1;
|
||||
_stype = _x select 2;
|
||||
_loc = _x select 3;
|
||||
_name = _x select 4;
|
||||
_qty = _x select 5;
|
||||
_cost = _x select 6;
|
||||
_bcurrency = _x select 7;
|
||||
_sell = _x select 8;
|
||||
_scurrency = _x select 9;
|
||||
_cat = _x select 10;
|
||||
_order = _x select 11;
|
||||
_tid = _x select 12;
|
||||
_actionFile = _x select 13;
|
||||
|
||||
_textPart = getText(configFile >> _type >> _name >> "displayName");
|
||||
_textPart = getText(configFile >> _stype >> _name >> "displayName");
|
||||
|
||||
_File = "\z\addons\dayz_code\actions\" + _actionFile + ".sqf";
|
||||
|
||||
_part_out = _cur;
|
||||
_part_out = _scurrency;
|
||||
_part_in = _name;
|
||||
_out = _sell;
|
||||
_in = 1;
|
||||
@@ -54,7 +55,7 @@ waitUntil {!isNil "dayzTraderMenuResult"};
|
||||
|
||||
} forEach dayzTraderMenuResult;
|
||||
|
||||
_cancel = player addAction ["Cancel", "\z\addons\dayz_code\actions\trade_cancel.sqf",["medical"], 99, true, false, "",""];
|
||||
_cancel = player addAction ["Cancel", "\z\addons\dayz_code\actions\trade_cancel.sqf",["medical"], 10, true, false, "",""];
|
||||
s_player_parts set [count s_player_parts,_cancel];
|
||||
|
||||
dayzTraderMenuResult = nil;
|
||||
|
||||
Reference in New Issue
Block a user