[SUPPORT] DayZ of Glory (SPORKMOD)

Anyone having issues with THE LAPTOPS no appearing in overwatch 0.24? mine will not work and measn no banks :(

thanks
 
@sporkulus - great job. I love the idea of character leveling!

I've got a couple of questions though. How does the level get stored (there isn't a db entry for experience)? Is is calc'd based on kills when the player logs in?

The reason I ask, is I'd like to reset it on player death so that players lose all experience when they die. So instead of a player continually ranking up, they must stay alive to maintain their "level" - makes dying worth avoiding. Also would like to add the survival days to the experience calc (i.e. time alive slowly ticks up experience too).

Any info would be awesome!

Thanks in advance and keep up the impressive work!

~Angry
 
yes you need a custom compiles.sqf:

go to DOG\toggle.sqf
delete this whole part at the bottom:
Code:
while {sporktoggle} do
{
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode =    _this select 1;
    _handled = false;
    _uid = getPlayerUID player;
    if (_dikCode == 0x3F) then {
    call change_debug;
    };
 
    if (_dikCode == 0x3B) then {
    [1] call sporkhints;
    };
 
if (_dikCode == 0x40) then
{
_isadmin = player getVariable["admin",0];
 
if (_isadmin == 1) then
{
execvm "@DayZofDuty\DOD\message.sqf";
};
 
};
 
    };
    _handled;
};

now go to the custome compiles.sqf
search for:
Code:
  if (!isNull _object and _dikCode in actionKeys "LeanRight") then {
            _dir = getDir _object + 3;
            _object setDir _dir;
            _handled = true;
        };

and add right after:
Code:
        if (_dikCode == 0x3F) then {
        call change_debug;
        };
 
        if (_dikCode == 0x3B) then {
        [1] call sporkhints;
        };
 
        if (_dikCode == 0x40) then {
        _isadmin = player getVariable["admin",0];
            if (_isadmin == 1) then {
        execvm "@DayZofDuty\DOD\message.sqf";
            };
        };

that should be done. you can change the _dikCode to every othe key that you like ;)

Thanks to rosska85 here :)
 
yes you need a custom compiles.sqf:

go to DOG\toggle.sqf
delete this whole part at the bottom:
Code:
while {sporktoggle} do
{
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode =    _this select 1;
    _handled = false;
    _uid = getPlayerUID player;
    if (_dikCode == 0x3F) then {
    call change_debug;
    };
 
    if (_dikCode == 0x3B) then {
    [1] call sporkhints;
    };
 
if (_dikCode == 0x40) then
{
_isadmin = player getVariable["admin",0];
 
if (_isadmin == 1) then
{
execvm "@DayZofDuty\DOD\message.sqf";
};
 
};
 
    };
    _handled;
};

now go to the custome compiles.sqf
search for:
Code:
  if (!isNull _object and _dikCode in actionKeys "LeanRight") then {
            _dir = getDir _object + 3;
            _object setDir _dir;
            _handled = true;
        };

and add right after:
Code:
        if (_dikCode == 0x3F) then {
        call change_debug;
        };
 
        if (_dikCode == 0x3B) then {
        [1] call sporkhints;
        };
 
        if (_dikCode == 0x40) then {
        _isadmin = player getVariable["admin",0];
            if (_isadmin == 1) then {
        execvm "@DayZofDuty\DOD\message.sqf";
            };
        };

that should be done. you can change the _dikCode to every othe key that you like ;)

Thanks to rosska85 here :)

@SchwEde - you rock!
 
This is probably very simple but, I've got a couple questions regarding the level addons.

1. I'd like to have various self actions based on the level reached by a character. I'm not sure how to call the self actions from the Level_addons.sqf? Or would do I passed the current level into the self_actions script and validate it there?
2. Level scoring - I'd like self actions to also impact the "score" to a characters level, not just zombie /player kills. Example: A player would get a small amount of experience if they repair a vehicle, and at a certain level would then be able to remove parts. Again - best handled in the self_actions sqf?

Any pointers would be greatly appreciated!

~Angry
 
anyone who wants to get fixed the bug, that the vendors have gear in their inventory:

just change the skins in bot.sqf and gunshop.sqf from:
Code:
US_Soldier_EP1

to
Code:
Soldier1_DZ


EDIT: Looks like this brakes the Shop ^^

So i found another way:

debug2.sqf:
Code:
search for:
if (_count >= 1) then
{
and place right after:
Code:
removeAllWeapons cursortarget;
removeAllItems cursortarget;
now the NPCs still can still be killed, but they have no inventory!
 
Sorry I was gone for a while and now I am back. BTW this code can be glitched so bad and should not be used.

Code:
removeAllWeapons cursortarget; removeAllItems cursortarget;
 
yeah i thnik you are right. So i just tried this:

in the gunshop.sqf:
under:
Code:
_spawnsporks disableAI "FSM";
i placed this:
Code:
removeAllWeapons _spawnsporks;
removeAllItems _spawnsporks;
Dont need to mention i've done this on both bots
same result and should be the better way how its done :)
 
yes you need a custom compiles.sqf:

go to DOG\toggle.sqf
delete this whole part at the bottom:
Code:
while {sporktoggle} do
{
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode =    _this select 1;
    _handled = false;
    _uid = getPlayerUID player;
    if (_dikCode == 0x3F) then {
    call change_debug;
    };
 
    if (_dikCode == 0x3B) then {
    [1] call sporkhints;
    };
 
if (_dikCode == 0x40) then
{
_isadmin = player getVariable["admin",0];
 
if (_isadmin == 1) then
{
execvm "@DayZofDuty\DOD\message.sqf";
};
 
};
 
    };
    _handled;
};

now go to the custome compiles.sqf
search for:
Code:
  if (!isNull _object and _dikCode in actionKeys "LeanRight") then {
            _dir = getDir _object + 3;
            _object setDir _dir;
            _handled = true;
        };

and add right after:
Code:
        if (_dikCode == 0x3F) then {
        call change_debug;
        };
 
        if (_dikCode == 0x3B) then {
        [1] call sporkhints;
        };
 
        if (_dikCode == 0x40) then {
        _isadmin = player getVariable["admin",0];
            if (_isadmin == 1) then {
        execvm "@DayZofDuty\DOD\message.sqf";
            };
        };

that should be done. you can change the _dikCode to every othe key that you like ;)

Thanks to rosska85 here :)


i looked in my compiles file and there was nothing similar to what you said to search for. I am using epoch, is it different perhaps?
 
Back
Top