God Mode Traders

I can take a look for you if you would like, I have it running on my server, even added it for the airplane, hero, and bandit traders as well. Just pm me with your mission file or upload it here and I will have a look and see what is going on.
 
class Sensors
{
items=7;
class Item0
{
position[]={6325.6772,304.99033,7807.7412};
a=100;
b=100;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="zonestary";
expCond="(player distance zonestary) < 100;";
expActiv="TitleText[""Now entering trader outpost Stary"",""PLAIN DOWN""]; canbuild = false;";
expDesactiv="TitleText[""Now leaving trader outpost Stary"",""PLAIN DOWN""]; canbuild = true;";
class Effects
{
};
};
class Item1
{
position[]={4063.4226,365.00577,11664.19};
a=100;
b=100;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="zonebash";
expCond="(player distance zonebash) < 100;";
expActiv="TitleText[""Now entering trader outpost Bash"",""PLAIN DOWN""]; canbuild = false;";
expDesactiv="TitleText[""Now leaving trader outpost Bash"",""PLAIN DOWN""]; canbuild = true;";
class Effects
{
};
};
class Item2
{
position[]={11447.472,317.26886,11364.504};
a=100;
b=100;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="zoneklen";
expCond="(player distance zoneklen) < 100;";
expActiv="TitleText[""Now entering trader outpost Klen"",""PLAIN DOWN""]; canbuild = false;";
expDesactiv="TitleText[""Now leaving trader outpost Klen"",""PLAIN DOWN""]; canbuild = true;";
class Effects
{
};
};
class Item3
{
position[]={1179.35,0.001,10053.8};
a=95;
b=95;
rectangular=1
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""You've left KOBRA Command, Good Luck.."", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
class Item4
{
position[]={6325.6772,0,7807.7412};
a=150;
b=150;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West";
name="Basis_West";
expActiv="if (playerSide == WEST) then {[Basis_West] execVM ""safezone.sqf""};";
class Effects
{
};
};
class Item5
{
position[]={4063.4226,0,11664.19};
a=150;
b=150;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West";
name="Basis_West";
expActiv="if (playerSide == WEST) then {[Basis_West] execVM ""safezone.sqf""};";
class Effects
{
};
};
class Item6
{
position[]={11447.472,0,11364.504};
a=150;
b=150;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West";
name="Basis_West";
expActiv="if (playerSide == WEST) then {[Basis_West] execVM ""safezone.sqf""};";
class Effects
{
};
};
};
};

Everything looks fine to me but I must've missed something, this is the class sensor part of my mission.sqm
 
You will need to create a folder called safezones, and within that folder create a separate .sqf file for each city, i.e. safezone_stary.sqf and so on. The code you have here is calling for the same safezone on each city, therefore, it will not display the text when you enter the safezone. Here is what my mission.sqm for the safezones looks like:
Code:
class Item0
        {
            position[]={6325.6772,304.99033,7807.7412};
            a=100;
            b=100;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            text="Basis_West_Stary";
            name="Basis_West_Stary";
            expCond="(player distance Basis_West_Stary) < 100;";
            expActiv="if (playerSide == WEST) then {[Basis_West_Stary] execVM ""safezones\safezone_stary.sqf""}; canbuild = false;";
            expDesactiv="canbuild = true;";
            class Effects
            {
            };
        };
        class Item1
        {
            position[]={4063.4226,365.00577,11664.19};
            a=100;
            b=100;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            text="Basis_West_Bash";
            name="Basis_West_Bash";
            expCond="(player distance Basis_West_Bash) < 100;";
            expActiv="if (playerSide == WEST) then {[Basis_West_Bash] execVM ""safezones\safezone_bash.sqf""}; canbuild = false;";
            expDesactiv="canbuild = true;";
            class Effects
            {
            };
        };
        class Item2
        {
            position[]={11447.472,317.26886,11364.504};
            a=100;
            b=100;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            text="Basis_West_Klen";
            name="Basis_West_Klen";
            expCond="(player distance Basis_West_Klen) < 100;";
            expActiv="if (playerSide == WEST) then {[Basis_West_Klen] execVM ""safezones\safezone_klen.sqf""}; canbuild = false;";
            expDesactiv="canbuild = true;";
            class Effects
            {
            };
        };
        class Item3
        {
            position[]={12062.1,0.058,12637.8};
            a=100;
            b=100;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            text="Basis_West_Airplane";
            name="Basis_West_Airplane";
            expCond="(player distance Basis_West_Airplane) < 100;";
            expActiv="if (playerSide == WEST) then {[Basis_West_Airplane] execVM ""safezones\safezone_airplane.sqf""}; canbuild = false;";
            expDesactiv="canbuild = true;";
            class Effects
            {
            };
        };
        class Item4
        {
            position[]={12946.5,0.001,12764.9};
            a=100;
            b=100;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            text="Basis_West_Hero";
            name="Basis_West_Hero";
            expCond="(player distance Basis_West_Hero) < 100;";
            expActiv="if (playerSide == WEST) then {[Basis_West_Hero] execVM ""safezones\safezone_hero.sqf""}; canbuild = false;";
            expDesactiv="canbuild = true;";
            class Effects
            {
            };
        };
        class Item5
        {
            position[]={1606.63,0.296,7805.31};
            a=100;
            b=100;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            text="Basis_West_Bandit";
            name="Basis_West_Bandit";
            expCond="(player distance Basis_West_Bandit) < 100;";
            expActiv="if (playerSide == WEST) then {[Basis_West_Bandit] execVM ""safezones\safezone_bandit.sqf""}; canbuild = false;";
            expDesactiv="canbuild = true;";
            class Effects
            {
            };
        };
You will then need to create the corresponding files and place them in the safezone folder that you created earlier. Here is the safezone_stary.sqf:
Code:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
  {
    waitUntil {vehicle player in list _Basis};
titleText ["Welcome to trader city Stary, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious  = {};
player allowDamage false;
    waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving trader city Stary, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
  }
Now create a file called safezone_bash.sqf and insert this into it:
Code:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
  {
    waitUntil {vehicle player in list _Basis};
titleText ["Welcome to trader city Bash, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious  = {};
player allowDamage false;
    waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving trader city Bash, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
  }
Now create a file called safezone_klen.sqf and insert this into it:
Code:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
  {
    waitUntil {vehicle player in list _Basis};
titleText ["Welcome to trader city Klen, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious  = {};
player allowDamage false;
    waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving trader city Klen, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
 
  }
 
Here is the code for the other three if you wish to use it.
For safezone_airplane.sqf:
Code:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
  {
    waitUntil {vehicle player in list _Basis};
titleText ["Welcome to the Airplane trader, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious  = {};
player allowDamage false;
    waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving Airplane dealer, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
  }
For safezone_hero.sqf insert:
Code:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
  {
    waitUntil {vehicle player in list _Basis};
titleText ["Welcome to the Hero trader, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious  = {};
player allowDamage false;
    waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving Hero trader, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
  }
For safezone_bandit.sqf insert:
Code:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
  {
    waitUntil {vehicle player in list _Basis};
titleText ["Welcome to the Bandit trader, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious  = {};
player allowDamage false;
    waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving Bandit trader, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
  }
Hopefully this will help you, also make sure to remove any mention of the trader cities from your mission.sqm, otherwise it will not work, let me know if you have any more problems with this and I will be glad to help! If you decide to not use the hero, bandit, and airplane safezone, be sure to remove the code from the mission.sqm that calls for those files.
 
Sorry for using the threat but i am trying this right now, can't get it work tho, maybe i am to tierd!

My mission.sqf isn't the same i think..
Where to put the info in mission.sqf exactly?

My mission file contains a lot of "Vehicle" shit, right now nothing seems right for me. I guess its right coz the server did create that and it was the at the first place lol
Sorry in advance!

Here is it all;

_vehicle_39 = objNull;
if (true) then
{
_this = createVehicle ["Land_Toilet", [11467.155, 11341.848, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_39 = _this;
_this setDir 305.48679;
_this setPos [11467.155, 11341.848, 3.0517578e-005];
};

_vehicle_42 = objNull;
if (true) then
{
_this = createVehicle ["ClutterCutter_EP1", [11467.027, 11364.092, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_42 = _this;
_this setDir -7.4119859;
_this setPos [11467.027, 11364.092, -3.0517578e-005];
};

_vehicle_44 = objNull;
if (true) then
{
_this = createVehicle ["ClutterCutter_EP1", [11459.176, 11355.807, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
_vehicle_44 = _this;
_this setDir -7.4119859;
_this setPos [11459.176, 11355.807, 6.1035156e-005];
};

_vehicle_58 = objNull;
if (true) then
{
_this = createVehicle ["Land_Market_stalls_01_EP1", [11466.341, 11354.129, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_58 = _this;
_this setDir 485.22388;
_this setPos [11466.341, 11354.129, 3.0517578e-005];
};

_vehicle_60 = objNull;
if (true) then
{
_this = createVehicle ["Land_Barrel_water", [11461.964, 11350.411], [], 0, "CAN_COLLIDE"];
_vehicle_60 = _this;
_this setDir -7.4119859;
_this setPos [11461.964, 11350.411];
};

_vehicle_62 = objNull;
if (true) then
{
_this = createVehicle ["LADAWreck", [11446.667, 11339.981, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
_vehicle_62 = _this;
_this setDir -157.55025;
_this setPos [11446.667, 11339.981, -6.1035156e-005];
};

_vehicle_71 = objNull;
if (true) then
{
_this = createVehicle ["AmmoCrates_NoInteractive_Large", [11465.908, 11356.04, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
_vehicle_71 = _this;
_this setDir 36.088291;
_this setPos [11465.908, 11356.04, -6.1035156e-005];
};

_this = createCenter civilian;
_center_1 = _this;

_group_1 = createGroup _center_1;

_unit_13 = objNull;
if (true) then
{
_this = _group_1 createUnit ["Profiteer4", [11449.484, 11341.03, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
_unit_13 = _this;
_this setDir 34.525925;
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
_this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_unit_17 = objNull;
if (true) then
{
_this = _group_1 createUnit ["RU_Villager3", [7996.1021, 2899.0759, 0.6355527], [], 0, "CAN_COLLIDE"];
_unit_17 = _this;
_this setDir 86.85891;
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
_this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

_vehicle_73 = objNull;
if (true) then
{
_this = createVehicle ["SmallTable", [11462.709, 11365.512, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_73 = _this;
_this setDir -49.904377;
_this setVehicleInit "this allowDammage false;this enableSimulation false;";
_this setPos [11462.709, 11365.512, 3.0517578e-005];
};

_vehicle_79 = objNull;
if (true) then
{
_this = createVehicle ["Base_WarfareBBarrier10xTall", [11468.974, 11348.18], [], 0, "CAN_COLLIDE"];
_vehicle_79 = _this;
_this setDir -54.695484;
_this setPos [11468.974, 11348.18];
};

_vehicle_80 = objNull;
if (true) then
{
_this = createVehicle ["Land_covering_hut_big_EP1", [11462.838, 11365.436, -0.55735058], [], 0, "CAN_COLLIDE"];
_vehicle_80 = _this;
_this setDir -48.673214;
_this setPos [11462.838, 11365.436, -0.55735058];
};

_vehicle_81 = objNull;
if (true) then
{
_this = createVehicle ["Misc_palletsfoiled", [11461.064, 11364.81, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_81 = _this;
_this setDir 51.760998;
_this setPos [11461.064, 11364.81, -3.0517578e-005];
};

_vehicle_85 = objNull;
if (true) then
{
_this = createVehicle ["AmmoCrates_NoInteractive_Large", [11463.023, 11367.06, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_85 = _this;
_this setDir 43.500278;
_this setPos [11463.023, 11367.06, -3.0517578e-005];
};

And it continue far far more!
processInitCommands;

And then the for the script;

class Item0
{
position[]={6325.6772,304.99033,7807.7412};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Stary";
name="Basis_West_Stary";
expCond="(player distance Basis_West_Stary) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Stary] execVM ""safezones\safezone_stary.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item1
{
position[]={4063.4226,365.00577,11664.19};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Bash";
name="Basis_West_Bash";
expCond="(player distance Basis_West_Bash) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Bash] execVM ""safezones\safezone_bash.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item2
{
position[]={11447.472,317.26886,11364.504};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Klen";
name="Basis_West_Klen";
expCond="(player distance Basis_West_Klen) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Klen] execVM ""safezones\safezone_klen.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item3
{
position[]={12062.1,0.058,12637.8};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Airplane";
name="Basis_West_Airplane";
expCond="(player distance Basis_West_Airplane) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Airplane] execVM ""safezones\safezone_airplane.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item4
{
position[]={12946.5,0.001,12764.9};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Hero";
name="Basis_West_Hero";
expCond="(player distance Basis_West_Hero) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Hero] execVM ""safezones\safezone_hero.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item5
{
position[]={1606.63,0.296,7805.31};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Bandit";
name="Basis_West_Bandit";
expCond="(player distance Basis_West_Bandit) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Bandit] execVM ""safezones\safezone_bandit.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
I know i have done some wierd shit, but dunno what atm :(
 
Well i realise that after i posted, but i have added it do sqm instead of sqf. But still dosent happen anything. I dont get any message for god mode ON/OFF or can get up the trader menu either. I dont know what i do wrong tbh!
Guess i need some sleep :D lol
 
I Have a problem with nearly every script that i try to import basicly i get into my server and then it says receiving mission file 164kb out of 165kb and then doesn't load at all sometime it will get stuck on 165/165 and i don't know what to do?
 
Yes, reread what he posted, you must remove ALL prior references to the trader zones in your class sensors and add the new ones
 
position[]={5071.751,338.98993,9719.9492};
name="AirVehicles";
text="AWOL's Airfield";
type="mil_dot";
colorName="ColorGreen";
};
class Item12
{
position[]={5459.1191,365.08759,13309.652};
name="NorthFriendlyVendors";
text="Name Me Now!";
type="mil_circle";
colorName="ColorGreen";
};
class Item13
{
position[]={6881.0449,393.86917,11457.029};
name="DevilsBandits";
text="Devil's Bandit Den";
type="mil_warning";
colorName="ColorRed";
};
class Item14
{
position[]={1591.652,283.90994,7787.5093};
name="BlackMarket";
text="Black Market";
type="mil_unknown";
colorName="ColorBlack";
};
class Item15
{
position[]={11464.014,317.37949,11373.576};
name="KlenBanditCamp";
text="Klen's Bandit Den";
type="mil_warning";
colorName="ColorRed";
};
class Item16
{
position[]={10726.446,277.24985,5318.7354};
name="TrashVendorLady";
text="Trina's Coastal Collections";
type="mil_dot";
colorName="ColorBlack";
};
class Item17
{
position[]={8106.6689,470,9298.2188};
name="GreensCars";
text="Green's Quality Cars";
type="mil_dot";
colorName="ColorBlack";
};
};
class Sensors
{
items=6;
class Item0
{
position[]={6325.6772,304.99033,7807.7412};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Stary";
name="Basis_West_Stary";
expCond="(player distance Basis_West_Stary) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Stary] execVM ""safezones\safezone_stary.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item1
{
position[]={4063.4226,365.00577,11664.19};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Bash";
name="Basis_West_Bash";
expCond="(player distance Basis_West_Bash) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Bash] execVM ""safezones\safezone_bash.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item2
{
position[]={11447.472,317.26886,11364.504};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Klen";
name="Basis_West_Klen";
expCond="(player distance Basis_West_Klen) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Klen] execVM ""safezones\safezone_klen.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item3
{
position[]={12062.1,0.058,12637.8};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Airplane";
name="Basis_West_Airplane";
expCond="(player distance Basis_West_Airplane) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Airplane] execVM ""safezones\safezone_airplane.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item4
{
position[]={12946.5,0.001,12764.9};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Hero";
name="Basis_West_Hero";
expCond="(player distance Basis_West_Hero) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Hero] execVM ""safezones\safezone_hero.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
class Item5
{
position[]={1606.63,0.296,7805.31};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Basis_West_Bandit";
name="Basis_West_Bandit";
expCond="(player distance Basis_West_Bandit) < 100;";
expActiv="if (playerSide == WEST) then {[Basis_West_Bandit] execVM ""safezones\safezone_bandit.sqf""}; canbuild = false;";
expDesactiv="canbuild = true;";
class Effects
{
};
};
};
class Intro
{
addOns[]=
{
"chernarus"
};
addOnsAuto[]=

There's a portion
 
I reverted back to my old mission.sqm, and it's an old one. Anyone have a working safezone one I could have? Or a vanilla 1.0.2.3?
 
The one listed above by Onedisturbed is exactly what I used, Only change stuff in the class sensors, do not mess with any lines above or below the sensors
 
You can follow this guide http://dayz.st/w/Protected_Dome_for_Epoch can either choose between the 3 main traders or all of them. Tested and confirmed working on my epoch server.

Installed Working Addons : Sarge AI, Self Blood, Auto Refuel, Missions, Improved trader menus, Towing (lifting isn't working), minimal structures added

Addon links:
https://github.com/Swiss-Sarge/SAR_AI < credits to Sarge
http://opendayz.net/threads/krixes-self-bloodbag-script.12288/ < credits to Krixes
< credits to Tiger
http://opendayz.net/threads/release-dayzchernarus-mission-system.12169/ < credits to Lazylink, TheSzerdi, Falcyn and TAW_Tonic
http://opendayz.net/threads/release-epoch-trader-menu-dialogs.13041/ < credits to Maca134
http://opendayz.net/threads/dayz-chenarus-auto-refuel-all-stations.7056/page-4 <credits to Seven

I followed your guide and it works, but as soon as my friend shot me to test he was kicked and banned. Anyway to fix this? No restriction error was given, it didn't even show up in the chat window as a Battleye kick, public variable, or restriction; it only popped up across the center of the screen. Help with the lifting portion of Tiger's script would be helpful as well. Any help is appreciated. Thank you.

init.sqf
Code:
/*   
    For DayZ Epoch
    Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];
 
//REALLY IMPORTANT VALUES
dayZ_instance =    11;                    //The instance
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
 
 
//disable greeting menu
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
 
// DayZ Epoch config
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
MaxHeliCrashes= 5; // Default = 5
MaxVehicleLimit = 600; // Default = 50
MaxDynamicDebris = 500; // Default = 100
dayz_MapArea = 14000; // Default = 10000
dayz_maxLocalZombies = 30; // Default = 30
 
EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
dayz_fullMoonNights = true;
 
//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";                //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";    //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";                //Compile regular functions
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf";                //Compile trader configs
call compile preprocessFileLineNumbers "Scripts\compiles.sqf"; //Compile custom compiles
progressLoadingScreen 1.0;
 
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
 
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
 
BIS_Effects_globalEvent = {
    BIS_effects_gepv = _this;
    publicVariable "BIS_effects_gepv";
    _this call BIS_Effects_startEvent;
};
 
BIS_Effects_startEvent = {
    switch (_this select 0) do {
        case "AirDestruction": {
                [_this select 1] spawn BIS_Effects_AirDestruction;
        };
        case "AirDestructionStage2": {
                [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
        };
        case "Burn": {
                [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
        };
    };
};
 
"BIS_effects_gepv" addPublicVariableEventHandler {
    (_this select 1) call BIS_Effects_startEvent;
};
 
if ((!isServer) && (isNull player) ) then
{
waitUntil {!isNull player};
waitUntil {time > 3};
};
 
if ((!isServer) && (player != player)) then
{
  waitUntil {player == player};
  waitUntil {time > 3};
};
 
if (isServer) then {
    call compile preprocessFileLineNumbers "dynamic_vehicle.sqf";                //Compile vehicle configs
[] execVM "buildings\update2.sqf";
   
    // Add trader citys
    _nil = [] execVM "mission.sqf";
    _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
 
if (!isDedicated) then {
[] execVM "Scripts\kh_actions.sqf";
    //Conduct map operations
    0 fadeSound 0;
    waitUntil {!isNil "dayz_loadScreenMsg"};
    dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
   
    //Run the player monitor
    _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
    _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";   
    _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
        [] execVM "safezone.sqf";
        _void = [] execVM "traders\init.sqf";
 
    //Lights
    //[17,6,true,false,true,true,72,242,600,10,[0.698, 0.556, 0.419],"Generator_DZ",208,"",0.5] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
};
#include "\z\addons\dayz_code\system\REsec.sqf"
  // UPSMON
  call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
 
  // SHK
  call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
 
  // run SAR_AI
  [] execVM "addons\SARGE\SAR_AI_init.sqf";
// Loadout config
DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","ItemSodaPepsi","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
DefaultWeapons = ["Makarov"];
DefaultBackpack = "DZ_Patrol_Pack_EP1";
DefaultBackpackWeapon = "";
execVM "R3F_ARTY_AND_LOG\init.sqf"
 
mission.sqm(markers)
Code:
};
class Markers
{
items=17;
class Item0
{
position[]={7839.6055,381.33774,8414.7324};
name="center";
type="Empty";
};
class Item1
{
position[]={-18697.58,379.53012,25815.256};
name="respawn_west";
type="Empty";
};
class Item2
{
position[]={4932.3345,0.39950246,1989.1094};
name="spawn0";
type="Empty";
};
class Item3
{
position[]={2236.0391,0.63119155,1923.3735};
name="spawn1";
type="Empty";
};
class Item4
{
position[]={8738.1328,0.45720705,2122.1082};
name="spawn2";
type="Empty";
};
class Item5
{
position[]={10909.267,0.57597214,2422.3096};
name="spawn3";
type="Empty";
};
class Item6
{
position[]={13510.764,0.44504455,5249.3027};
name="spawn4";
type="Empty";
};
class Item7
{
position[]={6326.4805,304.99265,7809.4888};
name="Tradercitystary";
text="Trader City Stary";
type="mil_circle";
colorName="ColorBlack";
};
class Item8
{
position[]={4361.4937,3,2259.9526};
name="wholesaleSouth";
text="Wholesaler";
type="mil_dot";
colorName="ColorBlack";
};
class Item9
{
position[]={13532.614,3.0083523,6355.9497};
name="boatTraderEast";
text="Wholesaler";
type="mil_dot";
colorName="ColorBlack";
};
class Item10
{
position[]={7989.3354,0.30462033,2900.9946};
name="BoatDealerSouth";
text="Boat Dealer";
type="mil_dot";
colorName="ColorBlack";
};
class Item11
{
position[]={12060.471,158.85699,12638.533};
name="AirVehicles";
text="Aircraft Dealer";
type="mil_dot";
colorName="ColorGreen";
};
class Item12
{
position[]={1606.6443,289.70795,7803.5156};
name="BanditDen";
text="Bandit Camp";
type="mil_dot";
colorName="ColorRed";
};
class Item13
{
position[]={11447.91,317.27109,11364.536};
name="Klen";
text="Trader City Klen";
type="mil_circle";
colorName="ColorGreen";
};
class Item14
{
position[]={13441.16,1.1406164,5429.3013};
name="BoatDealerEast";
text="Boat Dealer";
type="mil_dot";
colorName="ColorBlack";
};
class Item15
{
position[]={4064.2258,365.13501,11665.938};
name="TradercityBash";
text="Trader City Bash";
type="mil_circle";
colorName="ColorBlack";
};
class Item16
{
position[]={12944.227,210.19823,12766.889};
name="HeroTrader";
text="Hero Camp";
type="mil_dot";
colorName="ColorBlue";
};
};
 
Back
Top