Skip to content

Commit

Permalink
Initialize CurrencyName in configVariables.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaydayz committed Aug 27, 2016
1 parent 04b6711 commit 755adc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
9 changes: 0 additions & 9 deletions SQF/dayz_code/actions/AdvancedTrading/config.sqf

This file was deleted.

7 changes: 0 additions & 7 deletions SQF/dayz_code/actions/AdvancedTrading/init.sqf
Expand Up @@ -44,13 +44,6 @@ if (isNil "Z_AdvancedTradingInit") then {
Z_BuyableArray = [];
Z_BuyingArray = [];

if (isNil 'CurrencyName' && Z_SingleCurrency) then {
CurrencyName = 'Coins'; // fallback
};
if (!Z_SingleCurrency) then {
CurrencyName = '';
};

/* end script config */

ZUPA_fnc_removeWeaponsAndMagazinesCargo = compile preprocessFileLineNumbers (Z_AT_FolderLocation + "\functions\zupa_fnc_removeWeaponsAndMagazinesCargo.sqf");
Expand Down
5 changes: 3 additions & 2 deletions SQF/dayz_code/configVariables.sqf
Expand Up @@ -57,8 +57,9 @@ Z_VehicleDistance = 40; // Distance that a vehicle needs to be to see it's conte
Z_AllowTakingMoneyFromBackpack = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your backpack.
Z_AllowTakingMoneyFromVehicle = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your vehicle.
Z_SingleCurrency = false; // Does your server use a single currency system?
Z_MoneyVariable = "cashMoney"; // If using a Single currency system (Z_SingleCurrency = true;), change this to whatever currency you are using.
DZE_MoneyStorageClasses = []; // If using a Single currency system (Z_SingleCurrency = true;), this is an array of object classes players can store coins in
CurrencyName = "Coins"; // If using single currency this is the currency display name.
Z_MoneyVariable = "cashMoney"; // If using single currency this is the variable name used to store player wealth.
DZE_MoneyStorageClasses = []; // If using single currency this is an array of object classes players can store coins in.

// Plot Management and Plot for Life
DZE_permanentPlot = true; // Plot ownership saves after death. Enables Plot for Life by @RimBlock and Plot Management by @DevZupa.
Expand Down

0 comments on commit 755adc7

Please sign in to comment.