ttkrickjames
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by ttkrickjames
-
-
Thank you. :)
Anytime. Glad I could help.
-
Sorry who can share completed?
I'm noob. I can not do it work.
Who can help me?
Please! Tell me what me wrong?
https://dl.dropboxusercontent.com/u/90267497/DayZ%20Script/service_point.rar
In compiles.sqf
It looks like you missed a square bracket on line 39 (["Air",[CurrencyName,_coinsRepairAir], / should be ["Air",[CurrencyName,_coinsRepairAir]], /
Are you using the updated add/remove coins script from Zupa? If not try it.
Here try my service_point.sqf: http://pastebin.com/rHkN8VCn
-
This checkts if the value given = 0 , then it always succes
EDIT: Also edited the functions at DEV post.
Hey Zupa, thanks a lot. That fixed it.
-
Hello, I am having trouble getting this to work correctly on our server. I cannot repair or rearm any vehicles if there is a cost for the action, but if i set the cost to 0 it works.What could be the problem?
Here is my service_point.sqf :
// refuel settings_refuel_enable = true; // enable or disable the refuel option_refuel_costs = [["AllVehicles",[CurrencyName,_coinsRefuelVehicles]],["Air",[CurrencyName,_coinsRefuelAir]]]; // free for all vehicles (equal to [["AllVehicles",[]]])_refuel_updateInterval = 1; // update interval (in seconds)_refuel_amount = 0.05; // amount of fuel to add with every update (in percent)// repair settings_repair_enable = true; // enable or disable the repair option_repair_costs = [["Air",[CurrencyName,_coinsRepairAir]], // 5 Gold for helicopters and planes["AllVehicles",[CurrencyName,_coinsRepairVehicles]]]; // 2 Gold for all other vehicles_repair_repairTime = 2; // time needed to repair each damaged part (in seconds)// rearm settings_rearm_enable = true; // enable or disable the rearm option_rearm_costs = [["ArmoredSUV_PMC_DZE",[CurrencyName,_coinsRearmSUV]], // special costs for a single vehicle type["Air",[CurrencyName,_coinsRearmAir]], // 2 10oz Gold for helicopters and planes["AllVehicles",[CurrencyName,_coinsRearmVehicles]]]; // 1 10oz Gold for all other vehicles_rearm_magazineCount = 3; // amount of magazines to be added to the vehicle weaponHere is the add/remove coins code in my compiles.sqf from Zupa:
// usage// _removed = [player, 5000] call SC_fnc_removeCoins;// if(_removed = true)then{ GREAT SUCCES }else{ IT FAILED, not enoguh money};SC_fnc_removeCoins={private ["_player","_amount","_wealth","_newwealth", "_result"];_player = _this select 0;_amount = _this select 1;_result = false;_wealth = _player getVariable["headShots",0];if (_wealth < _amount) then {_result = false;} else {_newwealth = _wealth - _amount;_player setVariable["headShots",_newwealth, true];_player setVariable ["moneychanged",1,true];_result = true;PVDZE_plr_Save = [_player,(magazines _player),true,true] ;publicVariableServer "PVDZE_plr_Save";};_result};// usage// _added = [player, 5000] call SC_fnc_addCoins;// if(_added = true)then{ GREAT SUCCES }else{ IT FAILED, Something went wrong};SC_fnc_addCoins ={private ["_player","_amount","_wealth","_newwealth", "_result"];_player = _this select 0;_amount = _this select 1;_result = false;_wealth = _player getVariable["headShots",0];_player setVariable["headShots",_wealth + _amount, true];PVDZE_plr_Save = [_player,(magazines _player),true,true] ;publicVariableServer "PVDZE_plr_Save";_player setVariable ["moneychanged",1,true];_newwealth = _player getVariable["headShots",0];if (_newwealth >= _wealth) then { _result = true; };_result};Thanks for any help I get and these great scripts.
-
Hey there guys.
I have installed the coin system and it appears to be working mostly right.
I am having two issues though. I have a Napf server running Overpoch. The traders don't show any currency to buy or sell items just the word "any" and the Overwatch lists are now all unorganized ( no rifles in rifle sections snipers in sidearm section etc...). I am also unable to access the bank laptops. (They are on the ground face down, probably because I haven't changed they're coordinates yet.)
If anyone can point to me where I went wrong that would be greatly appreciated, thanks.
__________________________________________________________________________
EDIT:
Solved Problem 1; I forgot to add the files numbersText.sqf and numbersDigits.sqf to the custom folder.
The traders is something I will have to tweak I suppose.
[Release] Single Currency Axe Cop Service Points for SC
in Gold Coin based Single Currency & Banking System
Posted
Check post #10 of this thread, I think that's where your fix is.