Jump to content
  • 0
Thug

[SOLVED] Flyby Script from 1.0.5.1 for 1.0.6.1 Need Help

Question

[SOLVED]

Would like to run the old 1.0.5.1 flyby.sqf  on my servers. Don't know what I need to make it work with 1.0.6.1

Also, does anyone have any of the old events working and willing to share?

Here is the link to the script

https://pastebin.com/eRk5phkc

If anyone is willing to help, I will buy you a beer in game  Heck I will buy you a case.  lol

EDITED 4 PM EST 7/10/2017 

Can someone tell me where the supply_drop and crash_spawner is located. I went to dayz_server\modules and the only thing in the scripts was this;

// Using vanilla care packages now. 
// The 1.0.5.1 version was outdated and needs a full rewrite.

These files have to be somewhere, just need a little help with finding them.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Just now, Thug said:

Would like to run the old 1.0.5.1 flyby.sqf  on my servers. Don't know what I need to make it work with 1.0.6.1

Also, does anyone have any of the old events working and willing to share?

Here is the link to the script

https://pastebin.com/eRk5phkc

If anyone is willing to help, I will buy you a beer in game  Heck I will buy you a case.  lol

EDITED 4 PM EST 7/10/2017 

Can someone tell me where the supply_drop and crash_spawner is located. I went to dayz_server\modules and the only thing in the scripts was this;

// Using vanilla care packages now. 
// The 1.0.5.1 version was outdated and needs a full rewrite.

These files have to be somewhere, just need a little help with finding them.

 

Spoiler
private["_model","_startpos","_endpos","_rand_player"];
 
//_model = "AN2_DZ";
_model = ["A10","AH64D_EP1","AV8B","C130J_US_EP1","F35B","Ka137_MG_PMC","Ka52","L39_TK_EP1","MQ9PredatorB_US_EP1","MV22","Mi24_D","Su25_CDF",
"Su25_TK_EP1","pook_H13_gunship"] call BIS_fnc_selectRandom;
       
_startpos = [
    [1000.0,2.0],
    [3500.0,2.0],
    [5000.0,2.0],
    [7500.0,2.0],
    [9712.0,663.067],
    [12304.0,1175.07],
    [14736.0,2500.0],
    [16240.0,5000.0],
    [16240.0,7500.0],
    [16240.0,10000.0]
            ] call BIS_fnc_selectRandom;
           
_rand_player    = playableUnits call BIS_fnc_selectRandom;
 
if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
};
 

if (EPOCH_EVENT_RUNNING) exitWith {
diag_log("Event already running");
};

EPOCH_EVENT_RUNNING = true;

if((isPlayer _rand_player) && (alive _rand_player)) then {
 
    _rand_num        = ceil(random 5);
    _playerpos        = [_rand_player] call FNC_GetPos;
    _number            = 0;
 
    for "_i" from 1 to _rand_num do {
   
        _number = (_number + 1);
 
        [_number,_model,_startpos,_playerpos] spawn {
 
            private["_aircraft","_aigroup","_pilot","_wp1","_wp2","_cor_y","_cor_x"];
           
            _number     = _this select 0;
            _model         = _this select 1;
            _startpos     = _this select 2;
            _playerpos     = _this select 3;            
            _endpos        = [0,16000,200];
 
            call {
                if(_number == 1) exitWith {
                    _cor_y = 0;
                    _cor_x = 0;
                };
 
                if(_number == 2) exitWith {
                    _cor_y = -60;
                    _cor_x = -60;
                };
 
                if(_number == 3) exitWith {
                    _cor_y = -60;
                    _cor_x = 60;
                };
 
                if(_number == 4) exitWith {
                    _cor_y = -120;
                    _cor_x = -120;
                };
 
                if(_number == 5) exitWith {
                    _cor_y = -120;
                    _cor_x = 120;
                };
            };
 
            _aircraft     = createVehicle [_model,[((_startpos select 0) + _cor_y),((_startpos select 1) + _cor_x),200],[],0,"FLY"];
            _aircraft     engineOn true;
            _aircraft     flyInHeight 200;
			_aircraft 		addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}];
_aircraft addEventHandler ["handleDamage", {false}];

dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_aircraft];
 
            _aigroup     = creategroup civilian;
 
            _pilot         = _aigroup createUnit ["SurvivorW2_DZ",[_aircraft] call FNC_GetPos,[],0,"FORM"];
            _pilot         setCombatMode "BLUE";
            _pilot         moveindriver _aircraft;
            _pilot         assignAsDriver _aircraft;
 
            _wp1         = _aigroup addWaypoint [[((_playerpos select 0) + _cor_y),((_playerpos select 1) + _cor_x),200],0];
            _wp1         setWaypointType "MOVE";
            _wp1        setWaypointBehaviour "CARELESS";
 
            _wp2         = _aigroup addWaypoint [[(_endpos select 0),(_endpos select 1),200],0];
            _wp2         setWaypointType "MOVE";
            _wp2         setWaypointBehaviour "CARELESS";
 
            waitUntil { (_aircraft distance _endpos < 500) };
 
            deleteVehicle _aircraft;
            deleteGroup _aigroup;
            deleteVehicle _pilot;
 

        };
    };
     EPOCH_EVENT_RUNNING = false;                                                     
};

 

 

Share this post


Link to post
Share on other sites
  • 0
Just now, Thug said:

I also started adding in other planes. So far 

"A10","Su25_CDF","AN2_DZ"  working great

Yup u can add any kind of flying veh since the line about obj monitor was added.

dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_aircraft];

This prevent the veh sched destroy your veh cuz is not signed . I say flying veh cuz cannot imagine landveh in this script. Explain it before cleandirella comes to say me you can add anykind of veh.:tongue:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By theduke
      Alright so here is the virtual garage.
      ALL CREDITS go to the original authors.
      GZA David for the Virtual Garage script
      Torndeco for the EXT Database
      All i did was change a few variables to update it for 1.0.6.1
       
      DOWNLOAD
      https://github.com/theduke77/Virtual-Garage
      I use the script a little different than intended.
      The only difference, i use vehicle and air traders to access the virtual garage, intended for use with garages, but requires gem crafting...
      The original instructions are in the download in case someone wants to do it that way
      so on with the instructions..
      Tools Required
      Notepad ++
      PBO Tool
      SQL tool such as HeidiSQL
      First we start with the mission folder.
      copy the scripts folder from the downloads into your mission folder.
      1. Open your init.sqf
      look for
      dayz_randomMaxFuelAmount add this bellow
      DZE_garagist = ["Profiteer4","Worker3","RU_Profiteer4","Hooker1","Worker2"]; save and close
      2. Open your description.ext
      add this at the bottom
      #include "scripts\garage\common.hpp" #include "scripts\garage\vehicle_garage.hpp" save and close
      4. Open your fn_selfactions.sqf
      look for
      //Player Deaths add this above
      //Garage if((_typeOfCursorTarget in DZE_garagist) && (player distance _cursorTarget < 5)) then { if (s_garage_dialog2 < 0) then { s_garage_dialog2 = player addAction ["Vehicle Garage", "scripts\garage\vehicle_dialog.sqf",_cursorTarget, 3, true, true, "", ""]; }; if (s_garage_dialog < 0) then { s_garage_dialog = player addAction ["Store Vehicle in Garage", "scripts\garage\vehicle_store_list.sqf",_cursorTarget, 3, true, true, "", ""]; }; } else { player removeAction s_garage_dialog2; s_garage_dialog2 = -1; player removeAction s_garage_dialog; s_garage_dialog = -1; }; still in the fn_selfactions.sqf
      look for
      player removeAction s_player_fuelauto2; s_player_fuelauto2 = -1; player removeAction s_player_manageDoor; s_player_manageDoor = -1; add this bellow
      player removeAction s_garage_dialog2; s_garage_dialog2 = -1; player removeAction s_garage_dialog; s_garage_dialog = -1; save and close.
      5. Open your variables.sqf
      look for dayz_resetSelfActions = {
      add this before the closing bracket     };
      s_garage_dialog = -1; s_garage_dialog2 = -1; save and close
       
      6. Open your compiles.sqf
      look for
      fn_dropItem = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_dropItem.sqf"; add this above
      player_getVehicle = compile preprocessFileLineNumbers "scripts\garage\getvehicle.sqf"; player_storeVehicle = compile preprocessFileLineNumbers "scripts\garage\player_storeVehicle.sqf"; vehicle_info = compile preprocessFileLineNumbers "scripts\garage\vehicle_info.sqf"; Still in the compiles, add this at the bottom
      SC_fnc_removeCoins= { private ["_player","_amount","_wealth","_newwealth", "_result"]; _player = _this select 0; _amount = _this select 1; _result = false; _wealth = _player getVariable[Z_MoneyVariable,0]; if(_amount > 0)then{ if (_wealth < _amount) then { _result = false; } else { _newwealth = _wealth - _amount; _player setVariable[Z_MoneyVariable,_newwealth, true]; _player setVariable ["moneychanged",1,true]; _result = true; call player_forceSave; }; }else{ _result = true; }; _result }; SC_fnc_addCoins = { private ["_player","_amount","_wealth","_newwealth", "_result"]; _player = _this select 0; _amount = _this select 1; _result = false; _wealth = _player getVariable[Z_MoneyVariable,0]; _player setVariable[Z_MoneyVariable,_wealth + _amount, true]; call player_forceSave; _player setVariable ["moneychanged",1,true]; _newwealth = _player getVariable[Z_MoneyVariable,0]; if (_newwealth >= _wealth) then { _result = true; }; _result }; vehicle_gear_count = { private["_counter"]; _counter = 0; { _counter = _counter + _x; } count _this; _counter }; save and close
      7A. Open your publicEH.sqf
      If you don't have a custom publicEH.sqf already, go to step 7B
      look for
      if (dayz_groupSystem) then { "PVDZ_Server_UpdateGroup" addPublicVariableEventHandler {(_this select 1) spawn server_updateGroup}; }; add this bellow
      "PVDZE_queryGarageVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_queryGarageVehicle};
          "PVDZE_spawnVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_spawnVehicle};
          "PVDZE_storeVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_storeVehicle};
      7B. Only do this step if you DON'T have a custom publicEH.sqf
      Open your init.sqf again
      look for
      call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; replace it with this
      call compile preprocessFileLineNumbers "scripts\garage\publicEH.sqf"; Thats it for the mission file
       
      Now for the server 
      Copy the garage folder from the download, into the compiles folder in your dayz_server folder
      1. Open your server_functions.sqf
      look for this
      spawn_vehicles = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\spawn_vehicles.sqf"; add this bellow
      "extDB" callExtension "9:DATABASE:Database2"; "extDB" callExtension format["9:ADD:DB_RAW_V2:%1",1]; "extDB" callExtension "9:LOCK"; server_queryGarageVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf"; server_spawnVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf"; server_storeVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_storeVehicle.sqf"; fn_asyncCall = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\fn_async.sqf"; Save and close
      Thats it for the server PBO
       
       
      BattlEye
      Add to publicvariable.txt:
      !="PVDZE_queryGarageVehicle" !="PVDZE_storeVehicle" !="PVDZE_spawnVehicle" 
       
      Infistar
      Infistar: 
      Add to _ALLOWED_Dialogs:
      2800,3800
       
      Now for the database
      Using heidi (or your favorite sql tool)
      Open SQL.txt and copy everything in there and run a query on your database.
      This will create a database called extdb
      Copy the @extdb folder to the root of your server.
      In your server launch BAT. add @extdb; before @dayz_epoch_server
      Open the @extdb folder, edit the extdb-conf.ini and change the username and password to suit your needs.
      (you might need to give all permissions for that user for the new database in heidi)
       
      All done.  Log in and go visit your vehicle traders!
      Cheers Enjoy!
       
      EDIT: updated the instructions for the fix of ANY/gear and it not taking coins. Please refer to step 6
      EDIT 22/03/2017 : Added a fix for client RPT error (Step 5) Also changed the variable for the currency
    • By damonboss
      when i join a 1061 server it let me move with WASD but i cant move with mouse or shoot and i see a mouse cursoron my srceen . when i press esc my srceen go black/gray
    • By theduke
      This is MACA's Dynamic Traders.
      All I did was change 2 variables to get it working with 1061. ALL CREDIT goes to MACA.
      The instruction are in the readme in the download
      https://www.dropbox.com/s/kcpkzl7q91xnm1i/DynamicTraders.zip?dl=0
       
    • By ReDBaroN
      Since 105 or 1051 (since 105 was only around for a day before 1051 came out...) I have had strange goings on with humanity.
       
      Sometimes and for some players, not all, it randomly doubles either each time they relog or at server restart. I haven't been able to pin it down more than that. The problem last month was quite rare so, I didn't bother with it after a quick google didn't find anything. However, over the last 2-3 weeks it has developed into a more serious problem. It seems to be happening to some players, not all and the same players. It can happen 3-4 times a day for some players and has resulted in them having humanity in the +/- millions.
       
      I have googled around again and can't see anything posted....?
       
      I have tried the obvious and systematically turned off and on all additional scripts/changes for the last month and haven't been able to narrow it down to any of them either. We are a pretty loaded server with all the usual popular scripts: DZ Group Management, Enhanced Spawn Selection, infiSTAR, Logistics, WAI, EMS, infiSTAR SafeZones to name a few...
       
      The server is high population and a managed virtual server so, unfortunately I don't have the luxury of a dev server to test with and have to be careful with what I'm doing with the live based on the population.
       
      Is anyone else seeing this problem at all on their server?
       
      Would appreciate any help.
       
      Thanks 
    • By f3cuk
      Since updating to 1051 several people have been complaining that sometimes their character seemed to go back in time after they had logged in. Untill today I couldn't pinpoint what was happening but now i think i found it. Sometimes when a player changes skin, his or her character stops updating from that point on. Resulting in progress loss when they logout and log back in, even simply going in and out the lobby will "reset" their character to the state they were in just before they changed clothes.
       
      One user even reported that he died » ragequit » after logging back in a few hours later, was alive and had most of his gear back. He asked me if i did a rollback on the database, which we did not. It did not make sense to me but now i'm figuring he had probably just changed skins before and got reset to that.
       
      Could anyone confirm this issue? Or did i mess it up all by myself :P
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...