-
Posts
44 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by zipper
-
-
Thumbs up on these missions from my players. Really enjoyed the new work.
Same here, thanks for the great work :)
-
Has anyone got a working link to the garage code?
Have a look here, OverHeat has a working copy without the requirements for extDB.
-
-
this works, but once again, its anywhere.
if ((!isNil "killZone") && ((side _killer) == WEST )) then {
-
if (!isNil "killZone") && ((side _killer) == WEST ) then {
and this?
It might be progress, diff error. lol
16:58:43 Error in expression <killZone") && ((side _killer) == WEST ) then { sleep 8; [_killer] execVM "script> 16:58:43 Error position: <then { sleep 8; [_killer] execVM "script> 16:58:43 Error then: Type Bool, expected if 16:58:43 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
-
Ok i have another option.
And the deathmessages should be no problem.
if ((side _killer) == EAST) exitwith { diag_log "Bots dont go to jail!"; }; if (killZone) && ((side _killer) == WEST ) then { sleep 8; [_killer] execVM "scripts\jail\start_punish.sqf" } else { if (((count crew _killer) > 1) && ((side _killer) == WEST)) then { if (((gunner _killer) in (crew _killer)) && ((side _killer) == WEST)) then { sleep 8; [(gunner _killer)] execVM "scripts\jail\start_punish.sqf" } else { sleep 8; [(driver _killer)] execVM "scripts\jail\start_punish.sqf" }; } else { sleep 8; [(driver _killer)] execVM "scripts\jail\start_punish.sqf" }; };
Try this ..
same stuff :
14:39:43 Error in expression <ag_log "Bots dont go to jail!"; }; if (killZone) && ((side _killer) == WEST ) t> 14:39:43 Error position: <killZone) && ((side _killer) == WEST ) t> 14:39:43 Error then: Undefined variable in expression: killzone 14:39:43 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
I even tried changing this bit
if (killZone) && ((side _killer) == WEST ) then {
to
if (isNil "killZone") && ((side _killer) == WEST ) then {
It works, but everywhere :P
-
I get the following errors:
13:42:02 Error in expression <"Bots dont go to jail!"; }; if ((kill1 or kill2 or kill3 or kill4 or kill5) && > 13:42:02 Error position: <or kill2 or kill3 or kill4 or kill5) && > 13:42:02 Error or: Type Object, expected Bool 13:42:02 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
and then this on the other suggestion:
13:50:49 Error in expression <g_log "Bots dont go to jail!"; }; if ((killZone) && ((side _killer) == WEST )) > 13:50:49 Error position: <killZone) && ((side _killer) == WEST )) > 13:50:49 Error Undefined variable in expression: killzone 13:50:49 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
I have however made these alterations to my server, maybe that is causing some issues:
-
-
the second if will cause the error. delete it, like I did. then you should be fine.
Tested, doesnt seem to work for me :(
20:14:55 Error in expression < jail!"; }; if ((side _killer) == WEST && kill1 or kill2 or kill3 or kill4 or k> 20:14:55 Error position: <&& kill1 or kill2 or kill3 or kill4 or k> 20:14:55 Error &&: Type Object, expected Bool,code 20:14:56 File z\addons\dayz_server\compile\server_playerDied.sqf, line 95
My server_playerDied :
if ((side _killer) == EAST) exitwith { diag_log "Bots dont go to jail!"; }; if ((side _killer) == WEST && kill1 or kill2 or kill3 or kill4 or kill5 ) then { sleep 8; [_killer] execVM "scripts\jail\start_punish.sqf" } else { if (((count crew _killer) > 1) && ((side _killer) == WEST)) then { if (((gunner _killer) in (crew _killer)) && ((side _killer) == WEST)) then { sleep 8; [(gunner _killer)] execVM "scripts\jail\start_punish.sqf" } else { sleep 8; [(driver _killer)] execVM "scripts\jail\start_punish.sqf" }; } else { sleep 8; [(driver _killer)] execVM "scripts\jail\start_punish.sqf" }; };
My mission.sqm :
class Item6 { position[]={6325.6772,304.99033,7807.7412};// stary killzone a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill1"; expCond="(player distance kill1) < 500;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; }; class Item7 { position[]={4063.4226,365.00577,11664.19};// Bash killzone a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill2"; expCond="(player distance kill2) < 500;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; }; class Item8 { position[]={11447.472,317.26886,11364.504};// Klen killzone a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill3"; expCond="(player distance kill3) < 500;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; }; class Item9 { position[]={1606.6443,289.70795,7803.5156};// bandit killzone a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill4"; expCond="(player distance kill4) < 500;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; }; class Item10 { position[]={12944.227,210.19823,12766.889};// hero killzone a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill5"; expCond="(player distance kill5) < 500;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; };
and killzone.sqf as instructed:
Private ["_msg"]; if (isServer) exitWith { "PVOZ_EPOCH_KILLZONE" addPublicVariableEventHandler { _msg = _this select 1; _msg = str(_msg); if (isServer) then { [nil, nil, rspawn, [_msg], {systemChat (_this select 0);}] call RE; }; }; }; [] spawn {if (isNil "killZone") then {killZone = false;}; };
The original post works as intended, tested and worked. As soon as i try and pin point the locations where players cant kill other players, then i get the errors.
-
It can be possible if you set the spots in your mission.sqm
and then you must adjust the code in server_playerDied.sqf
if (_killer isKindOf "Man"|| if kill1 or kill2 or kill3 ) then { [_killer] execVM "addons\jail\start_punish.sqf" } else { if ((count crew _killer) > 1) then { if ((gunner _killer) in (crew _killer)) then { [(gunner _killer)] execVM "addons\jail\start_punish.sqf" } else { [(driver _killer)] execVM "addons\jail\start_punish.sqf" }; } else { [(driver _killer)] execVM "addons\jail\start_punish.sqf" }; };
kill1 and kill2 and kill3 you need to makes sensors in your missions.sqm
class Item12 { position[]={1348.44,339,4065.91};// position you want a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill1"; expCond="(player distance kill1) < 100;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; }; class Item13 { position[]={1348.44,339,4065.91};// position you want a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill2"; expCond="(player distance kill2) < 100;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; }; class Item14 { position[]={1348.44,339,4065.91};// position you want a=100; b=100; activationBy="WEST"; repeating=1; interruptable=0; age="UNKNOWN"; name="kill3"; expCond="(player distance kill3) < 100;"; expActiv="canbuild = true;killZone = true;"; expDesactiv="canbuild = true;killZone = false;"; class Effects { }; };
and make file that actives the zone.
in the init.sqf place this add the bottom.
[] ExecVM "folderyouwant\killzone.sqf";
past this in your killzone.sqf
Private ["_msg"]; if (isServer) exitWith { "PVOZ_EPOCH_KILLZONE" addPublicVariableEventHandler { _msg = _this select 1; _msg = str(_msg); if (isServer) then { [nil, nil, rspawn, [_msg], {systemChat (_this select 0);}] call RE; }; }; }; [] spawn {if (isNil "killZone") then {killZone = false;}; };
This might work let me know.
Thank you, but i seem to get some errors, while testing i get this:
17:44:00 Error in expression <bject; }; if (_killer isKindOf "Man"|| if kill1 or kill2 or kill3 or kill4 or k> 17:44:00 Error position: <if kill1 or kill2 or kill3 or kill4 or k> 17:44:00 Error if: Type Object, expected Bool 17:44:00 File z\addons\dayz_server\compile\server_playerDied.sqf, line 91
my server_playerDied.sqf :
if (_killer isKindOf "Man"|| if kill1 or kill2 or kill3 or kill4 or kill5 ) then { [_killer] execVM "addons\jail\start_punish.sqf" } else { if ((count crew _killer) > 1) then { if ((gunner _killer) in (crew _killer)) then { [(gunner _killer)] execVM "addons\jail\start_punish.sqf" } else { [(driver _killer)] execVM "addons\jail\start_punish.sqf" }; } else { [(driver _killer)] execVM "addons\jail\start_punish.sqf" }; };
Any tips?
-
Great mod :)
Would there be a way to apply the prison script to certain spots on the map only? for example, if someone kills someone withing a certain radius of a trader.
-
-
wait one sec, just recognized a wired issue. When retrieving a vehicle with contents inside the spawn script throws and error and therefore no objectID is set.Need to sort out if it could come from the fix or if it´s in general from ZSC 3
updated my OP.
Confirmed working, thanks a mill man.
-
Awesome, thanks man
-
Hey everybody!
Version 4 has been released! :D :D :D :D :D :D
striker
Awesome work buddy, so do we just copy pasta and replace the files you have provided? naturally the custom guys will have to merge files if i am correct.
-
Ok i fix the save problem ? but me next Problem is i cant install any Debug Monitor. I want 2 install this "
I cant seem to locate an installation guide and files for Asremix's custom HUD either. Would be nice if someone could share the information.
-
-
Hmm Is there a way to make it so the Ai don't spawn until players come within a certain radius of the mission so if no one goes to it the server debug frames stay high? less for the server to clean up / smoother running server etc.
+1 My server takes a beating when the missions AI spawn in
-
-
Im actually going to run small events with your xmas trees, every day or so im going to drop a key for a nice heli or armored vehicle for the guys to go find on the map.
-
Also i share it here
with biedi file so u can move now your tree where u want with editor!
Awesome, thanks SadBoy.
-
Thanks for this, used the one tree at stary only :P , trying to keep the mission file size a bit down :mellow:
-
Could I get the tut for this?
+1 Asremix seems to be ignoring my PM's
-
Hey
Has anyone managed to get Zupa's SC 3.0 (or any single currency) working with the virtual garage? If i store coin in a vehicle, store the vehicle in the garage and then retrieve it again, i lose all my coin.
I managed to get it to store the vehicle with coin, but when i get it back, i have "any" as my coin value and can take as much as i want out of the vehicle.
any tips would be great :D
EDIT : I have the same issue with with the combo key changer , when changing codes on vaults, as soon as you change a code, the safe appears to be recreated, ignoring the coin stored in it.
[Release] Pick 10 Spawn system
in A2: Epoch Mods (1.0.5.1)
Posted
wow, this is a pretty cool idea you have here. I like the 2nd menu you have as well. Great stuff :)