Requesting a Dayz.st server.pbo

seaweeduk

OpenDayZ Rockstar!
I hear dayz.st are doing some stuff in their server pbos for live actions, I read the code originally came from elsewhere anyway. Can anyone with dayz.st upload me a dayzmod server pbo as I'd like to get a look at that code.

Cheers
 
Thx, child 999 as I feared here's the code for anyone interested

Code:
while {true} do {
    if (isNil _firstStartAction) then {
        format ['CHILD:999:DELETE FROM `InstaActions`:[1]:'] call server_hiveWrite;
        _firstAction = '1';
    };
    sleep 5;
    diag_log("Ping Pong");
    if (isServer and !(isNil "sm_done")) then {   
        _key = 'CHILD:999:SELECT `id`, `clientSide`, `execCode`, `repeatAction`, `description` FROM `InstaActions` ORDER BY `id` ASC:[1]:';
        _result = _key call server_hiveReadWrite;
       
        _status  = _result select 0;
       
        if (_status == 'CustomStreamStart') then {
            _numResults = _result select 1;
            _actionsArr = [];
            for '_i' from 1 to _numResults do {
                _actionsArr set [count _actionsArr, _key call server_hiveReadWrite];
            };
            {
                _rAction = compile (_x select 2);
                _clientSide = _x select 1;
                _repeatAction = _x select 3;
                _description = _x select 4;
                if (_clientSide == 1) then {
                    [nil,nil, rSpawn, [], _rAction] call RE;
                } else {
                    [] spawn _rAction;
                };
                if (_repeatAction == 0) then {
                    diag_log("InstaActions: Executed non-repeating action - clientSide " + str(_clientSide) + " - " + str(_description));
                    format ['CHILD:999:DELETE FROM `InstaActions` where `id` = ?:[%1]:', _x select 0] call server_hiveWrite;
                } else {
                    diag_log("InstaActions: Executed repeating action - clientSide " + str(_clientSide) + " - " + str(_description));
                };
            } foreach _actionsArr;
        };
    };
};
 
Back
Top