Jump to content

[Release] DZE Piggd Banking System


piggd

Recommended Posts

Just wanted to say thank you for this Bank system, we really love it on our PVE server and did not have any issue whatsoever. Installation is very easy and done in seconds

 

Really worth it in my opinion if you don't use the humanity system.

 

Thanks.

Link to comment
Share on other sites

Hi awesome script thank you so much for sharing, i have installed on test server and found 1 issue and when installing on my main PvE server i have same issue

 

Sometimes the last deposite don't save like i'll sell a vehicle n 3 bc's will enter my bank, i'll kill myself and the 3bc's will be gone

 

The way i found to stop this happening atm is to remove 1 silver bar and redepoit it, after died you will loose just the 1 silver bar rather than 3 bc's

 

If there another way to stop this ?

 

Many thanks

 

R4id3n84

Link to comment
Share on other sites

Sounds like your running into the humanity bug some people have been reporting.  Humanity being saved to teh data base is outside what the mod does.  I update it make the clal to teh system to do the update to the DB. We have nto had an issue with this...try me my users be screaming boody murger if they were losing money.  Did you by chnace change clothes in the same session? When it happens it seems to be around that event. 

Link to comment
Share on other sites

I tried to install this script yesterday and failed  :lol:

 

My custom compiles.sqf only had a few lines (not all the lines you say needs to be addited for the banking system)

So what i did, pulled the original compiles.sqf from the DayZ_Code -> Init, copied it to my mission.pbo and adjusted everything you say that needs to be adjusted.

 

Now i'm stuck after the requesting authentication.

 

I don't think it has anything to do with the adjustments i needed to make for this script though.

 

So my question is:

Can i just copy the things you say that needs to be adjusted into my custom compiles.sqf? Or will that never work?

 

So as an example:

 

Compiles.sqf:

//My custom code is above for other scripts (like snapbuild, VASP, Tow&Lift etc etc)

//DZE Banking
epoch_totalCurrency = {
        // total currency
        _total_currency = 0;
        {
            _part =  (configFile >> "CfgMagazines" >> _x);
            _worth =  (_part >> "worth");
            if isNumber (_worth) then {
                _total_currency = _total_currency + getNumber(_worth);
            };
        } count (magazines player);
// ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------
        if(PDZE_PiggdBankSystem) then {
            _humanity = player getVariable["humanity",0];
            _total_currency = _total_currency + _humanity;
        };
// ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------
        _total_currency
    };

    epoch_itemCost = {
        _trade_total = 0;
        {
            _part_in_configClass =  configFile >> "CfgMagazines" >> (_x select 0);
            if (isClass (_part_in_configClass)) then {
                _part_inWorth = (_part_in_configClass >> "worth");
                if isNumber (_part_inWorth) then {
                    _trade_total = _trade_total + (getNumber(_part_inWorth) * (_x select 1));
                };
            };
        } count _this;

        //diag_log format["DEBUG TRADER ITEMCOST: %1", _this];
        _trade_total
    };

// ------------------------------------------------------------------------DZE Piggd Banking System Start ------------------------------------------------------------------------
//    epoch_returnChange =            compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\epoch_returnChange.sqf";
    epoch_returnChange =            compile preprocessFileLineNumbers "fixes\epoch_returnChange.sqf";
// ------------------------------------------------------------------------DZE Piggd Banking System End ------------------------------------------------------------------------
    // usage [["partinclassname",4]] call epoch_returnChange;

Then my init.sqf look like this:

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";   //Compile regular functions
call compile preprocessFileLineNumbers "compiles.sqf";                            //Compile custom compiles

So basicly the init.sqf first call's the original compiles and then calls my custom compiles with the part in it for DZE Banking.

 

Sorry if i don't understand this so well, i'm not that good in scripting yet ^_^

Link to comment
Share on other sites

I had no error at all in client or server RPT.

Just black screen with counter in the bottom right corner.

 

But i got it fixed now.

 

Only placed the code that needs to be added in a empty custom compiles.sqf and Voila :D

 

Started from scratch again so this is the first script i put in.

Now gonna do others.

 

Thanks for you reply though!

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 2 months later...

Thx for script its the best :)

 

for infistar user u need to rename the variable, helpmenu to helpmenuu  in player_tools_main.sqf

Will that fix the Infistar player kicks? I really like this script because it streamlines the commerce/currency handling process. Currently, only the admins playing on my server can use the Player Tools. The players get kicked immediately whenever they access it.

Link to comment
Share on other sites

  • 1 month later...

Hey guys,

 

Many thanks for this script,he works fine.

 

But i have a problem,my tow/lift script,and my AGN script doesn't work now,but all seems goods in folder.

 

Do you know why ?

 

Thanks.

 

 

EDIT :

 

Ok guys.

 

Problem resolved.

 

It was an conflict with my custom compiles and the "fixes" of the tutorial of the scripts.

 

I understand custom and fixe is the same thing,just someguys dont use the same name.

 

So i putt all in my custom folder and that work nice.

 

Thanks for this nice script !

Link to comment
Share on other sites

  • 2 weeks later...

To change infistar debug to reflect your gold instead of humanity you add the following. and change to in ah.sqf

                        _humanity = player getVariable['humanity',0];


                        _humanity = round (_humanity / 100);
                        if(_humanity > 999999) then
                        {
                            _humanity = [_humanity] call fnc_format_humanity;
                            _humanity = toArray _humanity;
                            _humanity = _humanity - [44];
                            _humanity = toString _humanity;
                            _humanity = round (_humanity / 100);
                        };
                        
                        _timertext = 'UPTIME: ';
                        if(!isNil 'infiSTAR_UPTIMER') then
                        {
                            _timertext = 'Restart in: ';
                            _stime = 0;
                            if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
                            _upTimeLeft = infiSTAR_UPTIMER - _stime;
                            if(_upTimeLeft > 0) then
                            {
                                _hours = (_upTimeLeft/60/60);
                                _hours = toArray (str _hours);
                                _hours resize 1;
                                _hours = toString _hours;
                                _hours = compile _hours;
                                _hours = call  _hours;
                                _minutes = floor(_upTimeLeft/60);
                                _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10) then {_minutes2 = format['0%1',_minutes2];};
                            }
                            else
                            {
                                _hours = '0';
                                _minutes2 = '00';
                            };
                        };
                        
                        
                        hintSilent parseText format[""
                        <t size='1' font='Bitstream' align='Center' >[%1]</t><br/>
                        <t size='0.8' font='Bitstream' align='Center' >Players Online: %12</t><br/>
                        <img size='4.75' image='%4'/><br/>
                        <t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%2</t><br/>
                        <t size='2' font='Bitstream' align='left' color='#CCFF33'>Gold: </t><t size='2' font='Bitstream' align='right'>%3</t><br/>
                        <br/>
                        <t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombie Kills: </t><t size='1' font='Bitstream' align='right'>%9</t><br/>
                        <t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%10</t><br/>
                        <t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%11</t><br/>
                        <br/>
                        <t size='1' font='Bitstream' align='left' color='#FFBF00'>%13</t><t size='1' font='Bitstream' align='right'>%5h %6min</t><br/>
                        <t size='1' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
                        <t size='1' font='Bitstream' align='Center' color='#CC0000'>%7</t>
                        "",
                        _txt,
                        (r_player_blood),
                        _humanity,
                        _pic,
                        _hours,
                        _minutes2,
                        _BottomDebug,
                        (round diag_fps),
                        (player getVariable['zombieKills', 0]),
                        (player getVariable['humanKills', 0]),
                        (player getVariable['banditKills', 0]),
                        _pOn,
                        _timertext
                        ];
                        uiSleep 1;
                    };

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
  • Discord

×
×
  • Create New...