## Recommended Posts

So here it is, as requested. An addon for NoxSicarius's Admin Tools V1.9.1

What does this script do?

• View player's cash & bank balance

Simple as that. Saves you a lot of time when testing/compensating/rewarding or whatever.

What do I need for this addon?

• Zupa's + Soul's
• NoxSicarius's

Note: this script uses the same hud files as Zupa's Single Currency script. You must have those files in order for this addon to work.

Installation

2. UnPbo/extract your mission's .pbo file

The full path should look something like this: C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\MPMissions\DayZ_Overpoch_2.Tavi\admintools\tools\Currency\

4. Open file description.ext from your mission's root folder

Add to the bottom of the file:
//Single Currency manipulation addon by Rocu


Close & save description.ext

Find:

_EXECscript8 = 'player execVM "admintools\tools\AdminBuild\%1"';


//Single Currency manipulation addon by Rocu


Find:

["Humanity Menu >>",[],"#USER:HumanityMenu", -5, [["expression", ""]], "1", "1"],


["Currency", [],"", -5, [["expression", format[_EXECscript1,"Currency\currency.sqf"]]], "1", "1"],


7. That's it! You're done.

Screenshots

Note that removing more money than someone actually has just makes the target's currency go to 0 instead of a negative value. However if you have bank limit activated it does NOT listen to that. It will just go above bank limit. This is just to give the admins more 'play room' with this addon if they want to test with values above the limit whereas a negative value will just cause errors.

Warning! Before applying this script make sure to backup EVERYTHING (including database). I have not tested this script with every single patch/mod/script that there is so the outcome might be different if you have drastically different mod files than the original.

This has been tested on:

Epoch Chernarus 1.0.5.1 / Arma Patch 1.63.125548

Overpoch Chernarus / Arma Patch 1.63.125548

Overpoch Taviana 2.0 / Arma Patch 1.63.125548

I have NOT tested this script with Soul's other DLL versions. If people other than Soul's V1 DLL can test this out let me know how it turns out. But I know for a fact that it won't work with Zupa's 999 DLL. If people demand I can make a separate version for that (not really that hard) but I think that DLL is obsolete and should not be used at all.

Credits

Zupa for making the Single Currency script of course

Soul for marvelous dll files

mgm for requesting this script

All the helpful people @ Epoch forums

##### Share on other sites

I'm that guy and massive thanks!

##### Share on other sites

I'm that guy and massive thanks!

Right, ofcourse. You're welcome :D

##### Share on other sites

Awesome addon, im gonna do some tests to see if i can integrate it into Infistar!

Edit: Here's a little method of how to add it to infistar.. It's a little rusty but maybe some can pick it up:

Mission PBO > addons
(so your directory will be: Mission pbo > addons > currency > .sqfs....)

once you have done that, go to your description.ext, and got right to the bottom and add this:

#include "addons\Currency\currency_dialog.hpp"


Server pbo > Init > AH.sqf


once there, find this line:

admin_fillSpecificMenu =


once found that block of script, add this somewhere inside of the code:

		adminadd = adminadd + ["============================================================","","0","1","0","0",[]];


this is my example:

admin_fillSpecificMenu =
{
inSub = false;
_ctrl = 2 call getControl;
lbclear _ctrl;
_ctrl ctrlSetFont "TahomaB";
call admin__FILL_MENUS;

Once you have added it, find this:

	adminHumanityPlus =


	// Currency Menu by: Rocu. Edited for infistar by: Captain Chunk!
{
};


Here's a video demonstration of the script in action:

##### Share on other sites

Edit: Here's a little method of how to add it to infistar.. It's a little rusty but maybe some can pick it up:

That's pretty sweet, didn't know it was that easy to make it compatible with infiSTAR.

##### Share on other sites

That's pretty sweet, didn't know it was that easy to make it compatible with infiSTAR.

To be honest, I didnt even know. i thought it was gonna be a big job. But apparently not. :P

Beginners luck on scripting right there.

##### Share on other sites

That's pretty sweet, didn't know it was that easy to make it compatible with infiSTAR.

.

infistar is a script like any other. Only he asks money for it

##### Share on other sites

.

infistar is a script like any other. Only he asks money for it

Yeah well, I just figured he had his AH built a lot differently.

##### Share on other sites

Can we make it compatible with infistar's play list.

Ex:

click on players name on infistar menu > click on menu to give him coins

##### Share on other sites

Can we make it compatible with infistar's play list.

Ex:

click on players name on infistar menu > click on menu to give him coins

I would do it but I don't have infistar's AH so someone with that should do it.

##### Share on other sites

Hey! Good work!

to prevent Battleye kicks u should add

!"PVDZE_bank_Save"  in line 5 of puplicvariable.txt

and for all who use Zupa's Hive999

u should change all "cashMoney" and "bankMoney"   to

in the "currency_funktions.sqf"

this works fine for me and hopefully this is helpful for some others

Have a nice Day!

##### Share on other sites

Hey! Good work!

to prevent Battleye kicks u should add

!"PVDZE_bank_Save"  in line 5 of puplicvariable.txt

and for all who use Zupa's Hive999

u should change all "cashMoney" and "bankMoney"   to

in the "currency_funktions.sqf"

this works fine for me and hopefully this is helpful for some others

Have a nice Day!

Hi hi, thanks. bank_Save public variables should actually be in the publicvariable.txt already because it's part of the original installation process. And you're right about the 999 Hive part.

##### Share on other sites

Oh! Didnt know that with the BE Filters because i run my own custom ones so i didnt notice that :)

##### Share on other sites

New version for Admin Tools came out yesterday (v1.9) . I updated the first post so it's compatible with the latest Admin Tools now. Only thing that changes was first section of Part 5 in my installation instructions. (also don't forget to copy the Currency folder if you delete the old admintools folder)

If you're planning to update Admin Tools from v1.8.2 to v1.9 you only have to do everything from Part 5 to Part 6.

##### Share on other sites

Can we make it compatible with infistar's play list.

Ex:

click on players name on infistar menu > click on menu to give him coins

isn't that what I already did? 0.o

##### Share on other sites

Right, ofcourse. You're welcome :D

acts like its working but I get no money...

same thing with the smelting system I added..

is there some way I need to link to database for money to get updated in database.

i am new to this coin  system. I just added Zupa's  and thats it.

what is Soul's   ?????  is this what I need to install to get  money to goto my bank ? or even wallet..

I sold a car I get 10000 coins I deposite it just fine.

but anything that I try to add more coins like this script or smelting I get nothing..

##### Share on other sites

acts like its working but I get no money...

same thing with the smelting system I added..

is there some way I need to link to database for money to get updated in database.

i am new to this coin  system. I just added Zupa's  and thats it.

what is Soul's &do=embed' frameborder='0' data-embedContent>  ?????  is this what I need to install to get  money to goto my bank ? or even wallet..

I sold a car I get 10000 coins I deposite it just fine.

but anything that I try to add more coins like this script or smelting I get nothing..

As the OP states:

What do I need for this addon?

• Zupa's  + Soul's

Yes, calamity, that is something that you need to install for this to work. As it says in the requirements.

Confused what this is? Well worry no more friend, we have an explanation for you:

Scripts designed for v1.1 Single Currency only work on that version. Scripts designed for Soul's v2.0 Single Currency only work on that version. So before you install a script you have to actually make sure you have the right version. Scripts can be easily converted from v1.1 to v2.0 though so it's not a big deal. But they do NOT work if you mix up your versions.

##### Share on other sites

Is there a way to add this to infistar?

##### Share on other sites

Is there a way to add this to infistar?

If you'd actually read through the topic you'll find that the 4th post explains this:

##### Share on other sites

Can we make it compatible with infistar's play list.

Ex:

click on players name on infistar menu > click on menu to give him coins

To add it to the infiSTAR menu with out any additional files you need to set the amount to give per click and cant enter an amount to give or view there balance etc.

for those who want to do it that way this is how you do it.

This gives you the option to give and remove 100,1000,10000 & 100000 coins to a selected player

Find

                adminadd = adminadd + ["  Give Ammo",admin_give_ammo,"0","0","0","1",[0,0.8,1,1]];


On the line before this add

		adminadd = adminadd + ["  Give -10000 Humanity",adminHumanityMinus10000,"0","0","0","1",[0,0.8,1,1]];


Find

	adminHumanityMinus =
{
{
if (name _x == _this select 0) then
{
_humanity = _x getVariable['humanity',0];
_x setVariable['humanity',_humanity-2500,true];
hint format['Gave %1 -2500 Humanity!',_this select 0];

_sl = format['%1 minus 2500 Humanity to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};


	adminCashAdd100 =
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash+100,true];
hint format ['Gave %1 100 Coins!',_this select 0];

_sl = format['%1 100 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash+1000,true];
hint format ['Gave %1 1000 Coins!',_this select 0];

_sl = format['%1 1000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash+10000,true];
hint format ['Gave %1 10000 Coins!',_this select 0];

_sl = format['%1 10000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash+100000,true];
hint format ['Gave %1 100000 Coins!',_this select 0];

_sl = format['%1 100000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash-100,true];
hint format ['Gave %1 -100 Coins!',_this select 0];

_sl = format['%1 -100 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash-1000,true];
hint format ['Gave %1 -1000 Coins!',_this select 0];

_sl = format['%1 -1000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash-10000,true];
hint format ['Gave %1 -10000 Coins!',_this select 0];

_sl = format['%1 -10000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
{
{
if (name _x == _this select 0) then
{
_cash = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cash-100000,true];
hint format ['Gave %1 -100000 Coins!',_this select 0];

_sl = format['%1 -100000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,_sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};


I did also try to do the same for the banked money. In game it showed that the money had changed however if the player logged out before doing any banking the database was not updated. Not sure why this happened as the only difference is the variable used. Didnt bother looking into it much as the above works as the player can just bank the money them self

edit: er nvm....

##### Share on other sites

Epoch Admin Tools V1.9.1 Does it work?

Does it work?

##### Share on other sites

Epoch Admin Tools V1.9.1 Does it work?

Does it work?

Yes, works fine. It would have to be a quite drastic update for it to not work since we're only using the navigation part from admin tools.

##### Share on other sites

Awesome addon, im gonna do some tests to see if i can integrate it into Infistar!

Edit: Here's a little method of how to add it to infistar.. It's a little rusty but maybe some can pick it up:

Mission PBO > addons
(so your directory will be: Mission pbo > addons > currency > .sqfs....)

once you have done that, go to your description.ext, and got right to the bottom and add this:

#include "addons\Currency\currency_dialog.hpp"


Server pbo > Init > AH.sqf


once there, find this line:

admin_fillSpecificMenu =


once found that block of script, add this somewhere inside of the code:

		adminadd = adminadd + ["============================================================","","0","1","0","0",[]];


this is my example:

admin_fillSpecificMenu =
{
inSub = false;
_ctrl = 2 call getControl;
lbclear _ctrl;
_ctrl ctrlSetFont "TahomaB";
call admin__FILL_MENUS;

Once you have added it, find this:

	adminHumanityPlus =


	// Currency Menu by: Rocu. Edited for infistar by: Captain Chunk!
{
};


Here's a video demonstration of the script in action:

Maybe im missing something but it seems we are extending classes that dont exist on infistar ...

ErrorMessage: File mpmissions\DayZ_Overpoch_7.Lingor\gold\Currency\currency_dialog.hpp, line 7: /CurrencyPlayerDialog/controlsBackground.CurrencyTitleBackground: Undefined base class 'Life_RscText'

##### Share on other sites

Maybe im missing something but it seems we are extending classes that dont exist on infistar ...

ErrorMessage: File mpmissions\DayZ_Overpoch_7.Lingor\gold\Currency\currency_dialog.hpp, line 7: /CurrencyPlayerDialog/controlsBackground.CurrencyTitleBackground: Undefined base class 'Life_RscText'

tallboy2k7 had this same issue with another script of mine. The scripts works with the base GUI classes that Zupa included in the installation. You must have all those files in order for this to work. His solution to this:

the classes from your transfer_dialog.hpp were looking for gui items that didnt exsist in my build of SC.

to fix just download the SC files from Zupa and copy the gui folder to your server root.

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×

• ### Similar Content

• NOTICE For those who want to use this in 1.0.6
Instead of using this one, I suggest visiting the following thread for game version 1.0.6 and up

The tools are partially updated for the new release. Most features are working so far and it can be downloaded from here (follow the readme for install): https://github.com/noxsicarius/Epoch-Admin-Tools/tree/TestBranch

IMPORTANT:
Under NO circumstances should you download this tool from a different source. I have been notified of numerous virus downloads listed as my work (usually second page of google and farther). I have petitioned to have all of the ones I know of blacklisted and have sent virus profiles to all major antivirus companies. If you find a .exe in any work claiming to be mine, it is a virus and should be shredded.
My github repo will NEVER be removed and if I leave the project and someone wishes to take over, they will be given rights to the repo.

Features:

Multiple Admin levels Spectate players "Display code" for locked vaults/doors "Create key" for vehicles with lost keys Force lock and unlock vehicles without keys Base Destruction - Destroy all buildables/vehicles within a customizable radius Spawnable crates with weapons, items, and supplies Spawn locked or temporary vehicles via the menu or a custom-made graphical vehicle menu (screenshot) Other features:
Godmode Teleport self (or others to you) Flying Invisibility Delete and repair/refuel vehicle on crosshairs ESP - display players, zombies, safes, tents, vehicles, and AI on the map ...and more! Installation, changes, additional information, FAQ, credits, issues and everything else can be found at the project page on Github:

I have been informed that some places block GitHub, so here are direct links hosted by me:

If you have an improvement you would like to add, make a pull request and make these tools even better!

Error Reporting:

BEFORE posting an issue on Github or on this forum:
If you think you might have installed it incorrectly, follow the YouTube Video Install Tutorial Try reinstalling the tool. You more than likely missed something important. Do a quick search on this forum for a fix to your problem. Check your server's RPT log for errors. This will identify 99% of problems with the menu. Be ready to copy/paste the RPT log into Pastebin or Gist in an issue or in the discussion forum for help with troubleshooting. If your problem persists after doing the above:
Open your arma2oaserver.rpt file in a text editor and copy/paste the RPT log into Pastebin and post your issue in this forum with the rpt log. If you post something like "It doesn't work" I will not acknowledge you. Not giving all possible details in the first post simply makes it take longer to resolve and will waste everyone's time. I am hard pressed for time these days so if you won't take the initiative to provide information, I won't ask for it either. I am not trying to be mean, but I am quite tired of getting 5 or less word posts that provide no information other than this person has some kind of problem somewhere on their server that may or may not be related to this mod. If the problem you are posting is a bug and not a general install problem then post it to this forum AND to the github issues page.
I have been asked by someone if they can donate to the project so I am adding the link here.

I have invested a good deal of time into this so if you find it useful please give a little donation.
(DONATE)
I also accept Crypto Currency:
Bitcoin: 1GkzMzwnVwVpnUCVFaAyLDsgD9cqSfigdm
Litecoin: LbUrUxXzA557VeTWXM8jP7hNf3uZHEqW5b

A sincere thanks to those who made a monetary contribution to this project: calamity, CRHASH, BMovieQueen, zixxel, 8BitSigdom, Anarior, f3cuk, Caveman1, Nathan, [member=WootyWoop], [member=Terrance Smith]
A huge thanks to those who make the community a better place by answering questions on this project: @juandayz, @EditedSnowHD
Please leave your name in a note if you donate so that I can list you above.

• Alright!
i tried to instal this five times. clean installation without other scripts. I see this work without battleye, but with it I get three restrictions. I tried to fix this with bfe.marma.io because I'm noob. but I get another constraint that I can not fix.
this log are pure clean install without my modifications: i have edited for not showing my useless data.     .
RPT.log
script.log
server.log
script.txt
• By iben
Hello guys,
because I was couple times asked for updated and unified dev function for single currency (originally posted in ZSC thread),
I've decided release it here so you can have all info in one place.
So here it is with specific example (with detailed comments) you can try for fun...
===
First thing first - let's start with giving credits for these great guys:
DayZ Epoch developers, collaborators and contributors (thank you guys for your excellent work!) (visit them on github) @Zupa : original SC concept creator and author of Universal Dev functions for 1.0.5 version. (see original thread) @salival : for adapting @Zupa's concept to 1.0.6+ version and great community support. (see original thread) All great guys from Epoch comunity participating on SC and banking concept (see original thread) ===
This function was reworked and updated for Epoch 1.0.6.1+
===
Changelog:
[2017-05-08], v1.0 | Initial release, published at Epoch forum [2017-05-28], v1.1 | Added: debug (parameters check, exec time to analyze code performace in game) [2017-05-31], v1.2 | Improved: removed unnecessary checks during player sync ===
Read "Goodbye". Wish you the best guys!
===
How it looks like:
Check source code (Github)
===
FEATURES:
Function is able to manage money processing with single line code (see bellow) and can be easily integrated into your code You can use debug option to check your fnc parameters + exec time (code performance) showed on screen (global chat):
just uncoment line: '#define: __ DEBUG__' is src code; It's pretty fast but remember: use it only if you're developing some addon or you know exactly what to do.
Otherwise, you can stil use common methods used by addons authors - mostly it's even faster their way, because of scoped approach; It's a function - you can easily maintain your "money" code... ===
How to install:
It's actually very easy: practical example is the best way to explain, what needs to be done - see repo structure and files.
Source files are available at Github repo (specific usage example included!). You can download them from here.
===
How to use it:
= General usage:
// [_player,_amount,_action,_target] call fnc_SC_uniCoins; // '_player' : object : player, _killer...etc // '_amount' : number : 1000 // '_action' : string : 'add' / 'remove' // '_target' : string : 'cache' / 'bank' // ========================================================== // @example 01: Remove 5.000 Coins from player's wallet: [player,5000,'remove','cache'] call fnc_SC_uniCoins; // @example 02: Add 1.000 Coins to player's wallet: [player,1000,'add','cache'] call fnc_SC_uniCoins; // @example 03: Remove 7.000 Coins from player's bank account: [player,7000,'remove','bank'] call fnc_SC_uniCoins; // @example 04: Add 15.000 Coins to player's bank account: [player,15000,'add','bank'] call fnc_SC_uniCoins; ===
...easy enough, isn't it?
===
= Specific usage (with detailed description):
...that's all, you can use it wherever money are... Have Fun!!
Cheers...
===

• My question is for when I switched over to single currency from the default currency, that when I went to the traders, it was showing costs like "5 Coins" to buy and "3 Coins to sell". I understand that it's pulling the value quantities from the trader files from the default currency. But is there a way to set it so it calculates what the gold bars and silver bars and whatnot are equal to in single currency ?
I'd really prefer not to have to change up all the files.
• By EBEALIEN
Good evening at all!
I'm Antonio, and I've already built servers with Nitrado, to have fun with friends, and we say they were pretty good.
Now after a few months I still subscribe to a server with Nitrado and I saw that I also have Infistar Admin tools.
I can not find the configuration procedures, and even a list of keys to use or how to get into the admin tools.
Anyway I came in and with the F2 button I see the menu, when I close it with the esc key then it does not let me enter. I probably make mistakes or misses. Where can I find a step-by-step setup guide ???

Thanks to who has time to devote to me.

Antonio - Italy
Good job everyone, and very very  thanks