-
Posts
76 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by kylebeed
-
-
I seem to get some wierd things going on at traders.
1. It takes atleast a minute to spawn about 2 hours into server uptime
2. When it does spawn it disappears when a player goes to unlock
-
@Storm Do you still have that stuff i need to put in for the donator bank max? I deleted the doc by accident
-
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 "
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
-
So is it mine?
Don't you worry about it bud!
-
Did you make that yourself?
if and when i was actually going to tell people how to do it i would give you credit..
-
Anyone interested in this type of bank screen?
( Its all out of place because im not playing in fullscreen)
- mgm and CMDR. Taco
- 2
-
How do you guys like it?
I will release it soon.
Is anyone getting any rpt errors like
4:38:37 Error in expression <urrency = _this select 5; _qty = _this select 6; _clientID = owner _player; _p> 4:38:37 Error position: <select 6; _clientID = owner _player; _p>
Looks good dude. Nice work :)
-
"Take Wallet" confirmed working ;)
Ah i put the take wallet in the wrong place in the self actions XD
-
is there supposed to be a take money from dead bodies option?
or does that come in later versions?
-
Im trying to add a NPC as the banker. i can scroll on the banker and access the ATM but it also gives me the option to "give money to Yuri Popov" How would i remove the give money option without having to add this NPC to the server_traders
-
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?
-
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!
-
Yes. Just add it to the ATMs.
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
-
Its possible to make it an AI right?
-
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?
-
in player_traderMenu.sqf
_btextCurrency = "Coins";
_stextCurrency = "Coins";
Thanks man ! :)
-
In the botttom left of the trade window? or where?
yeah right beside where it tells you the cost of the item at the bottom left!
-
I guess it is. BUT
it is
100.00
comma's in numbers are dots (.)
Awesome thanks!
What about the "Coins" bit after the amount of coins needed?
-
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"
Would that be possible? i edited after you probably read the OP so just reposting :D
-
-
Did u try if it works with my default server and missions pbo ? (should owork then) ^^ for epoch and overwatch items
I didn't bother, Id prefer to go through the traders manually and add my own little adjustments :)
-
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.
-
Well Kyle, if you would like to share the files vor overpoch I'd be most pleased.
Just checking.
But you use config based traders right? because i stopped using database quite awhile ago :)
-
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"
Cheap reliable Dedicated Server Hosts?
in Off Topic
Posted
Does anyone know any?
looking for around £60 a month or so, as £100 is too expensive atm
16gb ram +
2 ssds or 1 ssd and 1 hdd
I've been with GTX and Vilayer and didn't like the experience
Thanks!