Jump to content
  • 0

Help Antihack Blocking Script.. No idea why...


DangerRuss

Question

So in my previous post I mentioned that the antihack was blocking rtitletext


Ive updated the antihack and this is no longer a problem HOWEVER, the script still isn't running!

Im using this carepackage script

private ["_positionM","_Marker","_LastUsedTime","_height","_downspeed""_distance","_boxtype","_unit","_getPos","_position","_box","_chute","_smoke","_var","_textt","_tools","_items","_getPos2","_positionB","_supplies","_weapon","_weapon2","_weapon3","_weapon4","_weapon5","_weapon6","_giveWep","_possibleMags","_mag","_whichBuild","_crateItems","_text"];

//_cost = 2000;
//_wealth = player getVariable["cashMoney",0];
_distance = 500;
_boxtype = "USVehicleBox_EP1";
_LastUsedTime = 10;
_height = 100;
_downspeed = -3;
_OnlineLimit = 1;
_unit = player;
_getPos = getPos _unit;
_position = [_getPos select 0, (_getPos select 1) - 5, _height];
_positionM = [_getPos select 0, _getPos select 1];

//System Chat Message
_playerName = name player;
//System Chat Message

//item lists
_tools = ["ItemEtool","ItemKnife","ItemGPS"];
_items = ["ItemSodaPepsi","FoodCanSardines"];
//_walls = ["ItemWoodWallGarageDoor","ItemWoodWallWithDoorLg","ItemWoodWallLg","ItemWoodWallGarageDoor","ItemWoodFloor","metal_floor_kit"];
_supplies = ["ItemTankTrap","PartGlass"];

/*
_giveWep = ["FHQ_ACR_WDL_TWS_SD","BAF_LRR_scoped","USSR_cheytacM200_sd"] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;
*/


//select arrays to use
_crateItems = [_supplies,_items] call BIS_fnc_selectRandom;
_Time = time - lastpack;

if(_Time < _LastUsedTime) exitWith { // If cooldown is not done then exit script
    cutText [format["please wait %1 before calling in another Air Drop!",(round(_Time - _LastUsedTime))], "PLAIN DOWN"]; //display text at bottom center of screen when players cooldown is not done
};

//if(!(canbuild) || (inSafeZone)) exitWith { cutText ["\n\nYou are in a Safezone and cannot perform that action!" , "PLAIN DOWN"]; };
if (dayz_combat == 1) exitwith { cutText ["\n\nYou are in combat and cannot perform that action!", "PLAIN DOWN"] };


if ((count playableUnits) < _OnlineLimit) exitWith  { cutText [format["Air Drop Failed. Less Than %1 Players online.",_OnlineLimit], "PLAIN DOWN"]; };
/*if(_wealth < _cost) exitWith { cutText [format["You need %1 coins to Call an AirDrop.",_cost], "PLAIN DOWN"]; };

player setVariable["cashMoney",(_wealth - _cost),true];

PVDZE_plr_Save = [player,(magazines player),true,true] ;
publicVariableServer "PVDZE_plr_Save";*/

deleteMarker "MarkerDrop";
_null  = createMarker ["MarkerDrop",_positionM];
"MarkerDrop"  setMarkerText "Air Drop";
"MarkerDrop"  setMarkerType "Vehicle";
"MarkerDrop"  setMarkerColor "ColorRed";



//System Chat Message
_message = format["%1 has called in an AirDrop. It will arrive in 100 seconds! It is marked on your map, Go Capture it!",_playerName];
[nil,nil,rTitleText,_message, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Called By a Player Successfully"];
//System Chat Message


lastpack = time;

for "_x" from 1 to 10 do {
    if (_x >= 2) then {cutText [format ["AIR DROP ARRIVING IN %1", 101-_x], "PLAIN DOWN"];};
    uiSleep 1;
};

_chute = createVehicle ["ParachuteMediumEast", _position, [], 0, "FLY"];
_chutePos = getPos _chute;
_box = createVehicle [_boxtype, _chutePos, [], 0, "FLY"];
_box attachTo [_chute, [0,0,3]];
_box setVariable ["Mission",1,true];
_chute setVariable ["Mission",1,true];
_box setVariable ["ObjectID", ""];
_chute setVariable ["ObjectID", ""];
_smoke = "SmokeShellBlue" createVehicle (getPos _box);
_smoke attachTo [_box, [0,0,0]];
_var = floor((random 20) + 1);



//display text to alert user
_textt = format ["\nCarepackage is above you!",10];
titleText [_textt,"PLAIN DOWN"];


waitUntil {getPos _box select 2 < 4};
/*
while {getPos _box select 2 > 4} do
{
 _chute SetVelocity [0,0,_downspeed];
 uiSleep 0.1;
};
*/


detach _box;
while {getPos _box select 2 > 0} do {
_box setPos [getPos _box select 0, getPos _box select 1, (getPos _box select 2) - .25]
};
deleteVehicle _chute;
_posATL = getPosATL _box;
deleteVehicle _box;
_boxx = _boxtype createVehicle _posATL;
_boxx setVariable ["Mission",1,true];
_boxx setVariable ["ObjectID", ""];

clearweaponcargoglobal _boxx;
clearmagazinecargoglobal _boxx;
/*
{_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_boxx addWeaponCargoGlobal [_x, 5];} forEach _tools;
_boxx addMagazineCargoGlobal [_mag, _var];
_boxx addWeaponCargoGlobal [_giveWep, 5];
*/

for "_i" from 0 to 9 do {
_giveWep = ["FHQ_ACR_WDL_TWS_SD","BAF_LRR_scoped","USSR_cheytacM200_sd","FHQ_ACR_BLK_RCO_GL","BAF_LRR_scoped_W","USSR_cheytacM200"] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;
_boxx addMagazineCargoGlobal [_mag, _var];
_boxx addWeaponCargoGlobal [_giveWep, 1];
};

{_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_boxx addWeaponCargoGlobal [_x, 1];} forEach _tools;





_getPos2 = getPos _boxx;
_positionB = [_getPos2 select 0, _getPos2 select 1];

deleteMarker "MarkerDrop";
_null  = createMarker ["MarkerDrop",_positionB];
"MarkerDrop"  setMarkerText "Air Drop";
"MarkerDrop"  setMarkerType "Defend";
"MarkerDrop"  setMarkerColor "ColorRed";

_message3= format["The Carepackage has Landed! Check Your Map and Race to Claim it!",_playerName];
[nil,nil,rTitleText,_message3, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Landed Successfully"];


//Wait until player is near, wait 90 seconds and delete marker/box.
waitUntil{
sleep 1;
(({isPlayer _x && _x distance _boxx <= 5} count playableUnits > 0));
};


_message2 = format["A player is at the carepackage! It will despawn in 90 seconds!",_playerName];
[nil,nil,rTitleText,_message2, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Landed Successfully"];


sleep 10;
deleteMarker "MarkerDrop";
deleteVehicle _boxx;


_message = format["The Air Drop has been Captured",_playerName];
[nil,nil,rTitleText,_message, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop captured Successfully. Deleting Marker"];



I execute it in the fn_selfactions.sqf when a player looks at a specific object... 

with that antihack off it works beautifully. Turn on the antihack, and when you click on the object nothing happens.

So
Player looks at object
Scroll wheel action appears
Player clicks scroll wheel action
Nothing happens.
Works with antihack disabled.

Any ideas?

Link to comment
Share on other sites

Recommended Posts

  • 0

hmm... have you looked in the sky when a player is executing the script? 

There is code where infistar is doing that when the _Boxcheck is enabled

 

to whitelist a box, go into your ah.sqf and Search for 

_fine = [

and add your box in there, or use one which is already in there :)

 

Are there any errors in your RPT or client RPT?

Have you tried to set some messages (like checkpoints to let you know) in the script and see if its working till a certain point or not at all?

Link to comment
Share on other sites

  • 0

hmm... have you looked in the sky when a player is executing the script? 

There is code where infistar is doing that when the _Boxcheck is enabled

 

to whitelist a box, go into your ah.sqf and Search for 

_fine = [

and add your box in there, or use one which is already in there :)

 

I have that check set to false but I'll go ahead and try this just to rule it out.

 

 

Are there any errors in your RPT or client RPT?

Have you tried to set some messages (like checkpoints to let you know) in the script and see if its working till a certain point or not at all?

No errors in the RPT's client or server. Script works fine without the antihack. The antihack isn't logging anything anywhere to show why it isn't working.

I have no idea how to set up checkpoints like that... But when you execute the script without the antihack, A message pops up telling you, you have X amount of time before the box hits the ground. Then a server wide message pops up letting everyone know you have called in the box. Also a marker appears on the map on the player location where he called the box in from.... With the antihack none of these things happen. You press the action on the scroll wheel and nothing happens EXCEPT it does remove the money from the player on overpoch.. So a player can sit there and go broke but nothing else happsn :)

 

Tried adding the box to that array, still nothing.

Link to comment
Share on other sites

  • 0

so since the player losing money, means the script is exectuing, allways a good sign :)

 

here is a script which has some checkpoints to see till which point the script is actually going, post the results

private ["_positionM","_Marker","_LastUsedTime","_height","_downspeed""_distance","_boxtype","_unit","_getPos","_position","_box","_chute","_smoke","_var","_textt","_tools","_items","_getPos2","_positionB","_supplies","_weapon","_weapon2","_weapon3","_weapon4","_weapon5","_weapon6","_giveWep","_possibleMags","_mag","_whichBuild","_crateItems","_text"];

//_cost = 2000;
//_wealth = player getVariable["cashMoney",0];
_distance = 500;
_boxtype = "USVehicleBox_EP1";
_LastUsedTime = 10;
_height = 100;
_downspeed = -3;
_OnlineLimit = 1;
_unit = player;
_getPos = getPos _unit;
_position = [_getPos select 0, (_getPos select 1) - 5, _height];
_positionM = [_getPos select 0, _getPos select 1];
systemchat format["got all variables"];
//System Chat Message
_playerName = name player;
//System Chat Message

//item lists
_tools = ["ItemEtool","ItemKnife","ItemGPS"];
_items = ["ItemSodaPepsi","FoodCanSardines"];
//_walls = ["ItemWoodWallGarageDoor","ItemWoodWallWithDoorLg","ItemWoodWallLg","ItemWoodWallGarageDoor","ItemWoodFloor","metal_floor_kit"];
_supplies = ["ItemTankTrap","PartGlass"];
systemchat format["set some variables"];
/*
_giveWep = ["FHQ_ACR_WDL_TWS_SD","BAF_LRR_scoped","USSR_cheytacM200_sd"] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;systemchat format["Objects now: %1",_Count];
*/

systemchat format["right befor calling it"];
//select arrays to use
_crateItems = [_supplies,_items] call BIS_fnc_selectRandom;
_Time = time - lastpack;

if(_Time < _LastUsedTime) exitWith { // If cooldown is not done then exit script
    cutText [format["please wait %1 before calling in another Air Drop!",(round(_Time - _LastUsedTime))], "PLAIN DOWN"]; //display text at bottom center of screen when players cooldown is not done
};
systemchat format["Combatcheck: %1",((dayz_combat == 1))];
//if(!(canbuild) || (inSafeZone)) exitWith { cutText ["\n\nYou are in a Safezone and cannot perform that action!" , "PLAIN DOWN"]; };
if (dayz_combat == 1) exitwith { cutText ["\n\nYou are in combat and cannot perform that action!", "PLAIN DOWN"] };


if ((count playableUnits) < _OnlineLimit) exitWith  { cutText [format["Air Drop Failed. Less Than %1 Players online.",_OnlineLimit], "PLAIN DOWN"]; };
/*if(_wealth < _cost) exitWith { cutText [format["You need %1 coins to Call an AirDrop.",_cost], "PLAIN DOWN"]; };

player setVariable["cashMoney",(_wealth - _cost),true];

PVDZE_plr_Save = [player,(magazines player),true,true] ;
publicVariableServer "PVDZE_plr_Save";*/
systemchat format["setmarker: %1",_Count];
deleteMarker "MarkerDrop";
_null  = createMarker ["MarkerDrop",_positionM];
"MarkerDrop"  setMarkerText "Air Drop";
"MarkerDrop"  setMarkerType "Vehicle";
"MarkerDrop"  setMarkerColor "ColorRed";



//System Chat Message
_message = format["%1 has called in an AirDrop. It will arrive in 100 seconds! It is marked on your map, Go Capture it!",_playerName];
[nil,nil,rTitleText,_message, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Called By a Player Successfully"];
//System Chat Message
systemchat format["announced: %1",_message];

lastpack = time;

for "_x" from 1 to 10 do {
    if (_x >= 2) then {cutText [format ["AIR DROP ARRIVING IN %1", 101-_x], "PLAIN DOWN"];};
    uiSleep 1;
};
systemchat format["time till airdrop announced"];
_chute = createVehicle ["ParachuteMediumEast", _position, [], 0, "FLY"];
_chutePos = getPos _chute;
_box = createVehicle [_boxtype, _chutePos, [], 0, "FLY"];
_box attachTo [_chute, [0,0,3]];
_box setVariable ["Mission",1,true];
_chute setVariable ["Mission",1,true];
_box setVariable ["ObjectID", ""];
_chute setVariable ["ObjectID", ""];
_smoke = "SmokeShellBlue" createVehicle (getPos _box);
_smoke attachTo [_box, [0,0,0]];
_var = floor((random 20) + 1);


systemchat format["crate spawned: %1",_boxtype];
//display text to alert user
_textt = format ["\nCarepackage is above you!",10];
titleText [_textt,"PLAIN DOWN"];


waitUntil {getPos _box select 2 < 4};
/*
while {getPos _box select 2 > 4} do
{
 _chute SetVelocity [0,0,_downspeed];
 uiSleep 0.1;
};
*/


detach _box;
while {getPos _box select 2 > 0} do {
_box setPos [getPos _box select 0, getPos _box select 1, (getPos _box select 2) - .25]
};
deleteVehicle _chute;
_posATL = getPosATL _box;
deleteVehicle _box;
_boxx = _boxtype createVehicle _posATL;
_boxx setVariable ["Mission",1,true];
_boxx setVariable ["ObjectID", ""];
systemchat format["crate dropped"];
clearweaponcargoglobal _boxx;
clearmagazinecargoglobal _boxx;
/*
{_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_boxx addWeaponCargoGlobal [_x, 5];} forEach _tools;
_boxx addMagazineCargoGlobal [_mag, _var];
_boxx addWeaponCargoGlobal [_giveWep, 5];
*/

for "_i" from 0 to 9 do {
_giveWep = ["FHQ_ACR_WDL_TWS_SD","BAF_LRR_scoped","USSR_cheytacM200_sd","FHQ_ACR_BLK_RCO_GL","BAF_LRR_scoped_W","USSR_cheytacM200"] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;
_boxx addMagazineCargoGlobal [_mag, _var];
_boxx addWeaponCargoGlobal [_giveWep, 1];
};

{_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_boxx addWeaponCargoGlobal [_x, 1];} forEach _tools;


systemchat format["crate add loot"];


_getPos2 = getPos _boxx;
_positionB = [_getPos2 select 0, _getPos2 select 1];

deleteMarker "MarkerDrop";
_null  = createMarker ["MarkerDrop",_positionB];
"MarkerDrop"  setMarkerText "Air Drop";
"MarkerDrop"  setMarkerType "Defend";
"MarkerDrop"  setMarkerColor "ColorRed";

_message3= format["The Carepackage has Landed! Check Your Map and Race to Claim it!",_playerName];
[nil,nil,rTitleText,_message3, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Landed Successfully"];
systemchat format["crate dropped"];

//Wait until player is near, wait 90 seconds and delete marker/box.
waitUntil{
sleep 1;
(({isPlayer _x && _x distance _boxx <= 5} count playableUnits > 0));
};


_message2 = format["A player is at the carepackage! It will despawn in 90 seconds!",_playerName];
[nil,nil,rTitleText,_message2, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Landed Successfully"];
systemchat format["player arrived"];

sleep 10;
deleteMarker "MarkerDrop";
deleteVehicle _boxx;


_message = format["The Air Drop has been Captured",_playerName];
[nil,nil,rTitleText,_message, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop captured Successfully. Deleting Marker"];
systemchat format["ende"];
Link to comment
Share on other sites

  • 0

 

so since the player losing money, means the script is exectuing, allways a good sign :)

 

here is a script which has some checkpoints to see till which point the script is actually going, post the results

 

I get a list of system chat messages like so

got all variables

set some variables

right befor calling it

Combatcheck: bool

setmarker: any

and thats it.. nothing else happens.. on overpoch it removes the money from the player and that is all that happens.

Link to comment
Share on other sites

  • 0

Best way to debug a script like this is to use

diag_log

in Different stages to check if that part executed and where did the player get kicked

well it's not kicking anymore it's just not executing at this point.

could you give me an example of where you would put it in this script?

Link to comment
Share on other sites

  • 0

well it's not kicking anymore it's just not executing at this point.

could you give me an example of where you would put it in this script?

 

well, i guess you could also use system chat like Schwede did

Link to comment
Share on other sites

  • 0

ok, so the script breaks (at least first) somehwere around here:

systemchat format["setmarker"];
deleteMarker "MarkerDrop";
_null  = createMarker ["MarkerDrop",_positionM];
"MarkerDrop"  setMarkerText "Air Drop";
"MarkerDrop"  setMarkerType "Vehicle";
"MarkerDrop"  setMarkerColor "ColorRed";


systemchat format["after marker"];

so since this is a simple marker, we can try to skip this part and see how far we can get now.

theoretically the script should brake on the next set marker part.

Then you also can skip this part, by simply comment it out (just for testing purpose of course)

If the script is finishing without the setmarker part, we now where is the problem and could easily move the setmarker part over to the server :)

On how to do this we can try as soon as we got the script completly working without the markers ;)

 

here is the script with both creatmarker parts commented out: 

private ["_inCombat","_positionM","_Marker","_LastUsedTime","_height","_downspeed""_distance","_boxtype","_unit","_getPos","_position","_box","_chute","_smoke","_var","_textt","_tools","_items","_getPos2","_positionB","_supplies","_weapon","_weapon2","_weapon3","_weapon4","_weapon5","_weapon6","_giveWep","_possibleMags","_mag","_whichBuild","_crateItems","_text"];

//_cost = 2000;
//_wealth = player getVariable["cashMoney",0];
_distance = 500;
_boxtype = "USVehicleBox_EP1";
_LastUsedTime = 10;
_height = 100;
_downspeed = -3;
_OnlineLimit = 1;
_unit = player;
_getPos = getPos _unit;
_position = [_getPos select 0, (_getPos select 1) - 5, _height];
_positionM = [_getPos select 0, _getPos select 1];
_inCombat = player getVariable["combattimeout", 0];
systemchat format["got all variables"];
//System Chat Message
_playerName = name player;
//System Chat Message

//item lists
_tools = ["ItemEtool","ItemKnife","ItemGPS"];
_items = ["ItemSodaPepsi","FoodCanSardines"];
//_walls = ["ItemWoodWallGarageDoor","ItemWoodWallWithDoorLg","ItemWoodWallLg","ItemWoodWallGarageDoor","ItemWoodFloor","metal_floor_kit"];
_supplies = ["ItemTankTrap","PartGlass"];
systemchat format["set some variables"];
/*
_giveWep = ["FHQ_ACR_WDL_TWS_SD","BAF_LRR_scoped","USSR_cheytacM200_sd"] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;systemchat format["Objects now: %1",_Count];
*/

systemchat format["right befor calling it"];
//select arrays to use
_crateItems = [_supplies,_items] call BIS_fnc_selectRandom;
_Time = time - lastpack;

if(_Time < _LastUsedTime) exitWith { // If cooldown is not done then exit script
    cutText [format["please wait %1 before calling in another Air Drop!",(round(_Time - _LastUsedTime))], "PLAIN DOWN"]; //display text at bottom center of screen when players cooldown is not done
};
systemchat format["_inCombat: %1",(_inCombat >= time)];
//if(!(canbuild) || (inSafeZone)) exitWith { cutText ["\n\nYou are in a Safezone and cannot perform that action!" , "PLAIN DOWN"]; };
if (player getVariable["combattimeout", 0] >= time) exitwith { cutText ["\n\nYou are in combat and cannot perform that action!", "PLAIN DOWN"] };


if ((count playableUnits) < _OnlineLimit) exitWith  { cutText [format["Air Drop Failed. Less Than %1 Players online.",_OnlineLimit], "PLAIN DOWN"]; };
/*if(_wealth < _cost) exitWith { cutText [format["You need %1 coins to Call an AirDrop.",_cost], "PLAIN DOWN"]; };

player setVariable["cashMoney",(_wealth - _cost),true];

PVDZE_plr_Save = [player,(magazines player),true,true] ;
publicVariableServer "PVDZE_plr_Save";*/
systemchat format["setmarker"];
/*
deleteMarker "MarkerDrop";
_null  = createMarker ["MarkerDrop",_positionM];
"MarkerDrop"  setMarkerText "Air Drop";
"MarkerDrop"  setMarkerType "Vehicle";
"MarkerDrop"  setMarkerColor "ColorRed";
*/

systemchat format["after marker"];
//System Chat Message
_message = format["%1 has called in an AirDrop. It will arrive in 100 seconds! It is marked on your map, Go Capture it!",_playerName];
[nil,nil,rTitleText,_message, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Called By a Player Successfully"];
//System Chat Message
systemchat format["announced: %1",_message];

lastpack = time;

for "_x" from 1 to 10 do {
    if (_x >= 2) then {cutText [format ["AIR DROP ARRIVING IN %1", 101-_x], "PLAIN DOWN"];};
    uiSleep 1;
};
systemchat format["time till airdrop announced"];
_chute = createVehicle ["ParachuteMediumEast", _position, [], 0, "FLY"];
_chutePos = getPos _chute;
_box = createVehicle [_boxtype, _chutePos, [], 0, "FLY"];
_box attachTo [_chute, [0,0,3]];
_box setVariable ["Mission",1,true];
_chute setVariable ["Mission",1,true];
_box setVariable ["ObjectID", ""];
_chute setVariable ["ObjectID", ""];
_smoke = "SmokeShellBlue" createVehicle (getPos _box);
_smoke attachTo [_box, [0,0,0]];
_var = floor((random 20) + 1);


systemchat format["crate spawned: %1",_boxtype];
//display text to alert user
_textt = format ["\nCarepackage is above you!",10];
titleText [_textt,"PLAIN DOWN"];


waitUntil {getPos _box select 2 < 4};
/*
while {getPos _box select 2 > 4} do
{
 _chute SetVelocity [0,0,_downspeed];
 uiSleep 0.1;
};
*/


detach _box;
while {getPos _box select 2 > 0} do {
_box setPos [getPos _box select 0, getPos _box select 1, (getPos _box select 2) - .25]
};
deleteVehicle _chute;
_posATL = getPosATL _box;
deleteVehicle _box;
_boxx = _boxtype createVehicle _posATL;
_boxx setVariable ["Mission",1,true];
_boxx setVariable ["ObjectID", ""];
systemchat format["crate dropped"];
clearweaponcargoglobal _boxx;
clearmagazinecargoglobal _boxx;
/*
{_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_boxx addWeaponCargoGlobal [_x, 5];} forEach _tools;
_boxx addMagazineCargoGlobal [_mag, _var];
_boxx addWeaponCargoGlobal [_giveWep, 5];
*/

for "_i" from 0 to 9 do {
_giveWep = ["FHQ_ACR_WDL_TWS_SD","BAF_LRR_scoped","USSR_cheytacM200_sd","FHQ_ACR_BLK_RCO_GL","BAF_LRR_scoped_W","USSR_cheytacM200"] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;
_boxx addMagazineCargoGlobal [_mag, _var];
_boxx addWeaponCargoGlobal [_giveWep, 1];
};

{_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_boxx addWeaponCargoGlobal [_x, 1];} forEach _tools;


systemchat format["crate add loot"];


_getPos2 = getPos _boxx;
_positionB = [_getPos2 select 0, _getPos2 select 1];
/*
deleteMarker "MarkerDrop";
_null  = createMarker ["MarkerDrop",_positionB];
"MarkerDrop"  setMarkerText "Air Drop";
"MarkerDrop"  setMarkerType "Defend";
"MarkerDrop"  setMarkerColor "ColorRed";
*/

_message3= format["The Carepackage has Landed! Check Your Map and Race to Claim it!",_playerName];
[nil,nil,rTitleText,_message3, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Landed Successfully"];
systemchat format["crate dropped"];

//Wait until player is near, wait 90 seconds and delete marker/box.
waitUntil{
sleep 1;
(({isPlayer _x && _x distance _boxx <= 5} count playableUnits > 0));
};


_message2 = format["A player is at the carepackage! It will despawn in 90 seconds!",_playerName];
[nil,nil,rTitleText,_message2, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Landed Successfully"];
systemchat format["player arrived"];

sleep 10;
deleteMarker "MarkerDrop";
deleteVehicle _boxx;


_message = format["The Air Drop has been Captured",_playerName];
[nil,nil,rTitleText,_message, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop captured Successfully. Deleting Marker"];
systemchat format["ende"];
Link to comment
Share on other sites

  • 0

ok since that is sorted out, we could now move the maker creation over to the server, so he will be creating it instead of the player, 

For this i would need your public_EH.sqf and server_functions.sqf

This will a little trial and error process, since i do not have that much experience with sending and recieving over variables to the server.

But should not be that hard =)

Link to comment
Share on other sites

  • 0

Welllll I have 2 servers :)  one is Overpoch and one is Overwatch, but they're both having the same problem
I'll show you my overwatch server files I guess

server_functions.sqf

[] spawn {[] execVM "\z\addons\dayz_server\init\AH.sqf";};
#include "\z\addons\dayz_server\compile\server_toggle_debug.hpp"
waituntil {!isnil "bis_fnc_init"};

BIS_MPF_remoteExecutionServer = {
    if ((_this select 1) select 2 == "JIPrequest") then {
        [nil,(_this select 1) select 0,"loc",rJIPEXEC,[any,any,"per","execVM","ca\Modules\Functions\init.sqf"]] call RE;
    };
};

BIS_Effects_Burn =            {};
server_playerLogin =        compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerLogin.sqf";
server_playerSetup =        compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerSetup.sqf";
server_onPlayerDisconnect = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_onPlayerDisconnect.sqf";
server_updateObject =        compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_updateObject.sqf";
server_playerDied =            compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDied.sqf";
server_publishObj =         compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishObject.sqf";    //Creates the object in DB
server_publishBld =         compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishBuilding.sqf";    //Creates the building in DB
server_deleteObj =            compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_deleteObj.sqf";     //Removes the object from the DB
server_playerSync =            compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerSync.sqf";
zombie_findOwner =            compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\zombie_findOwner.sqf";
server_updateNearbyObjects =    compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_updateNearbyObjects.sqf";
fnc_plyrHit   = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fnc_plyrHit.sqf";
server_spawnCrashSite  =    compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnCrashSite.sqf";
server_sendToClient =        compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_sendToClient.sqf";
server_Wildgenerate =        compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\zombie_Wildgenerate.sqf";
server_plantSpawner =        compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_plantSpawner.sqf";

//Get instance name (e.g. dayz_1.chernarus)
fnc_instanceName = {
    "dayz_" + str(dayz_instance) + "." + worldName
};
//spawnComposition = compile preprocessFileLineNumbers "ca\modules\dyno\data\scripts\objectMapper.sqf"; //"\z\addons\dayz_code\compile\object_mapper.sqf";
//fn_bases = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fn_bases.sqf";

vehicle_handleServerKilled = {
    private["_unit","_killer"];
    _unit = _this select 0;
    _killer = _this select 1;
        
    [_unit, "killed"] call server_updateObject;
    
    _unit removeAllMPEventHandlers "MPKilled";
    _unit removeAllMPEventHandlers "mphit";
    _unit removeAllMPEventHandlers "mprespawn";
    _unit removeAllEventHandlers "FiredNear";
    _unit removeAllEventHandlers "Killed";
    _unit removeAllEventHandlers "HandleDamage";
    _unit removeAllEventHandlers "GetIn";
    _unit removeAllEventHandlers "GetOut";
    _unit removeAllEventHandlers "Fired";
        _unit removeAllEventHandlers "Local";
};

check_publishobject = {
    private ["_allowed","_allowedObjects","_object","_playername"];

    _object = _this select 0;
    _playername = _this select 1;
    _allowedObjects = ["TentStorage", "Hedgehog_DZ", "Sandbag1_DZ", "BearTrap_DZ", "Wire_cat1", "StashSmall", "StashMedium", "DomeTentStorage", "CamoNet_DZ", "Trap_Cans", "TrapTripwireFlare", "TrapBearTrapSmoke", "TrapTripwireGrenade", "TrapTripwireSmoke", "TrapBearTrapFlare"];
    _allowed = false;

#ifdef OBJECT_DEBUG
    diag_log format ["DEBUG: Checking if Object: %1 is allowed published by %2", _object, _playername];
#endif

    if ((typeOf _object) in _allowedObjects) then {
#ifdef OBJECT_DEBUG
        diag_log format ["DEBUG: Object: %1 published by %2 is Safe",_object, _playername];
#endif
        _allowed = true;
    };

    _allowed;
};

//event Handlers
eh_localCleanup = {
    
private ["_object","_type","_unit"];
_object = _this select 0;
    _object addEventHandler ["local", {
        if(_this select 1) then {
            _unit = _this select 0;
            _type = typeOf _unit;
             _myGroupUnit = group _unit;
             _unit removeAllMPEventHandlers "mpkilled";
             _unit removeAllMPEventHandlers "mphit";
             _unit removeAllMPEventHandlers "mprespawn";
             _unit removeAllEventHandlers "FiredNear";
            _unit removeAllEventHandlers "HandleDamage";
            _unit removeAllEventHandlers "Killed";
            _unit removeAllEventHandlers "Fired";
            _unit removeAllEventHandlers "GetOut";
            _unit removeAllEventHandlers "GetIn";
            _unit removeAllEventHandlers "Local";
            clearVehicleInit _unit;
            deleteVehicle _unit;
            deleteGroup _myGroupUnit;
            _unit = nil;
            diag_log ("CLEANUP: DELETED A " + str(_type) );
        };
    }];
};

server_hiveWrite = {
    private["_data"];
    //diag_log ("ATTEMPT WRITE: " + _this);
    _data = "HiveExt" callExtension _this;
    //diag_log ("WRITE: " +str(_data));
};

server_hiveReadWrite = {
    private["_key","_resultArray","_data"];
    _key = _this;
    //diag_log ("ATTEMPT READ/WRITE: " + _key);
    _data = "HiveExt" callExtension _key;
    //diag_log ("READ/WRITE: " +str(_data));
    _resultArray = call compile format ["%1",_data];
    _resultArray;
};

onPlayerDisconnected         "[_uid,_name] call server_onPlayerDisconnect;";

server_getDiff =    {
    private["_variable","_object","_vNew","_vOld","_result"];
    _variable = _this select 0;
    _object =     _this select 1;
    _vNew =     _object getVariable[_variable,0];
    _vOld =     _object getVariable[(_variable + "_CHK"),_vNew];
    _result =     0;
    if (_vNew < _vOld) then {
        //JIP issues
        _vNew = _vNew + _vOld;
        _object getVariable[(_variable + "_CHK"),_vNew];
    } else {
        _result = _vNew - _vOld;
        _object setVariable[(_variable + "_CHK"),_vNew];
    };
    _result;
};

server_getDiff2 =    {
    private["_variable","_object","_vNew","_vOld","_result"];
    _variable = _this select 0;
    _object =     _this select 1;
    _vNew =     _object getVariable[_variable,0];
    _vOld =     _object getVariable[(_variable + "_CHK"),_vNew];
    _result = _vNew - _vOld;
    _object setVariable[(_variable + "_CHK"),_vNew];
    _result;
};

dayz_objectUID2 = {
    private["_position","_dir","_key"];
    _dir = _this select 0;
    _key = "";
    _position = _this select 1;
    {
        _x = _x * 10;
        if ( _x < 0 ) then { _x = _x * -10 };
        _key = _key + str(round(_x));
    } forEach _position;
    _key = _key + str(round(_dir));
    _key;
};

dayz_recordLogin = {
    private["_key"];
    _key = format["CHILD:103:%1:%2:%3:",_this select 0,_this select 1,_this select 2];
    _key call server_hiveWrite;
};
currentInvites = [];
publicVariable "currentInvites"; //DZGM

call compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fa_hiveMaintenance.sqf";
#include "owcleanup.sqf";
//Buildings
call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\main.sqf";

//---------MapAdditions--------
execVM "\z\addons\dayz_server\mapadditions\BerezinoStadium.sqf";
execVM "\z\addons\dayz_server\mapadditions\BlackForest.sqf";
execVM "\z\addons\dayz_server\mapadditions\CustomMap1.sqf";
execVM "\z\addons\dayz_server\mapadditions\dichina_base.sqf";
execVM "\z\addons\dayz_server\mapadditions\KamenkaEscape.sqf";
execVM "\z\addons\dayz_server\mapadditions\KlenCastle.sqf";
execVM "\z\addons\dayz_server\mapadditions\KlenTankTraps.sqf";
execVM "\z\addons\dayz_server\mapadditions\LopatinoOutpost.sqf";
execVM "\z\addons\dayz_server\mapadditions\Notebooks.sqf";
execVM "\z\addons\dayz_server\mapadditions\NovyLugbase.sqf";
execVM "\z\addons\dayz_server\mapadditions\NWAcustom.sqf";
execVM "\z\addons\dayz_server\mapadditions\oilfieldsbase.sqf";
execVM "\z\addons\dayz_server\mapadditions\Petrovka.sqf";
execVM "\z\addons\dayz_server\mapadditions\SkalistyCastle.sqf";
execVM "\z\addons\dayz_server\mapadditions\ZelenoCastle1.sqf";

execVM "\z\addons\dayz_server\init\broadcaster.sqf"; //DZGM


 

Where would I find public_EH.sqf?  I can't seem to find it in my server PBO anywhere...

Link to comment
Share on other sites

  • 0

The public_EH is in the DayZ_code.pbo but seems like you are using the vanilla one, so I will use it then :)

As soon as I got some time I will try to get this working ;)

you mean the entire file public_eh? or is there an SQF? I'll have a look.

 

Found it

"PVDZ_drg_RaLW"   		addPublicVariableEventHandler {[_this select 1] execVM "\z\addons\dayz_code\medical\publicEH\load_wounded.sqf"};
"PVDZ_drg_RLact"		addPublicVariableEventHandler {[_this select 1] execVM "\z\addons\dayz_code\medical\load\load_wounded.sqf"};
"PVDZ_hlt_Bleed"		addPublicVariableEventHandler {_id = (_this select 1) spawn fnc_usec_damageBleed};
"PVCDZ_veh_SH" 			addPublicVariableEventHandler {(_this select 1) call fnc_veh_handleDam}; // set damage to vehicle part
"PVDZ_veh_SF"			addPublicVariableEventHandler {(_this select 1) call fnc_veh_handleRepair}; // repair a part from a vehicle
"PVCDZ_obj_HideBody"	addPublicVariableEventHandler {hideBody (_this select 1)};
"PVCDZ_obj_GutBody"		addPublicVariableEventHandler {(_this select 1) spawn local_gutObject};
"PVCDZ_veh_SetFuel"		addPublicVariableEventHandler {(_this select 1) spawn local_setFuel};
"dayzInfectedCamps"		addPublicVariableEventHandler {(_this select 1) call infectedcamps};

	"PVDZ_Server_changeOwner" addPublicVariableEventHandler {		
		_agent = ((_this select 1) select 0);
		_reciever = ((_this select 1) select 1);
		_ownerID = owner _agent;
		_newownerID = 1; //1 = server

		if (typeName _reciever == "OBJECT") then {
			_newownerID = owner _reciever;
		};
		if (isnil ("Owner")) then {
			_agent setVariable ["Owner",_ownerID];
		};

		_agent setOwner _newownerID;
		diag_log ("TRANSFER OWNERSHIP: " + (typeOf _agent) + " OF _unit: " + str(_agent) + " TO _client: " + str(_reciever) );
	};

	"PVDZ_Server_Simulation" addPublicVariableEventHandler {
		_agent = ((_this select 1) select 0);
		_control = ((_this select 1) select 1);
		
		_agent enableSimulation _control;
	};

if (isServer) then {
	"PVDZ_plr_Death"		addPublicVariableEventHandler {_id = (_this select 1) spawn server_playerDied};
	"PVDZ_plr_Save"			addPublicVariableEventHandler {_id = (_this select 1) call server_playerSync;};
	"PVDZ_obj_Publish"		addPublicVariableEventHandler {(_this select 1) call server_publishObj};
	"PVDZ_veh_Save" 		addPublicVariableEventHandler {(_this select 1) call server_updateObject};
	"PVDZ_plr_Login1"		addPublicVariableEventHandler {_id = (_this select 1) call server_playerLogin};
	"PVDZ_plr_Login2"		addPublicVariableEventHandler {(_this select 1) call server_playerSetup};
	"PVDZ_plr_LoginRecord"	addPublicVariableEventHandler {_id = (_this select 1) spawn dayz_recordLogin};
	"PVDZ_obj_Delete"		addPublicVariableEventHandler {(_this select 1) spawn server_deleteObj};
	"PVDZ_send" addPublicVariableEventHandler {(_this select 1) call server_sendToClient};

	"PVDZ_objgather_Delete" addPublicVariableEventHandler {
		_obj = ((_this select 1) select 0);
		_player = ((_this select 1) select 1);
		_type = typeOf _obj;
		_dis = _player distance _obj;

		if (_dis < 3) then {
			if (_type in Dayz_plants) then {
				deleteVehicle _obj;
			};
		};	
	};

	"PVDZ_serverStoreVar" addPublicVariableEventHandler {
		_obj = ((_this select 1) select 0);
		_name = ((_this select 1) select 1);
		_value = 0;

		switch (_name) do {
			case "looted": {
				_obj =  ((_this select 1) select 0);
				_name = "looted";
				_value = ((_this select 1) select 2);
				
				_obj setVariable [_name, _value];
			};
			case "zombieSpawn": {
				_obj = ((_this select 1) select 0);
				_name = "zombieSpawn";
				_value = ((_this select 1) select 2);
				
				_obj setVariable [_name, _value];
			};
			case "USEC_BloodQty": {
				_obj = ((_this select 1) select 0);
				_name = ((_this select 1) select 1);
				_value = ((_this select 1) select 2);
				//diag_log format ["%1, %2, %3", _obj, _name, _value]; 
				if (isPlayer _obj) then {
					_obj setVariable [_name, _value];
				};
			};
		};
	};

	"PVDZ_receiveVar" addPublicVariableEventHandler {
		_owner = ((_this select 1) select 0);
		_object = ((_this select 1) select 1);
		_name = ((_this select 1) select 2);
		_value = ((_this select 1) select 3);

		switch (_name) do {
			case "looted": {
				diag_log format ["%4 - %1, %2, %3", _object, _name, _value, "receive looted"]; 
			};
			case "zombieSpawn": {
				//diag_log format ["%4 - %1, %2, %3", _object, _name, _value, "receive zombieSpawn"]; 
			};
		};

		_ownerID = owner _owner;
		_return = _object getVariable [_name,_value];
		a=0;
		b=5;
		while {a<b} do {a=a+1};

		diag_log format ["%1", _return];	

		PVCDZ_SetVar = [_object,_name,_return];
		_ownerID publicVariableClient "PVCDZ_SetVar";
	};
	
	"PVDZ_getTickTime" addPublicVariableEventHandler {
		_owner = owner (_this select 1);
		//diag_log format["TICK TIME: %1", diag_tickTime];
		PVCDZ_setServerTickTimeOffset = diag_TickTime;
		_owner publicVariableClient "PVCDZ_setServerTickTimeOffset";
	};
};

//Client only
if (!isDedicated) then {
	"dayzSetDate"				addPublicVariableEventHandler {setDate (_this select 1)};
	"PVDZ_obj_RoadFlare"		addPublicVariableEventHandler {(_this select 1) spawn object_roadFlare};
	"PVDZ_drg_RaDrag"   		addPublicVariableEventHandler {(_this select 1) execVM "\z\addons\dayz_code\medical\publicEH\animDrag.sqf"};
	"PVDZ_obj_Fire"				addPublicVariableEventHandler {nul=(_this select 1) spawn BIS_Effects_Burn};
	
			//Medical
	"PVCDZ_hlt_Morphine"		addPublicVariableEventHandler {(_this select 1) call player_medMorphine};
	"PVCDZ_hlt_Bandage"			addPublicVariableEventHandler {(_this select 1) call player_medBandage};
	"PVCDZ_hlt_Epi"				addPublicVariableEventHandler {(_this select 1) call player_medEpi};
	"PVCDZ_hlt_Transfuse"		addPublicVariableEventHandler {(_this select 1) call player_medTransfuse; PVCDZ_hlt_Transfuse = nil};
	"PVCDZ_hlt_PainK"			addPublicVariableEventHandler {(_this select 1) call player_medPainkiller};
	"PVCDZ_hlt_AntiB"			addPublicVariableEventHandler {(_this select 1) call player_medAntiBiotics};

	"PVCDZ_plr_Humanity"		addPublicVariableEventHandler {(_this select 1) spawn player_humanityChange};
	"PVCDZ_plr_Legs"			addPublicVariableEventHandler {
		_entity = (_this select 1) select 0;
		_entity setHit ["legs", 1];

		if (isPlayer _entity) then {
			_entity setVariable ["hit_legs", 2, true];
		};
	};
	
	"PVCDZ_SetVar" addPublicVariableEventHandler {
		_object = ((_this select 1) select 0);
		_name = ((_this select 1) select 1);
		_value = ((_this select 1) select 2);
		_object setVariable [_name,_value];
	};
	
	"PVCDZ_setServerTickTimeOffset"  addPublicVariableEventHandler {
		_serverTickTime = _this select 1;
		_offset = _serverTickTime - diag_tickTime;
		dayz_tickTimeOffset = _offset;
		//diag_log format["SERVER TIME: %1    OFFSET: %2    PLAYER TIME: %3    COMPUTED TIME: %4", _serverTickTime, _offset, diag_tickTime, (diag_tickTime + _offset)];
	};	
};


Link to comment
Share on other sites

  • 0

ok doing the first tests now.

If its sorted out, i will try to get it working with infistar and then make it a bit easier to make custom content with it, like color, name size whatever. So you can easily use it for some other stuff too :)

 

EDIT: Worked ^^

now going to test it as a normal player =)

 

EDIT2: Worked, no kicks no bans, everybody can see it (should everybody is it or only the player who calls it?)

 

Now going to make it a bit more optional =)

Link to comment
Share on other sites

  • 0

ok got it :)

 

Not a big deal but it works ^^

 

soooo lets start to implement Schwedes fancy nancy map markers ;D

 

open your server_functions.sqf and add somewhere near the bottom:

Schwedes_ServerMarker = {
_markername = 	_this select 0;
_getPos = 		_this select 1;
_text = 		_this select 2;
_type = 		_this select 3;
_sizeX = 		_this select 4;
_sizeY = 		_this select 5;
_color = 		_this select 6;

_position = [_getPos select 0, _getPos select 1];

deleteMarker _markername;
_null  = createMarker [_markername,_position];
_markername  setMarkerText _text;
if (_type in ["ICON", "RECTANGLE", "ELLIPSE"]) then {
	_markername setMarkerShape _type;
	_markername  setMarkerSize [_sizeX,_sizeY];
} else {
	_markername  setMarkerType _type;
};
_markername  setMarkerColor _color;

};

open your public_EH.sqf

 

search for:

PVDZE_plr_LoginRecord

add below:

	//custom Marker
	"PVDZE_SchwedesMarker"		addPublicVariableEventHandler {(_this select 1) spawn Schwedes_ServerMarker};

now we can put some markers on every script we would like :D

 

This is how you do it:

_unit = player; //could also be a box, vehicle or whatever you like

_markername = 	"NameofMarker";
_getPos = 		getPos _unit;
_text = 		"DisplayText";
_type = 		"Vehicle"; //Possible Values: "ICON", "RECTANGLE", "ELLIPSE" << or >> https://community.bistudio.com/wiki/cfgMarkers
_sizeX = 		0; //Needs to be a Number || Use 0 if NOT using "ICON", "RECTANGLE", "ELLIPSE"
_sizeY = 		0; //Needs to be a Nubmer || Use 0 if NOT using "ICON", "RECTANGLE", "ELLIPSE"
_color = 		"ColorGreen"; //Possible Values: "Default", "ColorBlack", "ColorGrey", "ColorRed", "ColorGreen", "ColorBlue", "ColorYellow", "ColorOrange", "ColorWhite", "ColorPink", "ColorBrown", "ColorKhaki", "ColorWEST", "ColorEAST", "ColorGUER", "ColorCIV", "ColorUNKNOWN", "Color1_FD_F" (Light red), "Color2_FD_F" (Light khaki), "Color3_FD_F" (Light orange), "Color4_FD_F" (Light blue)


PVDZE_SchwedesMarker = [_markername,_getPos,_text,_type,_sizeX,_sizeY,_color];
publicVariable "PVDZE_SchwedesMarker";

Now we need to add a execption for our new publicVariable for Battleye :)

 

open publicVariable.txt

 

and add right after:

5 "PVDZE_"
!="PVDZE_SchwedesMarker"

so it looks like this:

5 "PVDZE_" !="PVDZE_SchwedesMarker" !="OtherPublicVariables" ....

Maybe i also should this release on the Epoch Mod Thread ^^

 

EDIT: Just realised i forgot to add something to delete the whole thing, will add the delete part tomorrow :)

Link to comment
Share on other sites

  • 0

One thing that I wanted to mention, Im running overwatch so there is no PVDZE_plr_LoginRecord and I nothing PVDZE in my publicvariable.txt either.   I dont know if that matters at all.

 

in my public_EH.sqf in thie if isServer section I have
 

if (isServer) then {
....
....
....
"PVDZ_plr_LoginRecord"	addPublicVariableEventHandler {_id = (_this select 1) spawn dayz_recordLogin};

I could just add your variable there?

 

Here's my publicvariable.txt

//new
5 !="BIS_effects_gepv" !="currentInvites" !="PVDZ_sec_atp" !="PVDZ_veh_Save" !="PVCDZ_obj_GutBody" !="PVDZ_obj_Publish" !="PVDZ_objgather_Knockdown" !="PVDZ_objgather_Delete" !="PVDZ_plr_Save" !="PVDZ_send" !="dayzSetFuel" !="PVDZ_obj_Delete" !="PVDZ_obj_Fire" !="PVDZ_hlt_Bleed" !="PVDZ_Server_changeOwner" !="PVDZ_Server_Simulation" !="PVDZ_plr_Death" !="PVDZ_obj_RoadFlare" !="PVDZ_getTickTime" !="PVDZ_veh_SF" !="PVDZ_drg_RaLW" !="PVDZ_drg_RLact" !="PVCDZ_obj_HideBody" !="PVCDZ_veh_SetFuel" !="dayzInfectedCamps" !="PVDZ_plr_Login1" !="PVDZ_plr_Login2" !="PVDZ_plr_LoginRecord" !="PVDZ_serverStoreVar" !="PVDZ_receiveVar" !="PVCDZ_SetVar" !="dayzSetDate" !="PVDZ_drg_RaDrag" !="PVDZ_obj_Fire" !="PVCDZ_hlt_Morphine" !="PVCDZ_hlt_Bandage" !="PVCDZ_hlt_Epi" !="PVCDZ_hlt_Transfuse" !="PVCDZ_hlt_PainK" !="PVCDZ_hlt_AntiB" !="PVCDZ_plr_Humanity" !="PVCDZ_plr_Legs" !="PVCDZ_setServerTickTimeOffset" !="drn_DynamicWeather_DebugTextEventArgs" !="drn_AskServerDynamicWeatherEventArgs" !="drn_DynamicWeatherEventArgs" !="drn_var_DynamicWeather_Rain" !="drn_var_DynamicWeather_ServerInitialized" !="DDOPP_pvSay" !="DDOPP_pvAnim" !="remExFP" !="remExField" !"player" !"PVAHR_" !="PVAH_AdminReq" !="PVAH_WriteLogReq"
5 "PVAHR_" !"PVAHR_0_"
1 "PVAH"
5 "PVAH_AdminRequest"
5 "PVAH_WriteLogRequest"
5="player"
5="server"
5="PVDZ_LOW_AdminList"
5="PVDZ_NORMAL_AdminList"
5="PVDZ_SUPER_AdminList"
5="PVDZ_A"
5="PVDZ_BLOCKED"
5="PVDZ_BanList"
5="PVDZ_writeAdmin_log_ARRAY"
5="PVDZ_hackerLog"
5="PVDZ_keylog"
5="PVDZ_AdminMenuCode"
5="PVDZ_boooox_array"
5 "HangenderRE"
5 "vilegaming"
5 "v.i.l.e"
5 "Lystic"
5 "Rustler"
5 "AntiHack"
5 "BIS_MPF_logic"
5 "BIS_MPF_dummygroup"
5 "BattleFieldClearance"
5 "remExFP" !="\"remExFP\" = [,,\"per\",\"execVM\",\"ca\Modules\Functions\init.sqf\"]"
5="AHKICK"
5="PVAHR_KICK"
1 "Delete"
1="PVAH_AdminReq"
1="PVAH_WriteLogReq"

You should definitely release this! 

Link to comment
Share on other sites

  • 0

5am here and after party -.-"

Sry for any typos ^^

you need to add the variable like I have said so vattleye won't kick players for sending it over to the server.

Yes you can add it jus5 in there, the important part is that the variable is in the isServer barracks (the right word? I mean thisbthibgs >> {})

this isn't much and is probably more a tool for other scripter to make easier markers.

As soon as the delete part is implemented I will release it in an own thread.

night mates ;D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...