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

Ok got it working now.

will make a release thread for it, but do not expect so much support on it, because I'm pretty bad at supporting my own releases ;D

you can install it then and I will prepare your carepackages script so you will see how to use it :)

Edit: all of that above as soon as I'm back home ^^

Link to comment
Share on other sites

  • 0

Ok got it working now.

will make a release thread for it, but do not expect so much support on it, because I'm pretty bad at supporting my own releases ;D

you can install it then and I will prepare your carepackages script so you will see how to use it :)

Edit: all of that above as soon as I'm back home ^^

excellent man! Honestly this is the first time Ive encountered a script that doesn't handle it's on markers server side (for example AI missions always handle their own markers). So hopefully I'll just need it for this script.

Link to comment
Share on other sites

  • 0

Ok so this is working great however Battleye is kicking me instantly when calling in the carepackage and Im not quite how to make a filter for this particular thing
The kick
 

01.04.2015 15:25:38: DangerRuss - Value Restriction #15 "remExField" = [,,"titleText","DangerRuss has called in an AirDrop. It will arrive in 100 seconds! It is marked on your map, Go Capture it!","PLAIN",6]

PublicVariableValue.txt

    //new
    5 "<NULL - team member>"
    5 "preprocessFile"
    5 "preprocessFileLineNumbers"
    5 "setVehicleInit"
    5 "processInitCommands"
    5 "HangenderRE"
    5 "vilegaming"
    5 "v\.i\.l\.e"
    5 "Lystic"
    5 "Rustler"
    5 "BattleFieldClearance"
    5 "BIS_MPF_logic"
    5 "BIS_MPF_dummygroup"
    5 "compile"
    5 "loadFile"
    5 "call"
    5 "mission"
    1 "spawn"
    5 "format"
    5 "parse"
    5 "terminate"
    5 "eventhandler"
    5 "hintC"
    5 "hintS"
    5 "loading"
    5 "\"call\""
    5 "call compile"
    5 "toString"
    5 "toArray"
    5 "ctrlset"
    5 "rsay"
    5 "rland"
    5 "rsetDir"
    5 "_YakB"
    5 "local_sefFuel"
    5 "getVariable"
    5 "hiveupdateresu"
    5 "isServer"
    5 "isDedicated"
    5 "cutText"
    5 "publicVariable"
    5 "code"
    5 "onPlayer"
    5 "select"
    5 "while"
    5 "count"
    5 "markerText"
    5 "BIS_fnc"
    5 "_bis"
    5 "markerType"
    5 "teamtype"
    5 "composeText"
    5 "teamName"
    5 "execVM"
    5 "fn_swapVars\.sqf"
    5 "processInitCommands"
    5 "promptRName\.sqf"
    5 "rpcCodeVarName"
    5 "rpcDirectCall"
    5 "broadcastRpcCallAll"
    5 "broadcastRpcCallIfLocal"
    5 "norrnRACarUp"
    5 "norrnRAPicUp"
    5 "markerBrush"
    5 "hideObject"
    5 "deleteCollection"
    5 "forceEnd"
    5 "createAgent"
    5 "deleteVehicle"
    5 "deleteTeam"
    5 "getPlayerUID"
    5 "getVariable"
    5 "addAction"
    5 "AddM"
    5 "AddP"
    5 "AddS"
    5 "AddV"
    5 "AddW"
    5 "setAcc"
    5 "setAtt"
    5 "setC"
    5 "setF" !="SetFuel"
    5 "setG"
    5 "setH"
    5 "setM"
    5 "setObj"
    5 "setOver"
    5 "setP"
    5 "setR"
    5 "setS"
    5 "setT"
    5 "setUnit"
    5 "setV"
    5 "setW"
    5 "execFSM"
    5 "clearM"
    5 "clearV"
    5 "clearW"
    5 "createD"
    5 "createG"
    5 "createM"
    5 "createS"
    5 "createT"
    5 "createU"
    5 "createV"
    5 "debugLog"
    5 "debugFSM"
    5 "deleteM"
    5 "kbTell"
    5 "kbReact"
    5 "fadeSound"
    5 "fadeMusic"
    5 "showC"
    5 "skipTime"
    5 "taskHint"
    5 "titleCut"
    5 "titleText" !",\"titleText\","
    5 "getM"
    5 "getFSMvariable"
    5 "getG"
    5 "moveIn"
    5 "synchronizeO"
    5 "synchronizeT"
    5 "synchronizeW"
    5 "triggerA"
    5 "triggerS"
    5 "triggerT"
    5 "MarkerColor"
    5 "MarkerDir"
    5 "MarkerPos"
    5 "MarkerSize"
    5 "onEachFrame"
    5 "hasInterface"
    5 "onMapS"
    5 "OnGroup"
    5 "onDouble"
    5 "onPreload"
    5 "onTeamS"
    5 "onShowNew"
    5 "setUnconscious"
    5 " exec "
    5 " set "
    5 " str "
    5 "exec\("
    5 "set\("
    5 "str\("
    5 "exec\["
    5 "set\["
    5 "str\["
    5 "exec\{"
    5 "set\{"
    5 "str\{"
    5 "exec'"
    5 "set'"
    5 "str'"
    5 "exec\""
    5 "set\""
    5 "str\""
    5 "\)exec"
    5 "\)set"
    5 "\)str"
    5 "\]exec"
    5 "\]set"
    5 "\]str"
    5 "\}exec"
    5 "\}set"
    5 "\}str"
    5 "'exec"
    5 "'set"
    5 "'str"
    5 "str    "
    5 "    \nstr"
    5 "\nstr"
    5 "str\n"
    5 "str\n    "
    5 ",str"
    5 "str,"
    5 "str "
    5 "set    "
    5 "    \nset"
    5 "\nset"
    5 "set\n"
    5 "set\n    "
    5 ",set"
    5 "set,"
    5 "set "
    5 "exec    "
    5 "exec\n"
    5 "exec\n    "
    5 ",exec"
    5 "exec,"
    5 "exec "
    5 "isNil"
    5 "object_setFixServer"
    5 "allowConnection"
    5 "check_publishobject"
    5 "dayz_disco"
    5 "dayz_hiveVersionNo"
    5 "dayz_objectUID"
    5 "dayz_objectUID2"
    5 "dayz_players"
    5 "dayz_serverObjectMonitor"
    5 "dayz_versionNo"
    5 "dayz_zombifiedTowns"
    5 "dayzPlayerLogin"
    5 "dayzPlayerLogin2"
    5 "isSinglePlayer"
    5 "needUpdate_objects"
    5 "server_characterSync"
    5 "server_getDiff"
    5 "server_getDiff2"
    5 "server_hiveReadWrite"
    5 "server_hiveWrite"
    5 "server_onPlayerDisconnect"
    5 "server_spawnCrashSite"
    5 "server_updateNearbyObjects"
    5 "vehicle_handleInteract"
    5 "vehicle_handleServerKilled"
    5 "allunits"
    5 "preprocess"
    5 "runinitscript"
    5 "createdialog"
    5 "modify"
    5 "BIS_Alice_fnc_CivilianHit"
    5 "BIS_Alice_mainscope"
    5 "BIS_fnc_getFactions"
    5 "allowConnection"
    5 "check_publishobject"
    5 "dayz_disco"
    5 "dayz_hiveVersionNo"
    5 "dayz_objectUID"
    5 "dayz_objectUID2"
    5 "dayz_players"
    5 "dayz_serverObjectMonitor"
    5 "dayz_versionNo"
    5 "dayz_zombifiedTowns"
    5 "dayzPlayerLogin"
    5 "dayzPlayerLogin2"
    5 "isSinglePlayer"
    5 "needUpdate_objects"
    5 "server_characterSync"
    5 "server_getDiff"
    5 "server_getDiff2"
    5 "server_hiveReadWrite"
    5 "server_hiveWrite"
    5 "server_onPlayerDisconnect"
    5 "server_spawnCrashSite"
    5 "server_updateNearbyObjects"
    5 "vehicle_handleInteract"
    5 "vehicle_handleServerKilled"
    5 "allunits"
    5 "preprocess"
    5 "runinitscript"
    5 "createdialog"
    5 "actionmonitor"
    5 "bis_"
    5 "building_spawnloot"
    5 "building_spawnzombies"
    5 "camp_spawnzombies"
    5 "dog_"
    5 "drn_"
    5 "eh_localcleanup"
    5 "fnc_"
    5 "fn_nicespot"
    5 "gear_ui_init"
    5 "horde_epeen_determine_humanity_fnc"
    5 "horde_epeen_fnc_fill_page"
    5 "infectedcamps"
    5 "local_eventkill"
    5 "local_gutobject"
    5 "local_setfuel"
    5 "local_zombiedamage"
    5 "object_"
    5 "player_alertzombies"
    5 "player_animalcheck"
    5 "player_checkstealth"
    5 "player_combatroll"
    5 "player_countmagazines"
    5 "player_crossbowbolt"
    5 "player_death"
    5 "player_fired"
    5 "player_firemonitor"
    5 "player_gearset"
    5 "player_gearsync"
    5 "player_guicontrolflash"
    5 "player_humanitychange"
    5 "player_humanitymorph"
    5 "player_medbandage"
    5 "player_medepi"
    5 "player_medmorphine"
    5 "player_medpainkiller"
    5 "player_medtransfuse"
    5 "player_music"
    5 "player_packtent"
    5 "player_projectilenear"
    5 "player_spawn_1"
    5 "player_spawn_2"
    5 "player_spawncheck"
    5 "player_summedical"
    5 "player_switchmodel"
    5 "player_temp_calculation"
    5 "player_throwobject"
    5 "player_updategui"
    5 "player_weaponfirednear"
    5 "player_zombieattack"
    5 "player_zombiecheck"
    5 "r_player_removeactions2"
    5 "PVDZ_"
    5 "PVAH_"
    5 "PVAHR_"
    5 "PV_"
    5 "remExField"
    5 "remExFP"
    5 "drn_AskServerDynamicWeatherEventArgs"
    5 "BIS_effects_gepv"
    5 "server_"
    5 "stream_locationcheck"
    5 "stream_locationdel"
    5 "stream_locationfill"
    5 "ui_changedisplay"
    5 "ui_initdisplay"
    5 "vehicle_gethitpoints"
    5 "world_isday"
    5 "world_sunrise"
    5 "world_surfacenoise"
    5 "zombie_"
    5 "createUnit"
    5 "createGroup"
    5 "BattleFieldClearance"
    5 "HighCommandSubordinate"
    5 "FirstAidSystem"
    5 "AlternativeInjurySimulation"
    5 "FORM"



Im not sure how to filter this honestly Im just going to try setting the remExField to 1 in the mean time, assuming thats even the line causing the problem because it says #15 but remExField is in the 200's somewhere... Any help here would be awesome. Sometimes filters are easy like a public variable.. other times I have absolutely no idea how to filter this

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...