mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
0.98
+ Added Armored SUV to spawn tables + Lowered gear counts on armed suv to 400,20,10 + Removed boats from takistan DVS table + Moved metals trader options to a "trade metals" menu on each trader. + Changed old metals trader to new Hero only trader, will have certain clothes at first. and lower priced items. + Add crafting in progress lock to prevent duping. + changed wording of vault to safe + added Hero traders that only deal with 5000+ humanity + Updated to larger 10oz copper, silver, gold equipment icons. + Server Side changed allowed buildables to array
This commit is contained in:
32
dayz_code/actions/trade_metals.sqf
Normal file
32
dayz_code/actions/trade_metals.sqf
Normal file
@@ -0,0 +1,32 @@
|
||||
private["_none"];
|
||||
|
||||
{player removeAction _x} forEach s_player_parts;s_player_parts = [];
|
||||
s_player_parts_crtl = 1;
|
||||
|
||||
_metals_conversion = [
|
||||
|
||||
["ItemTinBar","ItemAluminumBar",1,2,"buy","Aluminum","Tin",108],
|
||||
["ItemAluminumBar","ItemTinBar",2,1,"buy","Tin","Aluminum",107],
|
||||
|
||||
["ItemCopperBar","ItemTinBar",1,2,"buy","Tin","Copper",106],
|
||||
["ItemTinBar","ItemCopperBar",2,1,"buy","Copper","Tin",105],
|
||||
|
||||
["ItemSilverBar","ItemCopperBar10oz",1,1,"buy","10oz Copper","Silver",104],
|
||||
["ItemCopperBar10oz","ItemSilverBar",1,1,"buy","Silver","10oz Copper",103],
|
||||
|
||||
["ItemGoldBar","ItemSilverBar10oz",1,3,"buy","10oz Silver","Gold",102],
|
||||
["ItemSilverBar10oz","ItemGoldBar",3,1,"buy","Gold","10oz Silver",101]
|
||||
|
||||
];
|
||||
|
||||
// Static Menu
|
||||
{
|
||||
diag_log format["DEBUG TRADER: %1", _x];
|
||||
_buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true, "",""];
|
||||
s_player_parts set [count s_player_parts,_buy];
|
||||
|
||||
} forEach _metals_conversion;
|
||||
|
||||
_cancel = player addAction ["Cancel", "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false, "",""];
|
||||
s_player_parts set [count s_player_parts,_cancel];
|
||||
|
||||
Reference in New Issue
Block a user