Jump to content

kylebeed

Member
  • Posts

    76
  • Joined

  • Last visited

Posts posted by kylebeed

  1.  

    i would like to add the coin and bank to my debug could anyone one help with this? just want it to say CASH and BAnk with the amount, this is my debug.

    • (/s "
    while {sleep 1;hotkey_hitme == 1} do {
     
     
     hintSilent parseText format ["
        <t size='0.95' font='Bitstream' align='center' color='#FFBF00'>Survived %7 Days</t><br/>
        <t size='1.25' font='Bitstream'align='center' color='#D60000'>Pure Pc Gaming</t><br/>
    <t size='1.15' font='Bitstream'align='center' color='#D60000'>purepcgaming.enjin.com</t><br/>
    <t size='0.95' font='Bitstream' align='left' >[%18]</t><t size='0.95' font='Bitstream' align='right'>[FPS: %10]</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Players: %8</t><t size='0.95 'font='Bitstream' align='right'>Within 500m: %11</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Vehicles:</t><t size='0.95' font='Bitstream'align='right'>%13(%14)</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%20(%19)</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
    <t size='0.95' font='Bitstream' align='left' >GPS: %22</t><br/>
    <t size='0.95' font='Bitstream'align='center' color='#D60000'>ts-purepcgaming.ts3dns.com</t><br/>
    <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %25 Minutes</t><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_Survived),
    (count playableUnits),
    r_player_blood,
    (round diag_fps),
    (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),
    viewdistance,
    (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
    count vehicles,
    (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
    (count([6800, 9200, 0] nearEntities [["Air"],25000])),
    (count([6800, 9200, 0] nearEntities [["Car"],25000])),
    (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
    (count entities "zZombie_Base"),
    ({alive _x} count entities "zZombie_Base"),
    (getPosASL player),
    (mapGridPosition getPos player),
    (count([6800, 9200, 0] nearEntities [["Ship"],25000])),
    (round(getDir player)),
    (round(180-(serverTime) / 60))
    ];
    };
    };")

     

     

    The coins are using the zombie headshots variable just change 

    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>

    to

    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Cash: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>

     

     

    as for the bank im cant remember what variable that uses

  2.  

    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
    

     

     

    Awesome :D

     

    So how would i go about adding that?

  3. 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!

  4.  

    TO get give money working , put this above the following inyour selfactions:

     

    //Fuel Pump

    if (_isMan and _isAlive and !_isZombie and !_isAnimal and !(_traderType in serverTraders)) then {
    if (s_givemoney_dialog < 0) then {
    s_givemoney_dialog = player addAction [format["Give Money to %1", (name _cursorTarget)], "gold\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
    };
    } else {
    player removeAction s_givemoney_dialog;
    s_givemoney_dialog = -1;
    };
    

     

    You need to add "s_givemoney_dialog" to infistar  ALLOWED Actions      */ _dayzActions = in the AHconfig?

  5. sometimes u really need to aim at the head ant scroll/walk forwards and backwards for some reason.

     

    Also, did you use the Cfgtrader = true in init correctly?

     

    And included it in description.ext?

     

    And server_traders.sqf is like mine? (all the trader id's the same is in the config trader files?

     

    Yes all was correct, I went through it multiple times to make sure it wasn't a problem on my end. But i guess it must be if other people are successfully working it.

  6. Currently it only supports COnfigtraders which are provided in the zip/pbo. You can add items there.

     

    I'll maybe provide database trading also avaialable soon. ( CFG is way better for server performance btw).

     

    I found that the traders you provided didnt work. No trade menu, So i thought it was because of the mission.sqf i repalced mine with yours and it still didnt work?

     

    Also is there anyway to neaten up the ammount of coins needed in trader?   

     

    for example "100,000"   instead of "100000"      Its nothing big i know. But would it be possible?

     

     

    and instead of it being blank after "100000" , it could be "100000 Coins"

×
×
  • Create New...