+ 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:
vbawol
2013-02-11 13:24:56 -06:00
parent 966308d686
commit bf6d87514b
22 changed files with 202 additions and 29 deletions

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

View File

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

View File

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