mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update for servers that had single currency 3.0 installed
Makes life easier for people upgrading 1051 databases. Otherwise their client will error out on loop in fn_selfActions because dayz_onBack will be a number when it should be a string. https://epochmod.com/forum/topic/28493-alpha-release-single-currency-30-storage-default-hive-no-global-banking/
This commit is contained in:
@@ -131,6 +131,14 @@ if (!_isNew) then {
|
|||||||
|
|
||||||
_isHiveOk = if (_hiveVer >= dayz_hiveVersionNo) then {true} else {false}; //EDITED
|
_isHiveOk = if (_hiveVer >= dayz_hiveVersionNo) then {true} else {false}; //EDITED
|
||||||
|
|
||||||
|
/*
|
||||||
|
if (count _inventory > 2 && {typeName (_inventory select 2) != "STRING"}) then {
|
||||||
|
//Pre 1.0.6 character with Zupa 3.0 coins where dayz_onBack should be. Wipe coins and log playerID and amount to RPT.
|
||||||
|
diag_log format["%1 - Updating pre 1.0.6 character inventory to add dayz_onBack. Coins have been wiped for PlayerID: %2 PreviousCoins:%3",__FILE__,_playerID,(_inventory select 2)];
|
||||||
|
_inventory set [2,""];
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
PVCDZ_plr_Login = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected,_group,_CharacterCoins,_playerCoins,_BankCoins];
|
PVCDZ_plr_Login = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected,_group,_CharacterCoins,_playerCoins,_BankCoins];
|
||||||
(owner _playerObj) publicVariableClient "PVCDZ_plr_Login";
|
(owner _playerObj) publicVariableClient "PVCDZ_plr_Login";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user