mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 02:16:29 +03:00
1.7.5.M1D15 remove unused files
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
private["_buy_item1","_buy_item2","_buy_item3","_buy_item4","_buy_item5","_buy_item6","_buy_item7"];
|
||||
|
||||
{player removeAction _x} forEach s_player_bank;s_player_bank = [];
|
||||
|
||||
_activatingPlayer = _this select 1;
|
||||
|
||||
_uid = getPlayerUID player;
|
||||
|
||||
if(isNil "dayzBankBalance") then {
|
||||
dayzPublishBank = [_uid,0,"deposit",_activatingPlayer];
|
||||
publicVariable "dayzPublishBank";
|
||||
if (isServer) then {
|
||||
dayzPublishBank call server_publishBank;
|
||||
};
|
||||
};
|
||||
|
||||
waitUntil {!isNil "dayzBankBalance"};
|
||||
|
||||
cutText [format["You have %1 Gold Bars",dayzBankBalance], "PLAIN DOWN"];
|
||||
|
||||
s_player_bankvault_crtl = -1;
|
||||
@@ -1,28 +0,0 @@
|
||||
private["_qty","_uid","_buy_item3","_buy_item4","_buy_item5","_buy_item6","_buy_item7"];
|
||||
|
||||
{player removeAction _x} forEach s_player_bank;s_player_bank = [];
|
||||
|
||||
_activatingPlayer = _this select 1;
|
||||
|
||||
_qty = {_x == "ItemGoldBar"} count magazines player;
|
||||
|
||||
if ("ItemGoldBar" in magazines player) then {
|
||||
for "_x" from 1 to _qty do {
|
||||
player removeMagazine "ItemGoldBar";
|
||||
};
|
||||
|
||||
_uid = getPlayerUID player;
|
||||
|
||||
dayzPublishBank = [_uid,_qty,"deposit",_activatingPlayer];
|
||||
publicVariable "dayzPublishBank";
|
||||
if (isServer) then {
|
||||
dayzPublishBank call server_publishBank;
|
||||
};
|
||||
|
||||
[player,"refuel",0,false] call dayz_zombieSpeak;
|
||||
cutText [format["Deposited %1 Gold Bars",_qty], "PLAIN DOWN"];
|
||||
} else {
|
||||
cutText ["Need Gold Bars" , "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
s_player_bankvault_crtl = -1;
|
||||
@@ -1,18 +0,0 @@
|
||||
private["_buy_item1","_buy_item2","_buy_item3","_buy_item4","_buy_item5","_buy_item6","_buy_item7"];
|
||||
|
||||
{player removeAction _x} forEach s_player_bank;s_player_bank = [];
|
||||
|
||||
// [part_out, part_in, qty_out, qty_in,];
|
||||
_buy_item1 = player addAction ["Withdraw 1 Gold Bar", "\z\addons\dayz_code\actions\bank_withdraw_gold.sqf",["ItemGoldBar",1], 99, true, false, "",""];
|
||||
_buy_item2 = player addAction ["Withdraw 3 Gold Bars", "\z\addons\dayz_code\actions\bank_withdraw_gold.sqf",["ItemGoldBar",3], 98, true, false, "",""];
|
||||
_buy_item3 = player addAction ["Withdraw 6 Gold Bars", "\z\addons\dayz_code\actions\bank_withdraw_gold.sqf",["ItemGoldBar",6], 97, true, false, "",""];
|
||||
_buy_item4 = player addAction ["Withdraw 12 Gold Bars", "\z\addons\dayz_code\actions\bank_withdraw_gold.sqf",["ItemGoldBar",12], 96, true, false, "",""];
|
||||
_buy_item8 = player addAction ["Cancel", "\z\addons\dayz_code\actions\trade_cancel.sqf",["bank"], 92, true, false, "",""];
|
||||
|
||||
s_player_bank set [count s_player_bank,_buy_item1];
|
||||
s_player_bank set [count s_player_bank,_buy_item2];
|
||||
s_player_bank set [count s_player_bank,_buy_item3];
|
||||
s_player_bank set [count s_player_bank,_buy_item4];
|
||||
s_player_bank set [count s_player_bank,_buy_item8];
|
||||
|
||||
s_player_bank_crtl = 1;
|
||||
@@ -1,41 +0,0 @@
|
||||
private["_buy_item1","_buy_item2","_buy_item3","_buy_item4","_buy_item5","_buy_item6","_buy_item7"];
|
||||
|
||||
_activatingPlayer = _this select 1;
|
||||
|
||||
_iarray = _this select 3;
|
||||
// "ItemGoldBar",1
|
||||
_part_out = (_iarray) select 0;
|
||||
_qty_out = (_iarray) select 1;
|
||||
|
||||
_uid = getPlayerUID player;
|
||||
|
||||
if(isNil "dayzBankBalance") then {
|
||||
dayzPublishBank = [_uid,0,"deposit",_activatingPlayer];
|
||||
publicVariable "dayzPublishBank";
|
||||
if (isServer) then {
|
||||
dayzPublishBank call server_publishBank;
|
||||
};
|
||||
};
|
||||
|
||||
waitUntil {!isNil "dayzBankBalance"};
|
||||
|
||||
_currentBalance = parseNumber (dayzBankBalance);
|
||||
|
||||
if(_currentBalance >= _qty_out) then {
|
||||
|
||||
for "_x" from 1 to _qty_out do {
|
||||
player addMagazine _part_out;
|
||||
};
|
||||
|
||||
dayzPublishBank = [_uid,_qty_out,"withdraw",_activatingPlayer];
|
||||
publicVariable "dayzPublishBank";
|
||||
if (isServer) then {
|
||||
dayzPublishBank call server_publishBank;
|
||||
};
|
||||
|
||||
[player,"refuel",0,false] call dayz_zombieSpeak;
|
||||
cutText [format["Withdrawn %1 Gold Bars",_qty_out], "PLAIN DOWN"];
|
||||
|
||||
} else {
|
||||
cutText [format["Insufficient funds you have %1 Gold Bars",dayzBankBalance], "PLAIN DOWN"];
|
||||
};
|
||||
@@ -1,30 +0,0 @@
|
||||
private["_item"];
|
||||
_item = _this;
|
||||
_config = configFile >> "CfgMagazines" >> _item;
|
||||
|
||||
_consume = getArray (_config >> "ItemActions" >> "SplitBar" >> "use");
|
||||
_create = getArray (_config >> "ItemActions" >> "SplitBar" >> "output");
|
||||
|
||||
_textConsume = getText(configFile >> "CfgMagazines" >> (_consume select 0) >> "displayName");
|
||||
_textCreate = getText(configFile >> "CfgMagazines" >> (_create select 0) >> "displayName");
|
||||
|
||||
_amountNeed = count _consume;
|
||||
_amountHas = {_x == (_consume select 0)} count magazines player;
|
||||
_amountMake = count _create;
|
||||
|
||||
_hasInput = (_amountNeed <= _amountHas);
|
||||
player playActionNow "PutDown";
|
||||
if (_hasInput) then {
|
||||
//Take Items
|
||||
{
|
||||
player removeMagazine _x;
|
||||
} forEach _consume;
|
||||
sleep 1;
|
||||
//Give Items
|
||||
{
|
||||
player addMagazine _x;
|
||||
} forEach _create;
|
||||
cutText [format[("You have successfully converted %1 %2."),_amountMake,_textCreate], "PLAIN DOWN"];
|
||||
} else {
|
||||
cutText [format[("You cannot convert that combination, you need %1 %2."),_amountNeed,_textConsume], "PLAIN DOWN"];
|
||||
};
|
||||
@@ -1,30 +0,0 @@
|
||||
private["_item"];
|
||||
_item = _this;
|
||||
_config = configFile >> "CfgMagazines" >> _item;
|
||||
|
||||
_consume = getArray (_config >> "ItemActions" >> "ReloadMag" >> "use");
|
||||
_create = getArray (_config >> "ItemActions" >> "ReloadMag" >> "output");
|
||||
|
||||
_textConsume = getText(configFile >> "CfgMagazines" >> (_consume select 0) >> "displayName");
|
||||
_textCreate = getText(configFile >> "CfgMagazines" >> (_create select 0) >> "displayName");
|
||||
|
||||
_amountNeed = count _consume;
|
||||
_amountHas = {_x == (_consume select 0)} count magazines player;
|
||||
_amountMake = count _create;
|
||||
|
||||
_hasInput = (_amountNeed <= _amountHas);
|
||||
player playActionNow "PutDown";
|
||||
if (_hasInput) then {
|
||||
//Take Items
|
||||
{
|
||||
player removeMagazine _x;
|
||||
} forEach _consume;
|
||||
sleep 1;
|
||||
//Give Items
|
||||
{
|
||||
player addMagazine _x;
|
||||
} forEach _create;
|
||||
cutText [format[("You have successfully converted %1 %2."),_amountMake,_textCreate], "PLAIN DOWN"];
|
||||
} else {
|
||||
cutText [format[("You cannot convert that combination, you need %1 %2."),_amountNeed,_textConsume], "PLAIN DOWN"];
|
||||
};
|
||||
Reference in New Issue
Block a user