Jump to content

Player Safe Reset Mission


Recommended Posts

Yes :D

 

Still not working for me, I am getting this error:

21:30:06 "Checking vaults..."
21:30:06 Error in expression <= _allvaults select _i;
_curvaultcode = _curvault getVariable "CharacterID";
if >
21:30:06 Error position: <_curvault getVariable "CharacterID";
if >
21:30:06 Error Undefined variable in expression: _curvault
21:30:06 File z\addons\dayz_server\modules\abandonedvaults.sqf, line 16
21:30:06 "Total open vaults on server: 0"
Link to comment
Share on other sites

I get this undefined variable error aswell when the event runs, however this isn't stopping the script from working for me.  :o

_curvaultcode = _curvault getVariable "CharacterID";
if >
 0:25:02   Error position: <_curvault getVariable "CharacterID";
if >
 0:25:02   Error Undefined variable in expression: _curvault
 0:25:02 File z\addons\dayz_server\modules\abandonedvault.sqf, line 14

Also for you @Tricks, it is saying that its not finding any open vaults, so this is probably the reason its not running for you.

21:30:06 "Total open vaults on server: 0"

Have you added the MySQL event in the OP's post?

Link to comment
Share on other sites

14:30:16 "Checking vaults..."
14:30:16 Error in expression <= _allvaults select _i;
_curvaultcode = _curvault getVariable "CharacterID";
if >
14:30:16   Error position: <_curvault getVariable "CharacterID";
if >
14:30:16   Error Nicht definierte Variable in Ausdruck: _curvault
14:30:16 File z\addons\dayz_server\modules\abandonedvault.sqf, line 16

Getting this error too...

Link to comment
Share on other sites

Hi all!

 

How to make the removal of the safe after timeout mission?

 

whether this code?:

 

after this code:

​_spawnChance =  0.20; // Percentage chance of event happening
_markerRadius = 200; // Radius the loot can spawn and used for the marker
_wait_time = 900; 
_start_time = time;
_debug = false; // Ignores the random chance and runs every time.

paste:

_loot_box = VaultStorageLocked

result:

_spawnChance =  0.20; // Percentage chance of event happening
_markerRadius = 200; // Radius the loot can spawn and used for the marker
_wait_time = 900; 
_start_time = time;
_debug = false; // Ignores the random chance and runs every time. 

_loot_box = VaultStorageLocked

if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
};

In code:

// Clean up
EPOCH_EVENT_RUNNING = false;
deleteMarker _event_marker;
deleteMarker _event_marker2;

after:

EPOCH_EVENT_RUNNING = false;

paste:

deleteVehicle _loot_box;

result:

// Clean up
EPOCH_EVENT_RUNNING = false;
deleteVehicle _loot_box;     // remove mission safe
deleteMarker _event_marker;
deleteMarker _event_marker2;

Will this work?

Link to comment
Share on other sites

Hi all!

How to make the removal of the safe after timeout mission?

whether this code?:

after this code:

​_spawnChance =  0.20; // Percentage chance of event happening_markerRadius = 200; // Radius the loot can spawn and used for the marker_wait_time = 900; _start_time = time;_debug = false; // Ignores the random chance and runs every time.
paste:

_loot_box = VaultStorageLocked
result:

_spawnChance =  0.20; // Percentage chance of event happening_markerRadius = 200; // Radius the loot can spawn and used for the marker_wait_time = 900; _start_time = time;_debug = false; // Ignores the random chance and runs every time. _loot_box = VaultStorageLockedif (isNil "EPOCH_EVENT_RUNNING") then {EPOCH_EVENT_RUNNING = false;};
In code:

// Clean upEPOCH_EVENT_RUNNING = false;deleteMarker _event_marker;deleteMarker _event_marker2;
after:

EPOCH_EVENT_RUNNING = false;
paste:

deleteVehicle _loot_box;
result:

// Clean upEPOCH_EVENT_RUNNING = false;deleteVehicle _loot_box;     // remove mission safedeleteMarker _event_marker;deleteMarker _event_marker2;
Will this work?
This would be awesome, I would love a fresh WORKING tutorial in a new topic on how to get this script/event working. I have tried everything and still not going. Plus nobody has answered the question above :(
Link to comment
Share on other sites

  • 2 weeks later...

This script works on my server. Just this morning I got: "Total open vaults on server: 8". However, I still get the same messages that you guys posted before.

 

To answer the questions above, nope, that will not work. Needs to be:

_loot_box = ["VaultStorageLocked"];

 I believe that if you assign that to an array, then the script will attempt to delete all locked vaults and not chosen abandoned one. 

 

One way to delete it would be to add this:

deleteVehicle _rndvault;

Around here:

EPOCH_EVENT_RUNNING = false;
deleteMarker _event_marker;
deleteMarker _event_marker2;

Edit: You may also need to add _loot_box to the private array up top.

 

 

 

I'm working on making a marker loop and making it so the markers and event clears when a player gets close to it.

 

My current progress (untested) - Loop and finish mission code borrowed from EMS/DZMS

// Abandoned player safe mission by Cramps (zfclan.org/forum)
// Needs an SQL event set up to turn abandoned vault codes to 0000

private ["_run","_rndvault","_curvaultcode","_curvault","_vaultarray","_numvaults","_allvaults","_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker"];

// First chack if there is a vault available, no point running if not

diag_log ("Checking vaults...");

_allvaults = (allmissionobjects "VaultStorageLocked");
_numvaults = (count _allvaults);
_vaultarray = [];

for "_i" from 0 to _numvaults do {
	_curvault = _allvaults select _i;
	_curvaultcode = _curvault getVariable "CharacterID";
	if (_curvaultcode == "0000" ) then {
		_vaultarray = _vaultarray + [_curvault];
		};
};

_numvaults = (count _vaultarray);
diag_log ("Total open vaults on server: " + str(_numvaults));

// Exit if no safes
if (_numvaults == 0) exitWith {};

_rndvault = _vaultarray select (floor (random (count _vaultarray)));
_position = getPos _rndvault;
diag_log ("Location of randomly picked 0000 vault = " + str(_position));

// Main epoch mission stuff

_spawnChance =  0.10; // Percentage chance of event happening
_markerRadius = 150; // Radius the loot can spawn and used for the marker
_wait_time = 900; 
_start_time = time;
_debug = false; // Ignores the random chance and runs every time.

if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
// start the event loop if other event is isNil/false
_run = true;
diag_log("No Event Running, Starting Abandoned Safe Event.");
};
 
// Check for another event running
if (EPOCH_EVENT_RUNNING) exitWith {
diag_log("Event already running");
};
 
// Random chance of event happening
_spawnRoll = random 1;
if (_spawnRoll > _spawnChance and !_debug) exitWith {};

// Draw markers & tell players
 
_event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position];
_event_marker setMarkerShape "ELLIPSE";
_event_marker setMarkerColor "ColorBlue";
_event_marker setMarkerSize [(_markerRadius + 100), (_markerRadius + 100)];

_event_marker2 = createMarker [ format ["loot_event_marker_%2", _start_time], _position];
_event_marker2 setMarkerShape "ICON";
_event_marker2 setMarkerType "mil_dot";
_event_marker2 setMarkerColor "ColorBlack";
_event_marker2 setMarkerText "Abandoned Survivor Safe";

if (_debug) then {
_debug_marker = createMarker [ format ["loot_event_debug_marker_%1", _start_time], _position];
_debug_marker setMarkerShape "ICON";
_debug_marker setMarkerType "mil_dot";
_debug_marker setMarkerColor "ColorBlack";
_debug_marker setMarkerAlpha 1;
};

[nil,nil,"per",rTITLETEXT,"It's rumoured that there is a survivor safe with the code 0000. Go find it!","PLAIN DOWN"] call RE;

diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]);
diag_log text format ["Starting Abandoned Safe Marker Loop!"];

//Loop Start - Defent Edit
//Not looping debug because it is not really needed.
while {_run} do
{	
	// first we delete the current marker
	deleteMarker _event_marker;
	deleteMarker _event_marker2;
    // sleep 10 and refresh
	uiSleep 10;
	// then we add the markers again
	_event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position];
	_event_marker setMarkerShape "ELLIPSE";
	_event_marker setMarkerColor "ColorBlue";
	_event_marker setMarkerSize [(_markerRadius + 100), (_markerRadius + 100)];

	_event_marker2 = createMarker [ format ["loot_event_marker_%2", _start_time], _position];
	_event_marker2 setMarkerShape "ICON";
	_event_marker2 setMarkerType "mil_dot";
	_event_marker2 setMarkerColor "ColorBlack";
	_event_marker2 setMarkerText "Abandoned Survivor Safe";
	};
	//Now we wait another 25 seconds
};
//Loop End


// Should be before the time out because otherwise it will probably not work
​waitUntil{{isPlayer _x && _x distance _rndvault <= 15 } count playableunits > 0};
// Ending Mesage
[nil,nil,"per",rTITLETEXT,"The abandoned survivor safe has been found and looted!","PLAIN DOWN"] call RE;


// Wait
sleep _wait_time;
// Time out message
[nil,nil,"per",rTITLETEXT,"The abandoned survivor safe was not looted and has marker has been removed - better luck next time!","PLAIN DOWN"] call RE;
 
// Clean up
EPOCH_EVENT_RUNNING = false;
deleteMarker _event_marker;
deleteMarker _event_marker2;
//end the loop
_run = false;
Link to comment
Share on other sites

_rndvault = _vaultarray select (floor (random (count _vaultarray)));
_position = getPos _rndvault;

 

between these lines i can setpos to a random location.  But when they unlock it it puts it back to where it was located.  How to i change it in the DB when i setpos

Link to comment
Share on other sites

Does this work on the latest steam and Epoch patch? Which SQL do I need to run, the OP's or MGT's? 

 

Thank you

 

No idea, but I use this one and it works:

CREATE DEFINER=`YOURUSERNAME`@`%` EVENT `resetVaults`
	ON SCHEDULE
		EVERY 2 HOUR STARTS '2014-05-28 13:48:38'
	ON COMPLETION NOT PRESERVE
	ENABLE
	COMMENT 'Sets safe codes to 0000 if not accessed for 7 days'
	DO UPDATE `object_data` SET `CharacterID` = 0 WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 7 DAY) AND `CharacterID` > 0 AND `Classname` = ('VaultStorageLocked')  AND `Inventory` <> '[]' AND `Inventory` IS NOT NULL

This one checks every 2nd hour if there is any abandoned vaults. Abandoned vaults reset to the code 0000 after 7 days.

 

 

_rndvault = _vaultarray select (floor (random (count _vaultarray)));

_position = getPos _rndvault;

 

between these lines i can setpos to a random location.  But when they unlock it it puts it back to where it was located.  How to i change it in the DB when i setpos

 
You could change it but it would be quite a lot of work. You would need to include a hive call (i think) in order for it to publish to a new location.
Link to comment
Share on other sites

I went ahead I put this in my server, used MGT's SQL code and the original SQF file. Works and missions show up on map but when you unlock a safe using 0000 any safes that may also be eligible to pop up for missions you get the option to open locked safe. Would it be possible to only be able to open the one safe per mission?

Link to comment
Share on other sites

I went ahead I put this in my server, used MGT's SQL code and the original SQF file. Works and missions show up on map but when you unlock a safe using 0000 any safes that may also be eligible to pop up for missions you get the option to open locked safe. Would it be possible to only be able to open the one safe per mission?

 

This isn't related to the mission.  You're seeing that because you already entered the code "0000" which is also the correct code for all the other safe's your SQL event has unlocked.

Link to comment
Share on other sites

I am aware of that, just wondering if there is anyway of stopping this from happening? Ideally if a base has been abandoned and there is 3 safes for example all 3 will be accessible when we only want the 1 safe to be. Hope I am making sense here :P if anyone has any ideas? 

 

Thanks

Link to comment
Share on other sites

  • 3 months later...

I don't know why you need to add the inventory definers, and I'd like to do the same with doors although I doubt that will be as effective because people probably go try every door they find.

 

But what about this?

UPDATE `object_data` SET `CharacterID` = 0
WHERE
`LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 14 DAY) AND
`Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 14 DAY) AND
`CharacterID` > 0 AND
`Classname` IN ('VaultStorageLocked','CinderWallDoorLocked_DZ','CinderWallDoorSmallLocked_DZ','Land_DZE_GarageWoodDoorLocked','Land_DZE_WoodDoorLocked')
Link to comment
Share on other sites

Anyone getting this error:

15:20:09 "Checking vaults..."
15:20:09 Error in expression <= _allvaults select _i;
_curvaultcode = _curvault getVariable "CharacterID";
if >
15:20:09 Error position: <_curvault getVariable "CharacterID";
if >
15:20:09 Error Undefined variable in expression: _curvault
15:20:09 File z\addons\dayz_server\modules\vaults.sqf, line 16
Link to comment
Share on other sites

Anyone getting this error:

 

15:20:09 "Checking vaults..."
15:20:09 Error in expression <= _allvaults select _i;
_curvaultcode = _curvault getVariable "CharacterID";
if >
15:20:09 Error position: <_curvault getVariable "CharacterID";
if >
15:20:09 Error Undefined variable in expression: _curvault
15:20:09 File z\addons\dayz_server\modules\vaults.sqf, line 16

 

+1

Link to comment
Share on other sites

10:45:06 Error Undefined variable in expression: _curvaultcode
10:45:06 File z\addons\dayz_server\modules\vlt.sqf, line 19
10:45:06 Error in expression <= _allvaults select _i;
_curvaultcode = _curvault getVariable "CharacterID";
if >

10:45:06 Error position: <_curvault getVariable "CharacterID";
if >
10:45:06 Error Undefined variable in expression: _curvault
10:45:06 File z\addons\dayz_server\modules\vlt.sqf, line 18
10:45:06 "Total open vaults on server: 112"
10:45:06 "Location of randomly picked 0000 vault = [10546.8,16157.5,0.00197601]"

I get a similar error..

 

code:

// Abandoned player safe mission by Cramps (zfclan.org/forum)
// Needs an SQL event set up to turn abandoned vault codes to 0000

if ((count dayz_players) < 3) exitwith { diag_log ["Not enough players online, cancelling event"];};

private ["_rndvault","_curvaultcode","_curvault","_vaultarray","_numvaults","_allvaults","_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker"];

// First chack if there is a vault available, no point running if not

diag_log ("Checking vaults...");

_allvaults = (allmissionobjects "VaultStorageLocked");
_numvaults = (count _allvaults);
_vaultarray = [];

for "_i" from 0 to _numvaults do {
	_curvault = _allvaults select _i;
	_curvaultcode = _curvault getVariable "CharacterID";
	if (_curvaultcode == "0000" ) then {
		_vaultarray = _vaultarray + [_curvault];
		};
};

_numvaults = (count _vaultarray);
diag_log ("Total open vaults on server: " + str(_numvaults));

// Exit if no safes
if (_numvaults == 0) exitWith {};

_rndvault = _vaultarray select (floor (random (count _vaultarray)));
_position = getPos _rndvault;
diag_log ("Location of randomly picked 0000 vault = " + str(_position));

// Main epoch mission stuff

_spawnChance =  0.10; // Percentage chance of event happening
_markerRadius = 200; // Radius the loot can spawn and used for the marker
_wait_time = 900; 
_start_time = time;
_debug = false; // Ignores the random chance and runs every time.


if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
};
 
// Check for another event running
if (EPOCH_EVENT_RUNNING) exitWith {
diag_log("Event already running");
};
 
// Random chance of event happening
_spawnRoll = random 1;
if (_spawnRoll > _spawnChance and !_debug) exitWith {};

// Draw markers & tell players
 
_event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position];
_event_marker setMarkerShape "ELLIPSE";
_event_marker setMarkerBrush "Grid";
_event_marker setMarkerColor "ColorBlack";
_event_marker setMarkerSize [(_markerRadius + 100), (_markerRadius + 100)];

_event_marker2 = createMarker [ format ["loot_event_marker_%2", _start_time], _position];
_event_marker2 setMarkerShape "ICON";
_event_marker2 setMarkerType "Camp";
_event_marker2 setMarkerColor "ColorWhite";
_event_marker2 setMarkerText "Abandone safe";

if (_debug) then {
_debug_marker = createMarker [ format ["loot_event_debug_marker_%1", _start_time], _position];
_debug_marker setMarkerShape "ICON";
_debug_marker setMarkerType "mil_dot";
_debug_marker setMarkerColor "ColorBlack";
_debug_marker setMarkerAlpha 1;
};

[nil,nil,"per",rTITLETEXT,"Abandoned safe with code 0000.","PLAIN DOWN"] call RE;

diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]);

// Wait
sleep _wait_time;
 
// Clean up
EPOCH_EVENT_RUNNING = false;
deleteMarker _event_marker;
deleteMarker _event_marker2;

Link to comment
Share on other sites

Hello Defent!

 

I tested your script:

 

 

 

I'm working on making a marker loop and making it so the markers and event clears when a player gets close to it.

 

My current progress (untested) - Loop and finish mission code borrowed from EMS/DZMS

 

// Abandoned player safe mission by Cramps (zfclan.org/forum)
// Needs an SQL event set up to turn abandoned vault codes to 0000

private ["_run","_rndvault","_curvaultcode","_curvault","_vaultarray","_numvaults","_allvaults","_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker"];

// First chack if there is a vault available, no point running if not

diag_log ("Checking vaults...");

_allvaults = (allmissionobjects "VaultStorageLocked");
_numvaults = (count _allvaults);
_vaultarray = [];

for "_i" from 0 to _numvaults do {
	_curvault = _allvaults select _i;
	_curvaultcode = _curvault getVariable "CharacterID";
	if (_curvaultcode == "0000" ) then {
		_vaultarray = _vaultarray + [_curvault];
		};
};

_numvaults = (count _vaultarray);
diag_log ("Total open vaults on server: " + str(_numvaults));

// Exit if no safes
if (_numvaults == 0) exitWith {};

_rndvault = _vaultarray select (floor (random (count _vaultarray)));
_position = getPos _rndvault;
diag_log ("Location of randomly picked 0000 vault = " + str(_position));

// Main epoch mission stuff

_spawnChance =  0.10; // Percentage chance of event happening
_markerRadius = 150; // Radius the loot can spawn and used for the marker
_wait_time = 900; 
_start_time = time;
_debug = false; // Ignores the random chance and runs every time.

if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
// start the event loop if other event is isNil/false
_run = true;
diag_log("No Event Running, Starting Abandoned Safe Event.");
};
 
// Check for another event running
if (EPOCH_EVENT_RUNNING) exitWith {
diag_log("Event already running");
};
 
// Random chance of event happening
_spawnRoll = random 1;
if (_spawnRoll > _spawnChance and !_debug) exitWith {};

// Draw markers & tell players
 
_event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position];
_event_marker setMarkerShape "ELLIPSE";
_event_marker setMarkerColor "ColorBlue";
_event_marker setMarkerSize [(_markerRadius + 100), (_markerRadius + 100)];

_event_marker2 = createMarker [ format ["loot_event_marker_%2", _start_time], _position];
_event_marker2 setMarkerShape "ICON";
_event_marker2 setMarkerType "mil_dot";
_event_marker2 setMarkerColor "ColorBlack";
_event_marker2 setMarkerText "Abandoned Survivor Safe";

if (_debug) then {
_debug_marker = createMarker [ format ["loot_event_debug_marker_%1", _start_time], _position];
_debug_marker setMarkerShape "ICON";
_debug_marker setMarkerType "mil_dot";
_debug_marker setMarkerColor "ColorBlack";
_debug_marker setMarkerAlpha 1;
};

[nil,nil,"per",rTITLETEXT,"It's rumoured that there is a survivor safe with the code 0000. Go find it!","PLAIN DOWN"] call RE;

diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]);
diag_log text format ["Starting Abandoned Safe Marker Loop!"];

//Loop Start - Defent Edit
//Not looping debug because it is not really needed.
while {_run} do
{	
	// first we delete the current marker
	deleteMarker _event_marker;
	deleteMarker _event_marker2;
    // sleep 10 and refresh
	uiSleep 10;
	// then we add the markers again
	_event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position];
	_event_marker setMarkerShape "ELLIPSE";
	_event_marker setMarkerColor "ColorBlue";
	_event_marker setMarkerSize [(_markerRadius + 100), (_markerRadius + 100)];

	_event_marker2 = createMarker [ format ["loot_event_marker_%2", _start_time], _position];
	_event_marker2 setMarkerShape "ICON";
	_event_marker2 setMarkerType "mil_dot";
	_event_marker2 setMarkerColor "ColorBlack";
	_event_marker2 setMarkerText "Abandoned Survivor Safe";
	};
	//Now we wait another 25 seconds
};
//Loop End


// Should be before the time out because otherwise it will probably not work
​waitUntil{{isPlayer _x && _x distance _rndvault <= 15 } count playableunits > 0};
// Ending Mesage
[nil,nil,"per",rTITLETEXT,"The abandoned survivor safe has been found and looted!","PLAIN DOWN"] call RE;


// Wait
sleep _wait_time;
// Time out message
[nil,nil,"per",rTITLETEXT,"The abandoned survivor safe was not looted and has marker has been removed - better luck next time!","PLAIN DOWN"] call RE;
 
// Clean up
EPOCH_EVENT_RUNNING = false;
deleteMarker _event_marker;
deleteMarker _event_marker2;
//end the loop
_run = false;

 

And getting errors in rpt:

 

errors in 1 rpt:


 0:45:08 "RUNNING EVENT: vlt on [2014,12,15,20,45]"
 0:45:08 Error in expression <xt "Abandoned safe";
};

};




​waitUntil{{isPlayer _x && _x d>
 0:45:08   Error position: <};




​waitUntil{{isPlayer _x && _x d>
 0:45:08   Error Missing {
 0:45:08 File z\addons\dayz_server\modules\vlt.sqf, line 105
 0:45:08 Error in expression <xt "Abandoned safe";
};

};



etc.. ***************************


waitUntil{{isPlayer _x && _x d>
 2:45:10   Error position: <};




​waitUntil{{isPlayer _x && _x d>
 2:45:10   Error Missing {
 2:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 105
 2:45:10 Error in expression <= _allvaults select _i;
_curvaultcode = _curvault getVariable "CharacterID";
if >
 2:45:10   Error position: <_curvault getVariable "CharacterID";
if >
 2:45:10   Error Undefined variable in expression: _curvault
 2:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 16
 2:45:10 "Total open vaults on server: 114"
 2:45:10 "Location of randomly picked 0000 vault = [10546.8,16157.5,0.00197601]"
 2:45:10 Error in expression <xt "Abandoned safe";
};

};




​waitUntil{{isPlayer _x && _x d>
 2:45:10   Error position: <};




​waitUntil{{isPlayer _x && _x d>
 2:45:10   Error Missing {
 2:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 105
 2:45:10 Error in expression <xt "Abandoned safe";
};

};



etc..

 

Erorrs in 2 rpt:

8:45:09 "RUNNING EVENT: vlt on [2014,12,16,4,45]"
 8:45:09 Error in expression <џРѕС‚ерянный сейф";
};






​waitUntil{{isPlayer _x && _x distance>
 8:45:09   Error position: <​waitUntil{{isPlayer _x && _x distance>
 8:45:09   Error Invalid number in expression
 8:45:09 File z\addons\dayz_server\modules\vlt.sqf, line 110
 8:45:09 Error in expression <џРѕС‚ерянный сейф";
};






​waitUntil{{isPlayer _x && _x distance>
 8:45:09   Error position: <​waitUntil{{isPlayer _x && _x distance>
 8:45:09   Error Invalid number in expression
 8:45:09 File z\addons\dayz_server\modules\vlt.sqf, line 110
 8:45:09 Error in expression <џРѕС‚ерянный сейф";
};



etc... **********************************************



​waitUntil{{isPlayer _x && _x distance>
 8:45:10   Error position: <​waitUntil{{isPlayer _x && _x distance>
 8:45:10   Error Invalid number in expression
 8:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 110
 8:45:10 Error in expression <џРѕС‚ерянный сейф";
};






​waitUntil{{isPlayer _x && _x distance>
 8:45:10   Error position: <​waitUntil{{isPlayer _x && _x distance>
 8:45:10   Error Invalid number in expression
 8:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 110
 8:45:10 Error in expression <curvault getVariable "CharacterID";
if (_curvaultcode == "0000" ) then {
_vaulta>
 8:45:10   Error position: <_curvaultcode == "0000" ) then {
_vaulta>
 8:45:10   Error Undefined variable in expression: _curvaultcode
 8:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 17
 8:45:10 Error in expression <curvault getVariable "CharacterID";
if (_curvaultcode == "0000" ) then {
_vaulta>
 8:45:10   Error position: <_curvaultcode == "0000" ) then {
_vaulta>
 8:45:10   Error Undefined variable in expression: _curvaultcode
 8:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 17
 8:45:10 Error in expression <curvault getVariable "CharacterID";
if (_curvaultcode == "0000" ) then {
_vaulta>
 8:45:10   Error position: <_curvaultcode == "0000" ) then {
_vaulta>
 8:45:10   Error Undefined variable in expression: _curvaultcode
 8:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 17
 8:45:10 Error in expression <= _allvaults select _i;
_curvaultcode = _curvault getVariable "CharacterID";
if >
 8:45:10   Error position: <_curvault getVariable "CharacterID";
if >
 8:45:10   Error Undefined variable in expression: _curvault
 8:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 16
 8:45:10 "Total open vaults on server: 114"
 8:45:10 "Location of randomly picked 0000 vault = [2874.39,6233.06,0.101997]"
 8:45:10 Error in expression <џРѕС‚ерянный сейф";
};






​waitUntil{{isPlayer _x && _x distance>
 8:45:10   Error position: <​waitUntil{{isPlayer _x && _x distance>
 8:45:10   Error Invalid number in expression
 8:45:10 File z\addons\dayz_server\modules\vlt.sqf, line 110
 8:45:10 Error in expression <џРѕС‚ерянный сейф";
};



etc..

 

Marker on map worked.  You understand coding. Really need your help :)

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Hey! New scripter here.
Anyway to get this to delete everything around it within 10meters lets say when it starts? Just to help people from comming to a base not yet on decay?

And two noob questions. 

When you install this events. Do u just make a "randomname.sqf" And put it in the modules folder in the pbo and ur done.

if not

How do i install them. A simple awnser is okey. I think im getting the hang of this now!

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
  • Advertisement
×
×
  • Create New...