Krixes - Self Bloodbag Script

Is there a way to get self blood to work with out the fn_selfActions.sqf file, I am running and Epcoh server and don't what to mess with the core files to much
I see, well to my knowledge there is no way around using fn_selfActions.sqf... with epoch you may need to extract the original from the dayz_code.pbo from the dayz epoch addons folder as I almost guarantee they added other stuff in there. Then just follow my custom day_mission.pbo portion for setting up the fn_selfActions.sqf!
Could you post the default colour please..

Edit: The standard green is: #61A840 or so close you wouldn't notice :)
I'm glad you got it working and how you want it although there is another method that would of made it exactly the default color back on page #2 post #28 :p
 
Hello people,

I've added the Script to my server, works perfect ! Very useful when the server isn't that much populated, since players can't be helped by others !

I'd like to ask you peaple something, i've had few people connecting to my server but saw them instant log out after 2 seconds, i'm not sure if it's them choosing that on purpose or an auto kick for some reason ? My friend manages to log in with no problem though.

Is there anyone of you who could try out my server and tell me if you get any error/kick when logging in ?
IP : 109.89.105.21:2302

And by the way, is there anyone here with good knowledge about server problems ? Because i'm getting an error message every seconds in my rpt.log and i do not know where it comes from...

Code:
16:21:08 Wrong text element 'null'
16:21:08 Wrong text element 'null'
16:21:08 Wrong text element 'null'
16:21:08 Wrong text element 'null'
16:21:09 "5: New instance 5  "
16:21:09 Wrong text element 'null'
16:21:09 Wrong text element 'null'
16:21:09 Wrong text element 'null'
16:21:09 Wrong text element 'null'
16:21:10 "6: New instance 6  "
16:21:10 Warning: z\addons\dayz_communityassets\models\razor.p3d:0 Error while trying to generate ST for points: 214, 349, 208
16:21:10 Wrong text element 'null'
16:21:10 Wrong text element 'null'
16:21:10 Wrong text element 'null'
16:21:10 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:13 "7: New instance 7  "
16:21:13 Wrong text element 'null'
16:21:13 Wrong text element 'null'
16:21:13 Wrong text element 'null'
16:21:13 Wrong text element 'null'
16:21:14 "8: New instance 8  "
16:21:14 Wrong text element 'null'
16:21:14 Wrong text element 'null'
16:21:14 Wrong text element 'null'
16:21:14 Wrong text element 'null'
16:21:15 "9: New instance 9  "
16:21:15 Wrong text element 'null'
16:21:15 Wrong text element 'null'
16:21:15 Wrong text element 'null'
16:21:15 Wrong text element 'null'
16:21:16 "10: New instance 10  "
16:21:17 Wrong text element 'null'
16:21:17 Wrong text element 'null'
16:21:17 Wrong text element 'null'

Could that be causing any lag to my server, because that message is constant right after the (16:20:58 "Starting SAR_AI version 1.1.0") has been started...
 
Hello people,

I've added the Script to my server, works perfect ! Very useful when the server isn't that much populated, since players can't be helped by others !

I'd like to ask you peaple something, i've had few people connecting to my server but saw them instant log out after 2 seconds, i'm not sure if it's them choosing that on purpose or an auto kick for some reason ? My friend manages to log in with no problem though.

Is there anyone of you who could try out my server and tell me if you get any error/kick when logging in ?
IP : 109.89.105.21:2302

And by the way, is there anyone here with good knowledge about server problems ? Because i'm getting an error message every seconds in my rpt.log and i do not know where it comes from...

Code:
16:21:08 Wrong text element 'null'
16:21:08 Wrong text element 'null'
16:21:08 Wrong text element 'null'
16:21:08 Wrong text element 'null'
16:21:09 "5: New instance 5  "
16:21:09 Wrong text element 'null'
16:21:09 Wrong text element 'null'
16:21:09 Wrong text element 'null'
16:21:09 Wrong text element 'null'
16:21:10 "6: New instance 6  "
16:21:10 Warning: z\addons\dayz_communityassets\models\razor.p3d:0 Error while trying to generate ST for points: 214, 349, 208
16:21:10 Wrong text element 'null'
16:21:10 Wrong text element 'null'
16:21:10 Wrong text element 'null'
16:21:10 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:11 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:12 Wrong text element 'null'
16:21:13 "7: New instance 7  "
16:21:13 Wrong text element 'null'
16:21:13 Wrong text element 'null'
16:21:13 Wrong text element 'null'
16:21:13 Wrong text element 'null'
16:21:14 "8: New instance 8  "
16:21:14 Wrong text element 'null'
16:21:14 Wrong text element 'null'
16:21:14 Wrong text element 'null'
16:21:14 Wrong text element 'null'
16:21:15 "9: New instance 9  "
16:21:15 Wrong text element 'null'
16:21:15 Wrong text element 'null'
16:21:15 Wrong text element 'null'
16:21:15 Wrong text element 'null'
16:21:16 "10: New instance 10  "
16:21:17 Wrong text element 'null'
16:21:17 Wrong text element 'null'
16:21:17 Wrong text element 'null'

Could that be causing any lag to my server, because that message is constant right after the (16:20:58 "Starting SAR_AI version 1.1.0") has been started...
I see some of these errors with custom debug monitor. You have one in server?

Enviado de meu GT-I9100 usando o Tapatalk 2
 
hey noticed your script is always showing i can give myself a blood bag, so i went into the fn_selfactions.sqf and changed your code to not show when a player is at 12000 blood.'

here is the blurb inside fn_selfactions:
Code:
// ------------------------------------------------------------------------Krixes Self Bloodbag Start------------------------------------------------------------------------
    _mags = magazines player;
   
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 ) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Selfblood\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
// ------------------------------
 
Hey man,

on my server it tends to be a little buggy. These bugs are:

First time loading in, can bloodbag ok, but any time after that the option doesn't come up, or only comes up when you are close to either a lootable object or a vehicle!

I am also running the random soldier clothing parcel script. Nothing else.

Thanks
 
hey noticed your script is always showing i can give myself a blood bag, so i went into the fn_selfactions.sqf and changed your code to not show when a player is at 12000 blood.'

here is the blurb inside fn_selfactions:
Code:
// ------------------------------------------------------------------------Krixes Self Bloodbag Start------------------------------------------------------------------------
    _mags = magazines player;
 
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 ) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Selfblood\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
// ------------------------------
Thank's I have been meaning to do a small update fixing a few of these little tweaks here and there. I have been busy as of late with my new server going up and have not been able to check on things.
Hey man,

on my server it tends to be a little buggy. These bugs are:

First time loading in, can bloodbag ok, but any time after that the option doesn't come up, or only comes up when you are close to either a lootable object or a vehicle!

I am also running the random soldier clothing parcel script. Nothing else.

Thanks
This is definitely a strange bug I have never heard of. If you like you may show me your dayz_mission.pbo and I will make sure all is working in there.
 
Hey man,

on my server it tends to be a little buggy. These bugs are:

First time loading in, can bloodbag ok, but any time after that the option doesn't come up, or only comes up when you are close to either a lootable object or a vehicle!

I am also running the random soldier clothing parcel script. Nothing else.

Thanks

Well i already know the issue, i had a similar problem with the random soldier, you will notice over time that the random soldier parcels will cause more and more issues the more you add in mods, its best to just remove it if your going to use these mods, remove the soldier, and you will have no bugs what so ever
 
hey noticed your script is always showing i can give myself a blood bag, so i went into the fn_selfactions.sqf and changed your code to not show when a player is at 12000 blood.'

here is the blurb inside fn_selfactions:
Code:
// ------------------------------------------------------------------------Krixes Self Bloodbag Start------------------------------------------------------------------------
    _mags = magazines player;
 
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 ) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Selfblood\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
// ------------------------------

as soon as i change this line
Code:
if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 )then {
it stops working... some of my other mods arent working then too (siphon fuel, remove vehicle parts, self bloodbag etc) wont appear in the scroll menu...
i have no idea what i could have made wrong... its only this line...
it works with the original line...

any ideas?
 
as soon as i change this line
Code:
if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 )then {
it stops working... some of my other mods arent working then too (siphon fuel, remove vehicle parts, self bloodbag etc) wont appear in the scroll menu...
i have no idea what i could have made wrong... its only this line...
it works with the original line...

any ideas?
This line as it is right now is a syntax error and will not work......
Code:
if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 )then {

The line should look like this...........
Code:
if (s_player_selfBloodbag < 0 && r_player_blood < 12000) then {
 
Hello people, i know this is completely out of subject but has anyone got a working "Removable Vehicle Parts" script ?
I've tried the one (simplified) but it ain't working, and it is installed correctly, i'm not getting any error message what so ever, just havn't got any option ingame to remove parts.

Thanks for the help !

If i can actually leave some feedback about the self bloodbag, it works perfect on my server, got no error what so ever, followed the instal to the letter and had no problem at all.
 
This line as it is right now is a syntax error and will not work......
Code:
if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 )then {

The line should look like this...........
Code:
if (s_player_selfBloodbag < 0 && r_player_blood < 12000) then {


yeah man... thats it... it works... =)
 
This line as it is right now is a syntax error and will not work......
Code:
if (s_player_selfBloodbag < 0) && ( r_player_blood < 12000 )then {

The line should look like this...........
Code:
if (s_player_selfBloodbag < 0 && r_player_blood < 12000) then {


weird.. no ones noticing any problems on my server. i too have remove vehicle parts and its working.

oh well guess syntax will do that haha.. thanks for the update krix <3
 
think i goofed. this was what i was supposed to send you, this works too.

Code:
// ------------------------------------------------------------------------Krixes Self Bloodbag Start------------------------------------------------------------------------
    _mags = magazines player;
   
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo && ( r_player_blood < 12000 ) ) then {
        if (s_player_selfBloodbag < 0) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Selfblood\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
// -------------------------------------------------------------------------Krixes Self Bloodbag End--------------------------------------------------------------------------

That one i posted before was a failed test. SORRY!
 
It works on my server, but the animation for using a bloodbag on myself takes REALLY long time.
- The animation goes in loop for about 3-4 times before he stops and i've got full blood.

Havent tried the new script that Alkinda posted in #120
 
It works on my server, but the animation for using a bloodbag on myself takes REALLY long time.
- The animation goes in loop for about 3-4 times before he stops and i've got full blood.

That is normal mate, it's because the time for the action is set to 30 seconds by default, you'll need to edit that yourself if you want to change it :)

Can't remenber though where to change it but it should be easy enough if you edit the few files that you have and find the line ;)
 
Back
Top