-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by rockybonne
-
-
I am removing the coins system for now because it isn't working properly on my server. maybe in the future i will try again but i won't force the players to carry all their coins on them
-
3 minutes ago, lwbuk said:
Bank are storage are seperate things.
Storagecoins are coins accessed through a storage device like a safe and are not global, i.e. They only exist on that object.
Bank is global and is stored in the player_data database and is global to all banking objects, be that a trader bank bot or ATM. I also have it set up to access the global bank through a safe as well as the local storage for that object.
i do not have global banking. i only have the basic coin system as i don't like global. when i access the menu on the lockbox the option is access bank. that is what im refering to
-
11 minutes ago, salival said:
I don't know what the trader config is, so stick with mine.
Also, you need both the locked and unlocked class names for storage as I had it in the variable I showed you.
A locked safe (vaultstoragelocked) when unlocked gets deleted and replaced with an unlocked safe (vaultstorage) same with lock boxes.
Please keep the variables the same as the GitHub repo unless you really know what you are doing, it will make problems like this not happen.
ok so i commented out those lines in the traderconfig.sqf and only used the variables.sqf.
this is my lines from that file.
variables.sqf
SpoilerZ_singleCurrency = true;
DZE_maintainCurrencyRate = 1000;
Z_bankVariable = "moneySpecial"; // If using single currency this is the variable name used to store object bank wealth.
Z_globalVariable = "GlobalMoney"; // If using single currency this is the variable name used to store coins globally.DZE_MoneyStorageClasses = DZE_LockableStorage; // List of classnames that players can bank with. If you want a specific class name added (i.e Plastic_Pole_EP1_DZ) consult the README.md on github.
ZSC_defaultStorageMultiplier = 200; // Default magazine count for banks objects that don't have storage slots (i.e Suitcase, Info_Board_EP1, Plastic_Pole_EP1_DZ)
ZSC_MaxMoneyInStorageMultiplier = 50000; // Multiplier for how much money a bank object can hold, example: 200 magazine slots in the object (or the default value above ^^) multiplied by the 50,000 multiplier is 10 million coin storage. (200*50000=10m coins)
coins on my person are persistent after a server restart. however when i go to access bank it shows 0/10000000 even though in object_data in my database it shows there is 3000000 in the "StorageCoins" column
-
1 hour ago, salival said:
Hello, yours got lost, my apologies.
In your.message you had this: DZE_MoneyStorageClasses = ["DZE_LockableStorage"]; // If using single currency this is an array of object classes players can store coins in.
this is not correct, this basically makes it look for a class name called "dze_lockablestorage" of which there is none
refer to this line for correct syntax: https://github.com/oiad/ZSC/blob/master/dayz_code/init/variables.sqf#L7
im on my phone at work inside a fuel tanker I'm welding so this is a little brief.
i feel like an idiot now.. thanks for the reply and all your hard work on this. i will test this out
Edit**
ok i changed the variables so that it looked like this..
DZE_MoneyStorageClasses = ["VaultStorageLocked","ItemLockbox"];
then i realized that i have two calls for this.. one within your variables.sqf and one inside the traderconfig.sqf inside the mission folder dayz_1.chernarus\Mods\cfg
these are the associated lines.
traderconfig.sqf
Spoiler// Trader Menu
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic. False enables database traders with legacy trader menu.
DZE_serverLogTrades = true; // Log trades to server RPT (sent with publicVariableServer on every trade)
DZE_GemOccurance = [["ItemTopaz",10], ["ItemObsidian",8], ["ItemSapphire",6], ["ItemAmethyst",4], ["ItemEmerald",3], ["ItemCitrine",2], ["ItemRuby",1]]; //Sets how rare each gem is in the order shown when mining (whole numbers only)
DZE_GemWorthArray = [["ItemTopaz",15000], ["ItemObsidian",20000], ["ItemSapphire",25000], ["ItemAmethyst",30000], ["ItemEmerald",35000], ["ItemCitrine",40000], ["ItemRuby",45000]]; // Array of gem prices, only works with config traders. Set DZE_GemWorthArray=[]; to disable return change in gems.
DZE_SaleRequiresKey = false; // Require the player has the key for a vehicle in order to sell it. The key can be in the player's toolbelt, backpack, or the vehicle's inventory.
DZE_TRADER_SPAWNMODE = false; // Vehicles purchased at traders will be parachuted in
Z_VehicleDistance = 40; // Max distance a vehicle can be sold or accessed from at a trader.
Z_AllowTakingMoneyFromBackpack = true; // Allow traders to take money from backpacks when buying with default currency.
Z_AllowTakingMoneyFromVehicle = true; // Allow traders to take money from vehicles when buying with default currency.
Z_SingleCurrency = "true"; // Does your server use a single currency system?
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 = ["VaultStorageLocked","ItemLockbox"]; // If using single currency this is an array of object classes players can store coins in.variables.sqf
SpoilerZ_singleCurrency = true;
DZE_maintainCurrencyRate = 1000;
Z_bankVariable = "moneySpecial"; // If using single currency this is the variable name used to store object bank wealth.
Z_globalVariable = "GlobalMoney"; // If using single currency this is the variable name used to store coins globally.DZE_MoneyStorageClasses = ["VaultStorageLocked","ItemLockbox"]; // List of classnames that players can bank with. If you want a specific class name added (i.e Plastic_Pole_EP1_DZ) consult the README.md on github.
ZSC_defaultStorageMultiplier = 200; // Default magazine count for banks objects that don't have storage slots (i.e Suitcase, Info_Board_EP1, Plastic_Pole_EP1_DZ)
ZSC_MaxMoneyInStorageMultiplier = 50000; // Multiplier for how much money a bank object can hold, example: 200 magazine slots in the object (or the default value above ^^) multiplied by the 50,000 multiplier is 10 million coin storage. (200*50000=10m coins)i am of the mindset to comment out those lines in the tradersconfig.sqf and use your lines however because they use different variables such as currencyname and z_moneyvariable i am not sure if i should comment those lines out.. as you are the man in charge of this i figured i would ask your opinion.. i know having multiple variables meaning the same thing with different names will cause nothing but a headache.
-
no thoughts on what might be causing the problems i posted on saturday?
-
hi salival, and any others who can help
i used to run a epoch server two years ago now i'm back and trying to recall all the tricks.
I am hosted by survival servers and I am using infistar full purchased directly from infistars' website with epoch 1.0.6.1. i have never used infistar before so im a noob to it.
now to my issues: (there are a few)
1) i am using your script here for the coins (not global banking) and the coins GUI work and it shows in the database on my character_data table but not my player_data table. and when i put them in the safe it shows in the object_data table however now after a restart the coins are gone. any suggestions?
with your script is this the correct configuration in the dayz_1.chernarus\mods\TraderConfig.sqf on these lines?
Z_SingleCurrency = true; // Does your server use a single currency system?
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 = ["DZE_LockableStorage"]; // If using single currency this is an array of object classes players can store coins in.2) I tried adding in the give coins to infistar from your previous post and it is not showing up in the infistar menu in game. in AHconfig.sqf i am a super admin and have added those lines to the super admin menu options within AT.sqf however i get nothing in game.
are there any additional steps? again im a noob to infistar so i may have not setup something else within the code.3) I am getting a TON of errors in my local rpt file that i have no idea where to go to correct it. (pastebin link at the bottom)
4) i notice in my server RPT that it is saying: (pastebin link below)
23:22:26 "infiSTAR.de - BIS_fnc_init done - AntiHack STARTING...!"
23:22:26 Warning Message: Script low_admins.sqf not found
23:22:26 Warning Message: Script normal_admins.sqf not found
23:22:26 Warning Message: Script super_admins.sqf not foundI assume this is because he included the following in AHconfig.sqf and there are no longer those files but i would like to confirm.
/* LOW ADMIN HERE */ _LAdmins =
/* NORMAL ADMIN HERE */ _NAdmins =
/* SUPER ADMIN HERE */ _SAdmins =
arma2oaserver.RPT = http://pastebin.com/NbHLryqg
armA2OA.RPT = http://pastebin.com/Guccp93Z
AT.sqf snipper = http://pastebin.com/7eCXhz7Z -
[Outdated] ZSC for Epoch 1.0.6.2 (And OverWatch 0.25)
in Gold Coin based Single Currency & Banking System
Posted
it's now working 100% on my server thanks for the help with that salival i have no idea why it wasn't working before. also got the WAI working, now researching other mods i used to use to see if there are updated versions