Jump to content

Recommended Posts

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

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"]};
Link to comment
Share on other sites

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

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: _cashmoney

14:40:01 File z\addons\dayz_server\compile\server_playerSync.sqf, line 193

14: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

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: _cashmoney

14:40:01 File z\addons\dayz_server\compile\server_playerSync.sqf, line 193

14: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

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: _cashmoney

14:40:01 File z\addons\dayz_server\compile\server_playerSync.sqf, line 193

14: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

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 divisor
16: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

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 divisor

16: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

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:

2014-08-22_00002_zps13934d46.jpg

 

and also here:

2014-08-22_00001_zpsa8c73414.jpg

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

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:

2014-08-22_00002_zps13934d46.jpg

 

and also here:

2014-08-22_00001_zpsa8c73414.jpg

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

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:

2014-08-22_00002_zps13934d46.jpg

 

and also here:

2014-08-22_00001_zpsa8c73414.jpg

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.

Link to comment
Share on other sites

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...