Senith Posted August 11, 2014 Report Share Posted August 11, 2014 Still nothing on the changing of clothing not showing your bank ammounts?.... Link to comment Share on other sites More sharing options...
kat Posted August 14, 2014 Report Share Posted August 14, 2014 Having players Dupe coins via "check wallet". Two players are selecting the option at the same time and they're both able to get the coins associated with the dead body. Could someone else could try this just to see if its just me or a universal thing? Using build 1.1 without Souls Hive.ext. Thanks. Link to comment Share on other sites More sharing options...
Sukkaed Posted August 14, 2014 Report Share Posted August 14, 2014 You need to block the check wallet option if there is another player near. Link to comment Share on other sites More sharing options...
Soul Posted August 14, 2014 Report Share Posted August 14, 2014 You need to block the check wallet option if there is another player near. exactly much like the anti backpack duping you can try adding this in check_wallet.sqf find: _body = _this select 3; add below: // Check if closest player _PlayerNear = _body call dze_isnearest_player; if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]}; kat 1 Link to comment Share on other sites More sharing options...
Pro_Speedy Posted August 14, 2014 Report Share Posted August 14, 2014 How would you make AI have a randon amount of coins on their body? Link to comment Share on other sites More sharing options...
Pro_Speedy Posted August 14, 2014 Report Share Posted August 14, 2014 Also i have looked through all fiels but can't find it where do i change it in the trader from Zupa coins to just "coins" ? thanks Link to comment Share on other sites More sharing options...
Soul Posted August 14, 2014 Report Share Posted August 14, 2014 i really hate it when people just copy paste without reading what the code actually says or try to process the code in their heads and evaluate the code itself. if you had done that you would have known that what you are looking for is in your variables.sqf file... YuriLowell 1 Link to comment Share on other sites More sharing options...
Pro_Speedy Posted August 14, 2014 Report Share Posted August 14, 2014 Just an FYI during the whole installation process i was editing ALL of the files using Beyondcomapre like you said so please. It was just me looking in every other file apart from that one Sorry What about the AI thing? Thank you Soul 1 Link to comment Share on other sites More sharing options...
Soul Posted August 14, 2014 Report Share Posted August 14, 2014 you would have to open the file that creates the ai units and assign _unit needs to be whatever the ai mod/script uses as variable to do the createVehicle... _unit setvariable["cashMoney"_cashvalue,true]; you could do a random number for the variable _cashvalue Link to comment Share on other sites More sharing options...
Coco-Nuts Posted August 14, 2014 Report Share Posted August 14, 2014 Thx soul for the tips about the wallet dup. I got another bug with the "Take clothe" script. If a player take clothe from another player before check wallet, the amount of wallet on the body say 0 He has to check wallet before take clothe. Any idea ? Link to comment Share on other sites More sharing options...
Pro_Speedy Posted August 14, 2014 Report Share Posted August 14, 2014 you would have to open the file that creates the ai units and assign _unit needs to be whatever the ai mod/script uses as variable to do the createVehicle... _unit setvariable["cashMoney"_cashvalue,true]; you could do a random number for the variable _cashvalue Ok i am not very good at this sort of stuff i tried this in DZMSAISpawn.sqf _cash = ["1000","500","5000"]; //code //code _cash = cashvalue call BIS_fnc_selectrandom; _unit setvariable ["cashMoney", _cashvalue, true]; Probably all wrong but i tried and no luck i get this error _key call server_hiveWrite>14:40:01 Error Undefined variable in expression: _cashmoney14:40:01 File z\addons\dayz_server\compile\server_playerSync.sqf, line 19314:40:01 Error in expression <_killsH,_killsB,_currentModel,_humanity,_cashMoney];_key call server_hiveWrite>14:40:01 Error position: <_cashMoney]; Link to comment Share on other sites More sharing options...
Pro_Speedy Posted August 15, 2014 Report Share Posted August 15, 2014 Ok i am not very good at this sort of stuff i tried this in DZMSAISpawn.sqf _cash = ["1000","500","5000"]; //code //code _cash = cashvalue call BIS_fnc_selectrandom; _unit setvariable ["cashMoney", _cashvalue, true]; Probably all wrong but i tried and no luck i get this error _key call server_hiveWrite>14:40:01 Error Undefined variable in expression: _cashmoney14:40:01 File z\addons\dayz_server\compile\server_playerSync.sqf, line 19314:40:01 Error in expression <_killsH,_killsB,_currentModel,_humanity,_cashMoney];_key call server_hiveWrite>14:40:01 Error position: <_cashMoney]; Bump on this Link to comment Share on other sites More sharing options...
Soul Posted August 15, 2014 Report Share Posted August 15, 2014 Ok i am not very good at this sort of stuff i tried this in DZMSAISpawn.sqf _cash = ["1000","500","5000"]; //code //code _cash = cashvalue call BIS_fnc_selectrandom; _unit setvariable ["cashMoney", _cashvalue, true]; Probably all wrong but i tried and no luck i get this error _key call server_hiveWrite>14:40:01 Error Undefined variable in expression: _cashmoney14:40:01 File z\addons\dayz_server\compile\server_playerSync.sqf, line 19314:40:01 Error in expression <_killsH,_killsB,_currentModel,_humanity,_cashMoney];_key call server_hiveWrite>14:40:01 Error position: <_cashMoney]; _cashLoot = round(random 100); _unit setVariable["cashMoney"_cashLoot,true]; change 100 to whatever you want as maximum. You could go as far as making it higher or lower depending on the ai type it is... with a few if statements. i do think that the checkWallet fn selfaction needs to be modified or a new one needs to be made to let you even get the check wallet action on a dead ai body but i havent tested any of this. Link to comment Share on other sites More sharing options...
Coco-Nuts Posted August 15, 2014 Report Share Posted August 15, 2014 Hello, Sometimes, I got a bug when my server restart. My players loose the amount on the wallet when the server restart but not on the bank. Players have to put the cash on the bank before the restart? Any idea ? Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted August 21, 2014 Report Share Posted August 21, 2014 Got this error:16:28:31 Error in expression <urrency = _this select 5;_qty = _this select 6;_clientID = owner _player;_p>16:28:31 Error position: <select 6;_clientID = owner _player;_p>16:28:31 Error Zero divisor16:28:31 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 9 Traders are completely broken, anyone help? Link to comment Share on other sites More sharing options...
Storm Posted August 21, 2014 Report Share Posted August 21, 2014 Got this error:16:28:31 Error in expression <urrency = _this select 5;_qty = _this select 6;_clientID = owner _player;_p>16:28:31 Error position: <select 6;_clientID = owner _player;_p>16:28:31 Error Zero divisor16:28:31 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 9 Traders are completely broken, anyone help? That is a known bug, it doesn't affect the traders in any way. You most likely didn't follow the tutorial right or didn't do the server traders right either. Please don't just replace your server traders with Zupa's, if you are using instance 11, as Zupa used instance 17 for the traders you will need to find or make it work for 11. If you look around you will find that users have already made this file which works for instance 11. Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted August 21, 2014 Report Share Posted August 21, 2014 That is a known bug, it doesn't affect the traders in any way. You most likely didn't follow the tutorial right or didn't do the server traders right either. Please don't just replace your server traders with Zupa's, if you are using instance 11, as Zupa used instance 17 for the traders you will need to find or make it work for 11. If you look around you will find that users have already made this file which works for instance 11. Well i got rid of the trader problem but now ive got everything back up to speed all of the coins are now labelled as: any. Here: and also here: I also had the single currency working for a while and then once I tried to edit the CFGTraders, i pretty much bugged out. So i reverted, now trader have the any error. :/ Link to comment Share on other sites More sharing options...
Storm Posted August 22, 2014 Report Share Posted August 22, 2014 Well i got rid of the trader problem but now ive got everything back up to speed all of the coins are now labelled as: any. Here: and also here: I also had the single currency working for a while and then once I tried to edit the CFGTraders, i pretty much bugged out. So i reverted, now trader have the any error. :/ Did you make sure that you have the NumerText.sqf and NumberDigits.sqf in your custom folder? Link to comment Share on other sites More sharing options...
AnthonyJr Posted August 22, 2014 Report Share Posted August 22, 2014 The bank does not save it always resets to 0 Edit: This also happens when you have money on you its just not saving at all. Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted August 22, 2014 Report Share Posted August 22, 2014 Did you make sure that you have the NumerText.sqf and NumberDigits.sqf in your custom folder? Whats that? and where do i get that? Nevermind, yeah thats in. Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted August 22, 2014 Report Share Posted August 22, 2014 Well i got rid of the trader problem but now ive got everything back up to speed all of the coins are now labelled as: any. Here: and also here: I also had the single currency working for a while and then once I tried to edit the CFGTraders, i pretty much bugged out. So i reverted, now trader have the any error. :/ Found the problem. Not too sure why it wasn't working before but these changes seemed to speed everything up for the script. In your custom compiles: Made sure you've added this at the top: BIS_fnc_numberDigits = compile preprocessFileLineNumbers "custom\numberDigits.sqf"; BIS_fnc_numberText = compile preprocessFileLineNumbers "custom\numberText.sqf"; Then also in your variables I found that this made the single currency system more responsive and faster with these variables: Replace this: DZE_ATM = ["WHATEVER YOUR ITEM IS"]; // objects where u can bank, add them here if u want extra's. with this: CurrencyName = "CHANGE ME"; // name of your currency DZE_ATM = ["CHANGE ME"]; // objects where u can bank, add them here if u want extra's. LimitOnBank = false; // false = no limits, true = banks are limited on the value below MaxBankMoney = 1000000; // limit on bank for normal players DonatorListZupa = ["CHANGE ME"]; // bigger bank PUID MaxDonatorBankMoney = 1000000; // Bank size donators Since the currency system is now working for myself, also with the added configs which also improves the currency system by changing some values. Which is great. calamity 1 Link to comment Share on other sites More sharing options...
YuriLowell Posted August 22, 2014 Report Share Posted August 22, 2014 Anyone else getting this error on the RPT? 13:00:12 "EPOCH SERVERTRADE: Player: Name (xxxxxxxxxxxxx) bought a in/at trader city Klen for 2000x Gold Coins" 13:00:12 Error in expression <for %5", _name, (getPlayerUID _player), _classname, _traderCity, _price]; } else> 13:00:12 Error position: <_classname, _traderCity, _price]; } else> 13:00:12 Error Undefined variable in expression: _classname 13:00:12 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 15 Link to comment Share on other sites More sharing options...
AnthonyJr Posted August 22, 2014 Report Share Posted August 22, 2014 Anyone else getting this error on the RPT?13:00:12 "EPOCH SERVERTRADE: Player: Name (xxxxxxxxxxxxx) bought a in/at trader city Klen for 2000x Gold Coins" 13:00:12 Error in expression <for %5", _name, (getPlayerUID _player), _classname, _traderCity, _price]; } else> 13:00:12 Error position: <_classname, _traderCity, _price]; } else> 13:00:12 Error Undefined variable in expression: _classname 13:00:12 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 15 Yea I have no idea how to fix it, it doesn't save the coins... Correct? Link to comment Share on other sites More sharing options...
Rocu Posted August 23, 2014 Report Share Posted August 23, 2014 I have an issue where the system doesn't save bank account numbers for new players. I kept an eye on this and noticed that if someone starts from a clean slate, in database player_data and character_data is successfully created, but not banking_data. When the new player logs out, server restarts, logs back in, only THEN banking_data is created. Therefor no new players within the first restart interval can deposit money into the bank. Anyone have an idea where the issue might be? Link to comment Share on other sites More sharing options...
ARC_Solo Posted August 23, 2014 Report Share Posted August 23, 2014 Traders Are broken. I can't talk to them at all. This is my RTP error Error Undefined variable in expression: servertraders File mpmissions\__CUR_MP.Tavi\Compile\fn_selfActions.sqf, line 608 Error in expression if (s_givemoney_d> Error position: if (s_givemoney_d>))> This is line 608 of selfactions //Player Deaths code above // Zupa- SC - Give Money - Line 607 if (_isMan and _isAlive and !_isZombie and !_isAnimal and !(_traderType in serverTraders)) then { if (s_givemoney_dialog < 0) then { s_givemoney_dialog = player addAction [format["Give Money to %1", (name _cursorTarget)], "gold\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""]; }; } else { player removeAction s_givemoney_dialog; s_givemoney_dialog = -1; //Fuel Pump }; Any solutions? I had Zupa's traders working. I'm also running this on Taviana. Linked all the trader tilds to my own category cfg trader Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now