mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-12 03:02:56 +03:00
0.7 + 1.7.5.M1D19
This commit is contained in:
@@ -92,9 +92,9 @@ diag_log format["DEBUG Buy: %1", dayzTraderMenuResult];
|
||||
|
||||
// trade_items.sqf | [part_out, part_in, qty_out, qty_in,_textPart,_textCurrency];
|
||||
if(_qty <= 0) then {
|
||||
_Display = format["Buy %1 (Out of Stock: %2)", _textPart, _qty];
|
||||
//_Display = format["Buy %1 (Out of Stock: %2)", _textPart, _qty];
|
||||
//_part = player addAction [_Display, "\z\addons\dayz_code\actions\trade_cancel.sqf",[], 0, true, false, "",""];
|
||||
_part = player addAction [_Display, _File,[_name,_bname,_out,_in,"buy",_textCurrency,_textPart,_header], _order, true, true, "",""];
|
||||
//_part = player addAction [_Display, _File,[_name,_bname,_out,_in,"buy",_textCurrency,_textPart,_header], _order, true, true, "",""];
|
||||
} else {
|
||||
_Display = format["Buy %1 for %2 %3 (Available: %4)", _textPart, _in, _textCurrency, _qty];
|
||||
_part = player addAction [_Display, _File,[_name,_bname,_out,_in,"buy",_textCurrency,_textPart,_header], _order, true, true, "",""];
|
||||
|
||||
@@ -21,6 +21,70 @@ if ("FoodSteakRaw" in magazines player) then {
|
||||
cutText [format[(localize "str_success_cooked"),_qty,(localize "STR_EQUIP_NAME_24")], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
//FoodmuttonRaw > FoodmuttonCooked
|
||||
if ("FoodmuttonRaw" in magazines player) then {
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
sleep _wait;
|
||||
for "_x" from 1 to _qty do {
|
||||
_hasFoodMeat = "FoodmuttonRaw" in magazines player;
|
||||
if (!_hasFoodMeat) exitWith {cutText [format[(localize "str_player_31"),_text,"cook"] , "PLAIN DOWN"]};
|
||||
player removeMagazine "FoodmuttonRaw";
|
||||
player addMagazine "FoodmuttonCooked";
|
||||
sleep 1;
|
||||
};
|
||||
cutText [format[(localize "str_success_cooked"),_qty,(localize "STR_EQUIP_NAME_24")], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
//FoodchickenRaw > FoodchickenCooked
|
||||
if ("FoodchickenRaw" in magazines player) then {
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
sleep _wait;
|
||||
for "_x" from 1 to _qty do {
|
||||
_hasFoodMeat = "FoodchickenRaw" in magazines player;
|
||||
if (!_hasFoodMeat) exitWith {cutText [format[(localize "str_player_31"),_text,"cook"] , "PLAIN DOWN"]};
|
||||
player removeMagazine "FoodchickenRaw";
|
||||
player addMagazine "FoodchickenCooked";
|
||||
sleep 1;
|
||||
};
|
||||
cutText [format[(localize "str_success_cooked"),_qty,(localize "STR_EQUIP_NAME_24")], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
//FoodrabbitRaw > FoodBaconCooked
|
||||
if ("FoodrabbitRaw" in magazines player) then {
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
sleep _wait;
|
||||
for "_x" from 1 to _qty do {
|
||||
_hasFoodMeat = "FoodrabbitRaw" in magazines player;
|
||||
if (!_hasFoodMeat) exitWith {cutText [format[(localize "str_player_31"),_text,"cook"] , "PLAIN DOWN"]};
|
||||
player removeMagazine "FoodrabbitRaw";
|
||||
player addMagazine "FoodBaconCooked";
|
||||
sleep 1;
|
||||
};
|
||||
cutText [format[(localize "str_success_cooked"),_qty,(localize "STR_EQUIP_NAME_24")], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
//FoodbaconRaw > FoodRabbitCooked
|
||||
if ("FoodbaconRaw" in magazines player) then {
|
||||
player playActionNow "Medic";
|
||||
[player,"cook",0,false] call dayz_zombieSpeak;
|
||||
_id = [player,70,true,(getPosATL player)] spawn player_alertZombies;
|
||||
sleep _wait;
|
||||
for "_x" from 1 to _qty do {
|
||||
_hasFoodMeat = "FoodbaconRaw" in magazines player;
|
||||
if (!_hasFoodMeat) exitWith {cutText [format[(localize "str_player_31"),_text,"cook"] , "PLAIN DOWN"]};
|
||||
player removeMagazine "FoodbaconRaw";
|
||||
player addMagazine "FoodRabbitCooked";
|
||||
sleep 1;
|
||||
};
|
||||
cutText [format[(localize "str_success_cooked"),_qty,(localize "STR_EQUIP_NAME_24")], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
/*
|
||||
_hasFoodMeat = "FoodSteakRaw" in magazines player;
|
||||
_qty = {_x == "ItemWaterbottleUnfilled"} count magazines player;
|
||||
|
||||
@@ -34,7 +34,11 @@ player playActionNow "PutDown";
|
||||
player removeMagazine _item;
|
||||
sleep 1;
|
||||
|
||||
_regen = round(random _regen);
|
||||
if (dayz_lastMeal < 3600) then {
|
||||
if (_item == "FoodSteakCooked") then {
|
||||
//_regen = _regen * (10 - (10 max ((time - _Cookedtime) / 3600)));
|
||||
};
|
||||
};
|
||||
|
||||
r_player_blood = r_player_blood + _regen;
|
||||
if (r_player_blood > r_player_bloodTotal) then {
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
//Remove action menu
|
||||
player removeAction s_player_stats;
|
||||
s_player_stats = -1;
|
||||
|
||||
//set stats enabled later use
|
||||
player setVariable ["StatsEnabled",true,false];
|
||||
|
||||
//Let Zeds know
|
||||
_id = [player,4,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
@@ -12,6 +5,7 @@ _id = [player,4,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
hintSilent parseText format ["
|
||||
<t size='1.20' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
|
||||
<t size='1.20' font='Bitstream' color='#5882FA'>Survived %7 Days</t><br/><br/>
|
||||
<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
|
||||
<t size='1.15' font='Bitstream' align='left'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
|
||||
<t size='1.15' font='Bitstream' align='left'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
|
||||
@@ -22,7 +16,8 @@ hintSilent parseText format ["
|
||||
(player getVariable['headShots', 0]),
|
||||
(player getVariable['humanKills', 0]),
|
||||
(player getVariable['banditKills', 0]),
|
||||
(player getVariable['humanity', 0])
|
||||
(player getVariable['humanity', 0]),
|
||||
(dayz_skilllevel)
|
||||
];
|
||||
|
||||
/*
|
||||
@@ -33,6 +28,3 @@ player createDiaryRecord ["MyDiary",["Stats", "Murders: <execute expression='pla
|
||||
player createDiaryRecord ["MyDiary",["Stats", "Bandits Killed: <execute expression='player getVariable['banditKills', 0]'</execute>"]];
|
||||
player createDiaryRecord ["MyDiary",["Stats", "Humanity: <execute expression='player getVariable['humanity', 0]'</execute>"]];
|
||||
*/
|
||||
|
||||
//Remove variable
|
||||
player setVariable ["StatsEnabled",false,false];
|
||||
|
||||
Reference in New Issue
Block a user