Jump to content

[PROJECT] Gold Coin based Single Currency & Banking System


Recommended Posts

Currently trying to add my own banking areas using infostands.

 

Changed in the variables

 

DZE_ATM = ["Infostand_2_EP1"]; // objects where u can bank, add them here if u want extra's.
 
 
ATM.sqf
 
if (isServer) then {


_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["Infostand_2_EP1", [8256.5879, 15477.02, 0.21690401], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _this setDir 139.86572;
  _this setPos [8256.5879, 15477.02, 0.21690401];
};
};

 

Anyone have an idea why this sin't working?

Link to comment
Share on other sites

<snip>

It will put infostands at trader cities.This is for infostands only, just replace your bankzones\banks.sqf with this.

 

 
I am already working on mine.

 

Thanks for sharing your modification. I (and probably many others here too) will also be interested in the second part you are working on.

Link to comment
Share on other sites

Currently trying to add my own banking areas using infostands.

 

Changed in the variables

 

DZE_ATM = ["Infostand_2_EP1"]; // objects where u can bank, add them here if u want extra's.
 
 
ATM.sqf
 
if (isServer) then {


_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["Infostand_2_EP1", [8256.5879, 15477.02, 0.21690401], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _this setDir 139.86572;
  _this setPos [8256.5879, 15477.02, 0.21690401];
};
};

 

Anyone have an idea why this sin't working?

Whats the issue?

Are they not spawning? Is there no scroll menu?

We need to know, as no one can guess whats happening.

Link to comment
Share on other sites

So to do that I remove the SQL event for set damage and change 

 

CleanupPlacedAfterDays = 6

to

CleanupPlacedAfterDays = -1

 

In my HiveEXT right?

Yes, that is correct.

 

Also a note, I believe Zupa might have already added a max banking to the system already.

Still testing right now.

Link to comment
Share on other sites

Thanks for sharing your modification. I (and probably many others here too) will also be interested in the second part you are working on.

Got the second one working as well.

Will be releasing here soon

 

 

How did you set a limit Jun?

I'll release my max banking amount here in a bit.

 

 

 

*edit

Here is my bank max (Sets how much you can have in the bank at one time)

Open up your init.sqf put this somewhere (Peripherally right above "DZE_ConfigTrader  = true;")

BankMax 						= 350000; //Sets the max amount to have in bank

Next add this to your custom folder

https://github.com/UPGStorm/Customs/blob/master/numberDigits.sqf

https://github.com/UPGStorm/Customs/blob/master/numberText.sqf

 

Open up compiles Add this up at the very top above "if (!isDedicated) then {"

BIS_fnc_numberDigits 	= compile preprocessFileLineNumbers "custom\numberDigits.sqf";
BIS_fnc_numberText 	= compile preprocessFileLineNumbers "custom\numberText.sqf"; 

Next open up gold\init.sqf

Find this

if(   LimitOnBank  && ((_bank + _amount ) >  MaxBankMoney)) then{

Above that code put this

if ((_bank + _amount) > BankMax) exitWith {
	cutText [format["The maximum deposit amount is %1", [BankMax] call BIS_fnc_numberText], "PLAIN DOWN"];
	};

That's it, all done.

This will also make it so that commas will show up as well.

I am currently still trying to get commas to work in dialogs and trader menus.

Link to comment
Share on other sites

 

Open up variables

 

Make sure it looks like this

disableSerialization;
DZE_ATM = ["Infostand_2_EP1"]; // objects where u can bank, add them here if u want extra's.

 

Yep, that's what it looks like.

 

Working now for some reason. Odd.

 

I'll have to recheck it after a restart again.

Link to comment
Share on other sites

How do you guys like it?

I will release it soon.

25c250503c.jpg

 

12784c123c.jpg

 

 

Is anyone getting any rpt errors like

 4:38:37 Error in expression <urrency =	_this select 5;
_qty =		_this select 6;
_clientID = 	owner _player;
_p>
 4:38:37   Error position: <select 6;
_clientID = 	owner _player;
_p>
Link to comment
Share on other sites

 

How do you guys like it?

I will release it soon.

25c250503c.jpg

 

12784c123c.jpg

 

 

Is anyone getting any rpt errors like

 4:38:37 Error in expression <urrency =	_this select 5;
_qty =		_this select 6;
_clientID = 	owner _player;
_p>
 4:38:37   Error position: <select 6;
_clientID = 	owner _player;
_p>

 

 

Looks good dude. Nice work :)

Link to comment
Share on other sites

Here is how to get the commas in trader menus, bank dialogs, give player dialog and hud.

If you don't already have bis_fns number already take a look at this: 

If you have already done this part then do this part

 

Open up init.sqf in your mpmissions main file

Add this

coins							= "Coins";

Above

DZE_ConfigTrader 				= true;

Next open up the gold folder

Replace gold\init.sqf with this one

https://github.com/UPGStorm/Customs/blob/master/gold/init.sqf

 

Replace gold\player_traderMenu.sqf with this one

https://github.com/UPGStorm/Customs/blob/master/gold/player_traderMenu.sqf

 

Next open up addons\PlayerHud\playerHud.sqf

Replace

AsReMixhud_headshots,//3

with

[AsReMixhud_headshots] call BIS_fnc_numberText,

That is it, all done.

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
×
×
  • Create New...