Jump to content

Issues: lose money on skin change & no coins dropped on death


Recommended Posts

So I installed it on my OverPoch Taviana server. Most of the functionality seems to work except I noticed a couple of bugs that make it atm too unplayable. 

1) Can't loot coins from dead bodies

When you die, you lose all the cash you have on you, but other players cannot loot it. Not sure if this was intentional or they actually should be able to loot it.

 

2) Lose all money from bank on skin change

This is a big one. As soon as you change your skin, all money from the bank is gone. I've heard some even lose the money you're carrying with you but I don't seem to have that problem at the moment.

 

So my question is, are these common problems (since I can read people having a lot similar problems) or is this just my server?

Did those functions work perfectly for someone who installed it on a completely vanilla Chernarus?

Link to comment
Share on other sites

here is my check_wallet.sqf

 

I USE SOULS HIVE NOT ZUPA'S

private ["_body", "_hisMoney", "_myMoney", "_killsH", "_test2", "_headShots", "_test","_playeridke","_humanity"];
_body = _this select 3;
// Check if closest player
_PlayerNear = _body call dze_isnearest_player;
if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]};
_name = _body getVariable ["bodyName","unknown"];
_hisMoney = _body getVariable ["cashMoney",0];

_myMoney = player getVariable ["cashMoney",0];
_myMoney = _myMoney + _hisMoney;
_body setVariable ["cashMoney", 0 , true];
player setVariable ["cashMoney", _myMoney , true];

systemChat format ['You took %1 coins, ID says %2 !',_hisMoney,_name];
sleep 2;

_cid =	player getVariable ["CharacterID","0"];

_cashMoney = player getVariable ["cashMoney",0];


			if(_cashMoney > 0) then{
				
				}else{
				_cashMoney = 0;
				};	


player setVariable ["moneychanged",1,true];	
Link to comment
Share on other sites

Thanks, this worked great, skin change now doesn't lose money.

 

But I'm still unable to loot money from a body. Can someone confirm if this is glitch from my end or if this isn't even in the feature list?

Double check your selfactions make sure that you have check wallet.

Link to comment
Share on other sites

Got this fixed now. Thanks for pointing out selfactions. I had a completely different selfactions file loaded from another script. Updated the the script, works like a charm now.

 

Thanks for the help much appreciated.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...