• 0
stefan.kueneth

10 Million Locker

Question

Hello Exiler,

how is it possible to realize a 10 Million locker. I know how to get to 999.999, but how to increase to 10 Million and how to Display right on Client without E6+... ?

Thanks für your replies....

Share this post


Link to post
Share on other sites

14 answers to this question

  • 0

You will need to create an overwrite for ExileClient_gui_lockerDialog_show in your mission pbo. You would want to write in an if then statement so if the amount of poptabs are higher than X, it will show a different format.

You can try something like this:

Spoiler

_lockerAmount = player getVariable ["ExileLocker", 0];
if (_lockerAmount > 999999) then
{
    _lockerAmount = format ["%1M", floor (_lockerAmount / 1000)];
};

Edited. That should be 1000 not 1 million for it to read correctly.

Edited by Beowulfv

Share this post


Link to post
Share on other sites
  • 0
5 hours ago, stefan.kueneth said:

Hello Exiler,

how is it possible to realize a 10 Million locker. I know how to get to 999.999, but how to increase to 10 Million and how to Display right on Client without E6+... ?

Thanks für your replies....

exile\mpmissions\Exile.Altis\config.cpp

class CfgLocker 
{
    numbersOnly = "0123456789";
    maxDeposit = 10000000;    // The amount of money in the ATM
};

 

Share this post


Link to post
Share on other sites
Advertisement
  • 0
2 hours ago, Beowulfv said:

You will need to create an overwrite for ExileClient_gui_lockerDialog_show in your mission pbo. You would want to write in an if then statement so if the amount of poptabs are higher than X, it will show a different format.

You can try something like this:

  Hide contents

_lockerAmount = player getVariable ["ExileLocker", 0];
if (_lockerAmount > 999999) then
{
    _lockerAmount = format ["%1M", floor (_lockerAmount / 1000000)];
};

 

You're gonna need this one to display it right, the cfglocker one just sets the max.. @stefan.kueneth

 

Share this post


Link to post
Share on other sites
  • 0

Hello, I created Exile.Malden\Fixes\Locker\ExileClient_gui_lockerDialog_show.sqf with this content:

 

Spoiler

_lockerAmount = player getVariable ["ExileLocker", 0];

if (_lockerAmount > 999999) then

{

_lockerAmount = format ["%1M", floor (_lockerAmount / 1000)];

};

and I putted it in config.cpp

Spoiler

class CfgExileCustomCode
{

//10 Milion Locker
ExileClient_gui_lockerDialog_show = "Fixes\Locker\ExileClient_gui_lockerDialog_show.sqf";

ExileClient_gui_selectSpawnLocation_show = "Custom\BaseRespawn\baserespawn.sqf";

};

and I setted the locker settings:

Spoiler

class CfgLocker

{

numbersOnly = "0123456789";

maxDeposit = 10000000;

};

 

But Now my ATM dialog does not working anymore. It just show ATM, but I can not open it...

 

I found this in config.cpp, what I have to change ?

Spoiler

class ATM

{

targetType = 2;

target = "Land_Atm_01_F";

class Actions

{

class Locker: ExileAbstractAction

{

title = "ATM";

condition = "true";

action = "_this call ExileClient_gui_lockerDialog_show";

};

};

};

 

would this be correct ?

action = "_this call Fixes\Locker\ExileClient_gui_lockerDialog_show.sqf";

 

thanks

Share this post


Link to post
Share on other sites
  • 0

So after looking at ExileClient_gui_lockerDialog_show more I see that it pulls its numbers from ExileClient_util_string_exponentToString which is basically a calculator script. So right now I am playing around with it trying to get it to print the numbers in the correct format. But that is where you will want to make your edits.

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.