Jump to content

Jaroo

Member
  • Posts

    49
  • Joined

  • Last visited

Posts posted by Jaroo

  1.  

    Is there any way that I can add safe zones to the panthera traders? All the scripts that I have found are just for Chernarus.

     

    I found this script: Click Me

    where Im paste this 3 files from this link and must config any init.sqf add command or something??

    safezone.sqf

    safezoneposition.sqf

    SAR_nuke_zeds.sqf

  2. I do not know what's going on, I copied all 4 files, and changed to the middle of command
    // Send Top Right message to users , requires Remote message script
    //_hint = parseText format["<t align=center' color='#0D00FF' shadow='2' size='1.75'>Supply Crate</t><br/><t align='center' color='#ffffff'>UN Agency drops life-saving supplies for Survivors, Check your Map for the Location!</t&gt];
    //customRemoteMessage = ['hint', _hint];
    //publicVariable "customRemoteMessage";

    // Send center message to users
    [nil,nil,rTitleText,"UN Agency drops life-saving supplies for Survivors, Check your Map for the Location!", "PLAIN",10] call RE;

    I go to files init.sqf and change command like that
    if (isServer) then {
        call compile preprocessFileLineNumbers "dynamic_vehicle.sqf";                //Compile vehicle configs
        
        // Add trader citys
        _nil = [] execVM "mission.sqf";
        _serverMonitor =     [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
    };

    next step I go to files   server_playerDied.sqf
    and change like that

    if(DZE_DeathMsgGlobal) then {
       customRemoteMessage = ['globalChat', _message, _killer];
       publicVariable "customRemoteMessage";
    };
    when Im restart server I have black screan any id for this problem ??

  3. I found where is problem I dont know maybe somebody  have this same problem post up

    when im paste this code to init.sqf

     

    if (!isDedicated) then {
        //Conduct map operations
        0 fadeSound 0;
        waitUntil {!isNil "dayz_loadScreenMsg"};
        dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
            _nil = [] execVM "custom\remote_messages.sqf";
    };

    Im not see option for refuel and town or lift

    when Im delete this code

     

    _nil = [] execVM "custom\remote_messages.sqf";
    };

    all its working refuel and town lift

  4. I have in folder mission

    mission.sqf  and   mission.sqm

     but not see this comand in this two files mission.sqf and mission.sqm

     // Send Top Right message to users , requires Remote message script_hint = parseText format["<t align=center' color='#0D00FF' shadow='2' size='1.75'>Supply Crate</t><br/><t align='center' color='#ffffff'>UN Agency drops life-saving supplies for Survivors, Check your Map for the Location!</t&gt];customRemoteMessage = ['hint', _hint];publicVariable "customRemoteMessage";// Send center message to users //[nil,nil,rTitleText,"UN Agency drops life-saving supplies for Survivors, Check your Map for the Location!", "PLAIN",10] call RE;





     

  5. Thank you  chisel ;) so I must paste like this

    CleanupPlacedAfterDays = -120                     <-----  -120 after 120 day wall decay ?

     

    what value I enter a feed of the players do not disappear floor walls etc ? sry for my language                    

  6. somebody help me how set this restart in vilayer every 6 hours step by step pls I  need only day time
    in panel I have 
    1.current server time&time zones <----- i must change something here
    2.Set server time                          <----- i must change something here

    3. bec\Config\bec_config.cfg   Im delete #  now is  Scheduler = Scheduler.xml
    4.bec\Config\Scheduler.xml

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <?xml-stylesheet href="acs.xsl" type="text/xsl" ?>


    <Scheduler>

        <job id="0">
            <time>053000</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day>
            <loop>1</loop>
            <cmd>say -1 Restart server in 30 minutes</cmd>    
            <cmdtype>0</cmdtype>
        </job>

        <job id="1">
            <time>054500</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day>
            <loop>1</loop>
            <cmd>say -1 Restart server in 15 minutes</cmd>    
            <cmdtype>0</cmdtype>
        </job>

        <job id="2">
            <time>055500</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day>
            <loop>1</loop>
            <cmd>say -1 Restart server in 5 minutes</cmd>    
            <cmdtype>0</cmdtype>
        </job>
        

        
        
        
    </Scheduler>

     

    4.Sheduled Service Restart is my set maybe wrong can checked 

     

    Name; restart server

    enabled; checkBox

    Type; Daily

    start; 11/27/2013 11;00PM

    Recur Every: 1 Days

    repeat task :checkBox

    Repeat Every 6 Hours

    For: 1 Minutes

    http://sta.sh/013ejstlfazm

     

    Pls help its important for me,,

  7. // Vehicle Service Point by Axe Cop

    private ["_folder","_servicePointClasses","_maxDistance","_actionTitleFormat","_actionCostsFormat","_costsFree","_message","_messageShown","_refuel_enable","_refuel_costs","_refuel_updateInterval","_refuel_amount","_repair_enable","_repair_costs","_repair_repairTime","_rearm_enable","_rearm_costs","_rearm_magazineCount","_lastVehicle","_lastRole","_refuel_action","_repair_action","_rearm_actions","_fnc_removeActions","_fnc_getCosts","_fnc_actionTitle","_fnc_isArmed","_fnc_getWeapons"];

    // ---------------- CONFIG START ----------------

    // general settings
    _folder = "service_point\"; // folder where the service point scripts are saved, relative to the mission file
    _servicePointClasses = ["Land_A_FuelStation_Feed"]; // service point classes (add "FuelPump_DZ" to use the dynamic Epoch fuel pumps)
    _maxDistance = 10; // maximum distance from a service point for the options to be shown
    _actionTitleFormat = "%1 (%2)"; // text of the vehicle menu, %1 = action name (Refuel, Repair, Rearm), %2 = costs (see format below)
    _actionCostsFormat = "%2 %1"; // %1 = item name, %2 = item count
    _costsFree = "free"; // text for no costs
    _message = "Vehicle Service Point nearby"; // message to be shown when in range of a service point (set to "" to disable)

    // refuel settings
    _refuel_enable = true; // enable or disable the refuel option
    _refuel_costs = []; // free for all vehicles (equal to [["AllVehicles",[]]])
    _refuel_updateInterval = 0.5; // update interval (in seconds)
    _refuel_amount = 0.02; // amount of fuel to add with every update (in percent)

    // repair settings
    _repair_enable = true; // enable or disable the repair option
    _repair_costs = [
        ["Air",["ItemGoldBar",5]], // 5 Gold for helicopters and planes
        ["AllVehicles",["ItemGoldBar",2]] // 2 Gold for all other vehicles
    ];
    _repair_repairTime = 2; // time needed to repair each damaged part (in seconds)

    // rearm settings
    _rearm_enable = true; // enable or disable the rearm option
    _rearm_costs = [
        ["ArmoredSUV_PMC_DZE",["ItemGoldBar10oz",2]], // special costs for a single vehicle type
        ["Air",["ItemGoldBar10oz",2]], // 2 10oz Gold for helicopters and planes
        ["AllVehicles",["ItemGoldBar10oz",1]] // 1 10oz Gold for all other vehicles
    ];
    _rearm_magazineCount = 3; // amount of magazines to be added to the vehicle weapon

    // ----------------- CONFIG END -----------------

    call compile preprocessFileLineNumbers (_folder + "ac_functions.sqf");

    _lastVehicle = objNull;
    _lastRole = [];

    _refuel_action = -1;
    _repair_action = -1;
    _rearm_actions = [];

    _messageShown = false;

    _fnc_removeActions = {
        if (isNull _lastVehicle) exitWith {};
        _lastVehicle removeAction _refuel_action;
        _refuel_action = -1;
        _lastVehicle removeAction _repair_action;
        _repair_action = -1;
        {
            _lastVehicle removeAction _x;
        } forEach _rearm_actions;
        _rearm_actions = [];
        _lastVehicle = objNull;
        _lastRole = [];
    };

    _fnc_getCosts = {
        private ["_vehicle","_costs","_cost"];
        _vehicle = _this select 0;
        _costs = _this select 1;
        _cost = [];
        {
            private "_typeName";
            _typeName = _x select 0;
            if (_vehicle isKindOf _typeName) exitWith {
                _cost = _x select 1;
            };
        } forEach _costs;
        _cost
    };

    _fnc_actionTitle = {
        private ["_actionName","_costs","_costsText","_actionTitle"];
        _actionName = _this select 0;
        _costs = _this select 1;
        _costsText = _costsFree;
        if (count _costs == 2) then {
            private ["_itemName","_itemCount","_displayName"];
            _itemName = _costs select 0;
            _itemCount = _costs select 1;
            _displayName = getText (configFile >> "CfgMagazines" >> _itemName >> "displayName");
            _costsText = format [_actionCostsFormat, _displayName, _itemCount];
        };
        _actionTitle = format [_actionTitleFormat, _actionName, _costsText];
        _actionTitle
    };

    _fnc_isArmed = {
        private ["_role","_armed"];
        _role = _this;
        _armed = count _role > 1;
        _armed
    };

    _fnc_getWeapons = {
        private ["_vehicle","_role","_weapons"];
        _vehicle = _this select 0;
        _role = _this select 1;
        _weapons = [];
        if (count _role > 1) then {
            private ["_turret","_weaponsTurret"];
            _turret = _role select 1;
            _weaponsTurret = _vehicle weaponsTurret _turret;
            {
                private "_weaponName";
                _weaponName = getText (configFile >> "CfgWeapons" >> _x >> "displayName");
                _weapons set [count _weapons, [_x, _weaponName, _turret]];
            } forEach _weaponsTurret;
        };
        _weapons
    };

    while {true} do {
        private ["_vehicle","_inVehicle"];
        _vehicle = vehicle player;
        _inVehicle = _vehicle != player;
        if (local _vehicle && _inVehicle) then {
            private ["_pos","_objects","_inRange"];
            _pos = position _vehicle;
            _objects = nearestObjects [_pos, _servicePointClasses, _maxDistance];
            _inRange = count _objects > 0;
            if (_inRange) then {
                private ["_role","_actionCondition","_costs","_actionTitle"];
                _role = assignedVehicleRole player;
                if (((str _role) != (str _lastRole)) || (_vehicle != _lastVehicle)) then {
                    // vehicle or seat changed
                    call _fnc_removeActions;
                };
                _lastVehicle = _vehicle;
                _lastRole = _role;
                _actionCondition = "vehicle _this == _target && local _target";
                if (_refuel_action < 0 && _refuel_enable) then {
                    _costs = [_vehicle, _refuel_costs] call _fnc_getCosts;
                    _actionTitle = ["Refuel", _costs] call _fnc_actionTitle;
                    _refuel_action = _vehicle addAction [_actionTitle, _folder + "service_point_refuel.sqf", [_costs, _refuel_updateInterval, _refuel_amount], -1, false, true, "", _actionCondition];
                };
                if (_repair_action < 0 && _repair_enable) then {
                    _costs = [_vehicle, _repair_costs] call _fnc_getCosts;
                    _actionTitle = ["Repair", _costs] call _fnc_actionTitle;
                    _repair_action = _vehicle addAction [_actionTitle, _folder + "service_point_repair.sqf", [_costs, _repair_repairTime], -1, false, true, "", _actionCondition];
                };
                if ((_role call _fnc_isArmed) && (count _rearm_actions == 0) && _rearm_enable) then {
                    private ["_weapons"];
                    _costs = [_vehicle, _rearm_costs] call _fnc_getCosts;
                    _weapons = [_vehicle, _role] call _fnc_getWeapons;
                    {
                        private ["_weaponName","_rearm_action"];
                        _weaponName = _x select 1;
                        _actionTitle = [format["Rearm %1", _weaponName], _costs] call _fnc_actionTitle;
                        _rearm_action = _vehicle addAction [_actionTitle, _folder + "service_point_rearm.sqf", [_costs, _rearm_magazineCount, _x], -1, false, true, "", _actionCondition];
                        _rearm_actions set [count _rearm_actions, _rearm_action];
                    } forEach _weapons;
                };
                if (!_messageShown && _message != "") then {
                    _messageShown = true;
                    _vehicle vehicleChat _message;
                };
            } else {
                call _fnc_removeActions;
                _messageShown = false;
            };
        } else {
            call _fnc_removeActions;
            _messageShown = false;
        };
        sleep 2;
    };
     

  8. does not work on my map Panthera I must add special name for fuel obj ? somebody know list name all fuel station in panthera ? Pls help me

     

    I go to  missions/epoch.panthera/and here create new folde ;service_point;  and inside i create 5files sqf from download link up

    File Manager > \vilayercodecustom\missions\epoch.panthera\service_point   

     

    and next step i go to \init.sqf and add comand like that

     

     

    if (!isDedicated) then {
        //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";
        
        //Lights
        //[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
    };
    //Custom Loadouts
        [] ExecVM "Scripts\loadout.sqf";
    execVM "service_point\ac_functions.sqf";
    execVM "service_point\service_point.sqf";
    execVM "service_point\service_point_rearm.sqf";
    execVM "service_point\service_point_refuel.sqf";
    execVM "service_point\service_point_repair.sqf";

     

    Its 5last comand add its okay or i must change somethink

×
×
  • Create New...