mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-19 18:06:32 +03:00
0.94
+ Added 10oz gold bars + Added recipes for crafting 1 and 10oz gold bars + typo fixed in new sell menu color coding. + test to see if m113 can have cargo + kill messages added to server side array + info board added: Recent Player Deaths from server array. + fixed size of bronze bars
This commit is contained in:
23
dayz_code/actions/list_playerDeaths.sqf
Normal file
23
dayz_code/actions/list_playerDeaths.sqf
Normal file
@@ -0,0 +1,23 @@
|
||||
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"];
|
||||
|
||||
// [ _trader_id, _category, _action ];
|
||||
_activatingPlayer = _this select 1;
|
||||
|
||||
diag_log format["DEBUG DEATH OBJ: %1", _this select 0];
|
||||
|
||||
["dayzPlayerDeaths",[_activatingPlayer]] call callRpcProcedure;
|
||||
|
||||
waitUntil {!isNil "dayzPlayerDeathsResult"};
|
||||
|
||||
diag_log format["DEBUG Death: %1", dayzPlayerDeathsResult];
|
||||
|
||||
if((count dayzPlayerDeathsResult) > 0) then {
|
||||
"Recent Player Deaths:" hintC dayzPlayerDeathsResult;
|
||||
} else {
|
||||
"Recent Player Deaths:" hintC "No recent Deaths.";
|
||||
};
|
||||
|
||||
|
||||
|
||||
// Clear Data maybe consider cacheing results
|
||||
dayzPlayerDeathsResult = nil;
|
||||
@@ -59,7 +59,9 @@ if (inflamed cursorTarget and _canDo) then {
|
||||
_recipe_ItemTinBar = [["TrashTinCan",6]];
|
||||
_recipe_ItemAluminumBar = [["ItemSodaEmpty",6]];
|
||||
_recipe_ItemBronzeBar = [["ItemCopperBar",3],["ItemTinBar",3]];
|
||||
|
||||
_recipe_ItemGoldBar10oz = [["ItemGoldBar",10]];
|
||||
_recipe_ItemGoldBar = [["ItemGoldBar10oz",1]];
|
||||
|
||||
_recipe_FoodChickenNoodle = [["FoodchickenRaw",1],["FoodCanPasta",1],["ItemWaterbottle",1]];
|
||||
_recipe_FoodBeefBakedBeans = [["FoodbeefRaw",1],["FoodCanBakedBeans",1]];
|
||||
|
||||
|
||||
@@ -92,13 +92,13 @@ diag_log format["DEBUG Buy: %1", dayzTraderMenuResult];
|
||||
_count = 0;
|
||||
if(_stype == "CfgVehicles") then {
|
||||
_count = position player nearObjects [_name,10];
|
||||
}
|
||||
};
|
||||
if(_stype == "CfgMagazines") then {
|
||||
_count = {_x == _name} count magazines player;
|
||||
}
|
||||
};
|
||||
if(_stype == "CfgWeapons") then {
|
||||
_count = {_x == _name} count items player;
|
||||
}
|
||||
};
|
||||
|
||||
if (_count > 0) then {
|
||||
_Display = format["Sell %1 for %2 %3 each", _textPart, _sqty, _textCurrency];
|
||||
|
||||
Reference in New Issue
Block a user