-
Posts
62 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by kat
-
-
comment out this line in your Server_UpdateObject.sqf
// delete if still not ok if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };
-
Help me Zupa!
i'm trying to edit playerhud.sqf to show player status like i want but in game it's only show maxium 5 status
This is my edited playerhud.sqf
disableSerialization; while {true} do { 1000 cutRsc ["ZSC_Money_Display","PLAIN"]; _wpui = uiNameSpace getVariable "ZSC_Money_Display"; // Thx to ASREMIX _vitals = _wpui displayCtrl 4900; Money = player getVariable["cashMoney",0]; ZombieKills = player getVariable["zombieKills",0]; Hero_Kills = player getVariable["humanKills",0]; Bandit_Kills = player getVariable["banditKills",0]; Humanity = player getVariable["humanity",0]; Blood = player getVariable["USEC_BloodQty",12000]; Fps = (round diag_fps); Temp = player getVariable["dayz_temperatur",36]; Reset = (241-(round(serverTime/60))); if(Humanity >= 5000) then { Humanity_Icon = "<img size='0.9' image='ZSC\gui\HeroHumanity.paa'/>"; }; if((Humanity >= 200) && (Humanity <= 4999)) then { Humanity_Icon = "<img size='0.9' image='ZSC\gui\CivHumanity.paa'/>"; }; if(Humanity <= 199) then { Humanity_Icon = "<img size='0.9' image='ZSC\gui\BanditHumanity.paa'/>"; }; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %4 </t><img size='0.9' align='right' image='ZSC\gui\Health.paa'/><br/> <t size='0.9'> %2 %3 </t><br/> <t size='0.9'> %1 </t><img size='0.9' align='right' image='ZSC\gui\Money.paa'/><br/> <t size='0.9'> %5 </t><img size='0.9' align='right' image='ZSC\gui\HeroKills.paa'/><br/> <t size='0.9'> %6 </t><img size='0.9' align='right' image='ZSC\gui\BanditKills.paa'/><br/> <t size='0.9'> %7 </t><img size='0.9' align='right' image='ZSC\gui\ZombieKills.paa'/><br/> <t size='0.9'> %9 </t><img size='0.9' align='right' image='ZSC\gui\Fps.paa'/><br/> <t size='0.9'> %8min </t><img size='0.9' align='right' image='ZSC\gui\Uptime.paa'/><br/> [Money] call BIS_fnc_numberText, [Humanity] call BIS_fnc_numberText, Humanity_Icon, Blood, Hero_Kills, Bandit_Kills, Zombiekills, Reset, Fps ]; _vitals ctrlCommit 0; sleep 1.5; };
Missing:
",
After:
<t size='0.9'> %8min </t><img size='0.9' align='right' image='ZSC\gui\Uptime.paa'/>
The line break (<br/>) isn't necessary after the above either, so remove that.
disableSerialization; while {true} do { 1000 cutRsc ["ZSC_Money_Display","PLAIN"]; _wpui = uiNameSpace getVariable "ZSC_Money_Display"; // Thx to ASREMIX _vitals = _wpui displayCtrl 4900; Money = player getVariable["cashMoney",0]; ZombieKills = player getVariable["zombieKills",0]; Hero_Kills = player getVariable["humanKills",0]; Bandit_Kills = player getVariable["banditKills",0]; Humanity = player getVariable["humanity",0]; Blood = player getVariable["USEC_BloodQty",12000]; Fps = (round diag_fps); Temp = player getVariable["dayz_temperatur",36]; Reset = (241-(round(serverTime/60))); if(Humanity >= 5000) then { Humanity_Icon = "<img size='0.9' image='ZSC\gui\HeroHumanity.paa'/>"; }; if((Humanity >= 200) && (Humanity <= 4999)) then { Humanity_Icon = "<img size='0.9' image='ZSC\gui\CivHumanity.paa'/>"; }; if(Humanity <= 199) then { Humanity_Icon = "<img size='0.9' image='ZSC\gui\BanditHumanity.paa'/>"; }; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %4 </t><img size='0.9' align='right' image='ZSC\gui\Health.paa'/><br/> <t size='0.9'> %2 %3 </t><br/> <t size='0.9'> %1 </t><img size='0.9' align='right' image='ZSC\gui\Money.paa'/><br/> <t size='0.9'> %5 </t><img size='0.9' align='right' image='ZSC\gui\HeroKills.paa'/><br/> <t size='0.9'> %6 </t><img size='0.9' align='right' image='ZSC\gui\BanditKills.paa'/><br/> <t size='0.9'> %7 </t><img size='0.9' align='right' image='ZSC\gui\ZombieKills.paa'/><br/> <t size='0.9'> %9 </t><img size='0.9' align='right' image='ZSC\gui\Fps.paa'/><br/> <t size='0.9'> %8min </t><img size='0.9' align='right' image='ZSC\gui\Uptime.paa'/> ", [Money] call BIS_fnc_numberText, [Humanity] call BIS_fnc_numberText, Humanity_Icon, Blood, Hero_Kills, Bandit_Kills, Zombiekills, Reset, Fps ]; _vitals ctrlCommit 0; sleep 1.5; };
-
-
Hi, great script but by any chance is it possible to use this coins to pay for car refuel/repair and to give AI coins which can be taken after killing them ??? (WickedAI & DZMS)
Literally on the main thread for zupa's single currency.
-
I ASKED ABOUT THIS ONCE BEFORE. What should i do about that line. Should i remove this (if (count _intentory > 0) then {) or what?
Add it inbetween.
if (count _intentory > 0) then { if( count (_intentory) > 3)then{ _object setVariable ["bankMoney", _intentory select 3, true]; }else{ _object setVariable ["bankMoney", 0, true]; }; if (_type in DZE_LockedStorage) then { // Fill variables with loot _object setVariable ["WeaponCargo", (_intentory select 0),true]; _object setVariable ["MagazineCargo", (_intentory select 1),true]; _object setVariable ["BackpackCargo", (_intentory select 2),true]; } else {
-
WAI:
spawn_group.sqf
Find
call { if(_aitype == "hero") exitWith { _unit setVariable ["Hero",true]; _unit setVariable ["humanity", ai_remove_humanity]; }; if(_aitype == "bandit") exitWith { _unit setVariable ["Bandit",true]; _unit setVariable ["humanity", ai_add_humanity]; }; if(_aitype == "special") exitWith { _unit setVariable ["Special",true]; _unit setVariable ["humanity", ai_special_humanity]; }; };
Replace with
call { if(_aitype == "hero") exitWith { _unit setVariable ["Hero",true]; _unit setVariable ["humanity", ai_remove_humanity]; _unit setVariable ["cashMoney", ai_hero_amount]; }; if(_aitype == "bandit") exitWith { _unit setVariable ["Bandit",true]; _unit setVariable ["humanity", ai_add_humanity]; _unit setVariable ["cashMoney", ai_bandit_amount]; }; if(_aitype == "special") exitWith { _unit setVariable ["Special",true]; _unit setVariable ["humanity", ai_special_humanity]; _unit setVariable ["cashMoney", ai_special_amount]; }; };
on_kill.sqf
Add
_playerCoins = _player getVariable["cashMoney",0]; _unitCoins = _unit getVariable["cashMoney",0];
Under_banditkills = _player getVariable["banditKills",0]; _humankills = _player getVariable["humanKills",0];
Add
if (ai_coin_award) then { _player setVariable ["cashMoney",(_playerCoins + _unitCoins),true]; };
Under
if (ai_humanity_gain) then { _gain = _unit getVariable ["humanity", 0]; call { if (_unit getVariable ["Hero", false]) exitWith { _player setVariable ["humanity",(_humanity - _gain),true]; }; if (_unit getVariable ["Bandit", false]) exitWith { _player setVariable ["humanity",(_humanity + _gain),true]; }; if (_unit getVariable ["Special", false]) exitWith { if (_humanity < 0) then { _player setVariable ["humanity",(_humanity - _gain),true]; } else { _player setVariable ["humanity",(_humanity + _gain),true]; }; }; }; };
Config.sqf
Add
ai_coin_award = true; ai_hero_amount = 200; ai_bandit_amount = 200; ai_special_amount = 300;
Change the values to what you want.
Under
ai_special_humanity = 150;
If your using an older version of SC then change 'cashMoney' to 'headShots'
-
I had this issue also. If you relog and only trade 1 item at a time it would work.
-
-
It does.
change this:
_killer = setVariable["cashMoney",(_killCash + 20),true];
remove the "=" so it looks like:
_killer setVariable["cashMoney",(_killCash + 20),true];
Ah, Thanks. I should read what i type x]
-
-
Add a "HeliHEmpty" to where you want them to spawn. Im sure it works with other helipads, cant remember exactly which.
-
Insta award for zombie killing?
edit local_eventKill.sqf
private ["_zed","_killer","_kills","_array","_type","_humanity"];_array = _this select 0;_zed = _array select 0;_killer = _array select 1;_type = _this select 1;if (local _zed) then {_kills = _killer getVariable[_type,0];_killer setVariable[_type,(_kills + 1),true];//increase players humanity when zed killed_humanity = _killer getVariable["humanity",0];_humanity = _humanity + 5;_killer setVariable["humanity",_humanity,true];//Zombie kill award_killCash = _killer getVariable["cashMoney",0];_killer setVariable["cashMoney",(_killCash + 20),true];// ^// Change value to what you want.}; -
Yeah, while unlocking is when the value is reset to '0' in the database.
-
Black screen but hearing sounds fix: I'm assuming that's the issue.
To remove decay:
Add/Change CleanupPlacedAfterDays = -1 in the HiveExt.ini
Check your MySQL database to see if its not running any events/procedures.
or
-
please make an Zip or bette GITHUB :)
Done.
thx for the awesome list. I also suggest github or zip to dl them but thanks anyways.
There is a typo on one above i noticed when adding -- it has some extra stuff on it, look like just a missed removal from a copy/paste -- anyways here's the correct entry
class RH_hk416glacog { type = "trade_weapons"; buy[] = {2,"ItemGoldBar10oz"}; sell[] = {1,"ItemGoldBar10oz"}; };
Fixed and removed the duplicates.
-
In Ahconfig.sqf/* Vehicle Tradercheck */ _VTC = false;/* Vehicle ValidId ? */ _UIC = false;
-
Recently i have created a taviana overpoch server, All is running smoothly, no hickups.
However every client will get kicked randomly. Not all at once, just individually at random time.
I have checked all the logs incl Battleye, infistar, server.rpt and client.rpt and all is normal.
On client kick it will display "You have been kicked from the server." .Rpt only shows normal player disconnect.
I have ran the server without battleye or infistar and it still kicks. Sometime once per 3 hour restart or multiple times.
I've checked all ports, tried both dayzlauncher and dayzcommander with various launch parameters.
I have also changed config.cfg "onHackedData" and "onDifferentData" to null with no avail.
I've scoured the web and with still no result or indication on what's going on i bring it to you guys!
Thanks.
-
-
Have some players duping coins by logging out straight after they deposit coins into their bank. Basically having the amount added to bank but not subtracted from wallet.
Can anyone confirm this?
I have been able to replicate the result.
EDIT: Sorry! you have to add '.1' to the end of the deposit amount. eg. 100000.1
-
Lower your MaxVehicleLimit or increase vehicle amount in dynamic_vehicle.sqf.
-
Did you set your HiveExt.ini settings correctly?
Check your server log*
-
Considered config based traders?
-
Battleye Filters>createvehicle.txt
set:
5 "SeaGull"
to
1 "SeaGull"
Goooogle. Fairly common question ^_^
-
Check your mission.sqm for errors.
items=2; //error; should be 3 - Usual issue for me.
class Item0{};
class Item1
{};
class Item2
{};
Trader help with buying items with gems
in Scripting
Posted
i believe you have to change
to