stefan.kueneth 4 Report post Posted June 11 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
0 Beowulfv 305 Report post Posted June 11 (edited) 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 June 11 by Beowulfv Share this post Link to post Share on other sites
0 DENA77 9 Report post Posted June 11 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
0 stefan.kueneth 4 Report post Posted June 11 Hey thanks, do I need both variants or is the solution from DENA77 enough? Share this post Link to post Share on other sites
0 PRJX 3 Report post Posted June 11 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 stefan.kueneth 4 Report post Posted June 13 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 stefan.kueneth 4 Report post Posted June 13 ok checked, with action = "_this call Fixes\Locker\ExileClient_gui_lockerDialog_show.sqf"; ist not working. menu for withdray not showing up Share this post Link to post Share on other sites
0 stefan.kueneth 4 Report post Posted June 13 Hello ? Share this post Link to post Share on other sites
0 Beowulfv 305 Report post Posted June 13 Let me play around with it real quick. I'll get back to you. Share this post Link to post Share on other sites
0 Beowulfv 305 Report post Posted June 13 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. 1 Share this post Link to post Share on other sites
0 stefan.kueneth 4 Report post Posted June 13 ok thanks. Let me know what to do next... Share this post Link to post Share on other sites
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