Jump to content

[PROJECT] Gold Coin based Single Currency & Banking System


Recommended Posts

  On 7/31/2014 at 2:28 AM, Turtle II said:

did you do the player_wearclothes.sqf part in the directions? It warns you that if you don't do it right that your server will crash :D

 

I replaced both the mission.pbo and server.pbo with the pre-made ones that has the coin-system included.

Link to comment
Share on other sites

  On 7/30/2014 at 2:51 PM, Ryan H said:

Hey Awesome Mod by the way.

 

 

I was looking over some files here https://github.com/EpochSC/SingleCurrencyBanking999/blob/master/A.Installation_Method_%231_Add_to_a_new_Epoch_server_quickly/B.Mission_File/DayZ_Epoch_11.Chernarus/CfgServerTrader/Category/OWAcrVariants.hpp

and noticed the Classname: class FHQ_ACR_SNW_G55_SD_F should be class FHQ_ACR_SNW_G33_SD_F

this is the same for all G33 guns they are named 55

 

Just remove all the ACR's that end with _F from traders and loot tables. Easiest fix.

Link to comment
Share on other sites

  On 7/31/2014 at 6:16 AM, Storm said:

Its a server_functions bug

Have the bankzones load from the init or merge it with the mission.sqf in the hive.

 

When I merge them into the mission.sqf the laptops no longer bring up the atm option :/

Mybad.. had the laptop ontop of a locked safe, unlock the safe and the option appears lol, must place them on something else :D

Link to comment
Share on other sites

  On 7/31/2014 at 6:24 AM, stonXer said:

When I merge them into the mission.sqf the laptops no longer bring up the atm option :/

Mybad.. had the laptop ontop of a locked safe, unlock the safe and the option appears lol, must place them on something else :D

Why not just change the object? I made mine infostand_2_ep1 Its a lot easier for players to access it.
  On 7/31/2014 at 6:19 AM, insertcoins said:

For namalsk also?

All of the current popular maps like: Namalsk, napf, lingor, Tavi and Panth.
Link to comment
Share on other sites

  On 7/31/2014 at 6:57 AM, kylebeed said:

Awesome :D

Also.

I am trying to make it like ccg have it. Quite neat and presentable, How do i make it so it has the comma and "Gold Coins" after the price

XHVy7Ux.png

Ill take a look into it
Link to comment
Share on other sites

  On 7/30/2014 at 10:41 PM, Turtle II said:

I'm using

And I think it may be the reason that when a player dies and respawns they loose all the money they had in their bank.

Anyone know why? Or maybe I just fucked something up on the install so I'm going through everything again just in case

 

Do you have 999 calls in your player_sync and player_setup in your server compile folder

Link to comment
Share on other sites

  On 7/31/2014 at 6:41 AM, Storm said:

Why not just change the object? I made mine infostand_2_ep1 Its a lot easier for players to access it.

All of the current popular maps like: Namalsk, napf, lingor, Tavi and Panth.

 

I'll let you know when I'm done.

Link to comment
Share on other sites

  On 7/31/2014 at 6:57 AM, kylebeed said:

Awesome :D

 

Also.

 

 

I am trying to make it like ccg have it. Quite neat and presentable, How do i make it so it has the comma and "Gold Coins" after the price

 

 

XHVy7Ux.png

 

The gold coins in your trader_menu.sqf

 

Search this 

ctrlSetText [TraderDialogBuyPrice, format["%1 %2", _item select 2, _item select 4]];

ctrlEnable [TraderDialogBuyBtn, true];

ctrlSetText [TraderDialogSellPrice, format["%1 %2", _item select 5, _item select 7]];

and chang that into something like this:

_moneyString = "Awesome Gold Coins shizzl";

ctrlSetText [TraderDialogBuyPrice, format["%1 %2", _item select 2, _moneyString]];

ctrlEnable [TraderDialogBuyBtn, true];

ctrlSetText [TraderDialogSellPrice, format["%1 %2", _item select 5, _moneyString]];

About the comma in your number, i dont know if arma2 has a build in function for this. Otherwise i'll have have to write a function making calculations of the number

Link to comment
Share on other sites

  On 7/31/2014 at 7:51 AM, Zupa said:

The gold coins in your trader_menu.sqf

 

Search this 

ctrlSetText [TraderDialogBuyPrice, format["%1 %2", _item select 2, _item select 4]];

ctrlEnable [TraderDialogBuyBtn, true];

ctrlSetText [TraderDialogSellPrice, format["%1 %2", _item select 5, _item select 7]];

and chang that into something like this:

_moneyString = "Awesome Gold Coins shizzl";

ctrlSetText [TraderDialogBuyPrice, format["%1 %2", _item select 2, _moneyString]];

ctrlEnable [TraderDialogBuyBtn, true];

ctrlSetText [TraderDialogSellPrice, format["%1 %2", _item select 5, _moneyString]];

About the comma in your number, i dont know if arma2 has a build in function for this. Otherwise i'll have have to write a function making calculations of the number

 

Okay nice, Ill look into the function of making calculations of the number!

Link to comment
Share on other sites

  On 7/31/2014 at 1:29 AM, bFe said:

Anyone elses server crashing because of the new server/hive.dll?

 

Whats the content of the bat file u use to launch the server?

 

+ Can u provide the folder structure of your server. ( Screenshot will suffice)

Link to comment
Share on other sites

Number Formating:

BIS_fnc_numberDigits = {
    private ["_number","_step","_stepLocal","_result","_numberLocal","_add"];
    _number = [_this,0,0,[0]] call bis_fnc_param;
 
    if (_number < 10) then {
        [_number]
    } else {
 
        _step = 10;
        _stepLocal = _step;
        _result = [0];
        _add = false;
 
        while {_stepLocal < (_number * _step)} do {
 
            _numberLocal = _number % (_stepLocal);
            {
                _numberLocal = _numberLocal - _x;
            } foreach _result;
            _numberLocal = floor (_numberLocal / _stepLocal * _step);
 
            if (_numberLocal < 0) then {_numberLocal = 9};
            _result = [_numberLocal] + _result;
            _stepLocal = _stepLocal * (_step);
        };
        if ((_result select 0) == 0) then {_result = [1] + _result;};
        _result resize (count _result - 1);
        _result
    };
};
 
BIS_fnc_numberText = {
    private ["_number","_mod","_digots","_digitsCount","_modBase","_numberText"];
 
    _number = [_this,0,0,[0, ""]] call bis_fnc_param;
    _mod = [_this,1,3,[0]] call bis_fnc_param;
 
    if (typeName _number == "STRING") then {
        _number = parseNumber _number;
    };
 
    _digits = _number call BIS_fnc_numberDigits;
    _digitsCount = count _digits - 1;
 
    _modBase = _digitsCount % _mod;
    _numberText = "";
    {
        _numberText = _numberText + str _x;
        if ((_foreachindex - _modBase) % (_mod) == 0 && _foreachindex != _digitsCount) then {_numberText = _numberText + ",";};
    } foreach _digits;
    _numberText
};
 
// Usage:
// [10000] call BIS_fnc_numberText returns 10,000
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...