mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-05-15 15:13:22 +03:00
@@ -17,8 +17,14 @@ _failed = false;
|
|||||||
|
|
||||||
_qty = {_x == _part_in} count magazines player;
|
_qty = {_x == _part_in} count magazines player;
|
||||||
|
|
||||||
|
// find total number of possible trades
|
||||||
|
_total_trades = floor (_qty / _qty_in);
|
||||||
|
|
||||||
if (_qty >= _qty_in) then {
|
if (_qty >= _qty_in) then {
|
||||||
|
|
||||||
|
// trade all items
|
||||||
|
for "_x" from 1 to _total_trades do {
|
||||||
|
|
||||||
// Take currency
|
// Take currency
|
||||||
for "_x" from 1 to _qty_in do {
|
for "_x" from 1 to _qty_in do {
|
||||||
player removeMagazine _part_in;
|
player removeMagazine _part_in;
|
||||||
@@ -48,6 +54,8 @@ if (_qty >= _qty_in) then {
|
|||||||
cutText [localize "STR_DAYZ_CODE_2", "PLAIN DOWN"];
|
cutText [localize "STR_DAYZ_CODE_2", "PLAIN DOWN"];
|
||||||
} else {
|
} else {
|
||||||
cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
|
cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
|
||||||
|
sleep 2;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class CfgMods
|
|||||||
hidePicture = 0;
|
hidePicture = 0;
|
||||||
hideName = 0;
|
hideName = 0;
|
||||||
action = "http://www.dayzepoch.com";
|
action = "http://www.dayzepoch.com";
|
||||||
version = "0.944";
|
version = "0.95";
|
||||||
hiveVersion = 0.96; //0.93
|
hiveVersion = 0.96; //0.93
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class RscDisplayMain : RscStandardDisplay
|
|||||||
class DAYZ_Version : CA_Version
|
class DAYZ_Version : CA_Version
|
||||||
{
|
{
|
||||||
idc = -1;
|
idc = -1;
|
||||||
text = "DayZ Epoch 0.944 (1.7.5.1)";
|
text = "DayZ Epoch 0.95 (1.7.5.1)";
|
||||||
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
||||||
};
|
};
|
||||||
class CA_TitleMainMenu;
|
class CA_TitleMainMenu;
|
||||||
|
|||||||
Reference in New Issue
Block a user