wilderness

consume instadoc with key press

33 posts in this topic

4 hours ago, Up2Dat3 said:

Hey, im realy new here.

Is the Script out of date?

becouse i use it but dont work.

http://prntscr.com/eu7vpd

but it should right or?

Yes. Change the notification line to

["ErrorTitleAndText", ["Failed", "You need an instadoc to do that!"]] call ExileClient_gui_toaster_addTemplateToast;

 

Share this post


Link to post
Share on other sites
Advertisement

Hello!

My 1 poptab.

Spoiler

if (_keyCode in (actionKeys "UserSmthg")) exitWith
{
	if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then
	{
		if ((damage player) isEqualTo 0) then
		{
			["InfoTitleAndText", ["Whoops", "You're full health!"]] call ExileClient_gui_toaster_addTemplateToast;
		}
		else
		{
			if !(alive player) then
			{
				["InfoTitleAndText", ["Whoops", "You're already dead!"]] call ExileClient_gui_toaster_addTemplateToast;
			}
			else
			{
				if !("Exile_Item_InstaDoc" in (magazines player)) then
				{
					["InfoTitleAndText", ["Whoops", "You'd lost your InstaDoc somewhere!"]] call ExileClient_gui_toaster_addTemplateToast;
				}
				else
				{
					if ("Exile_Item_InstaDoc" in (magazines player)) then
					{
						["Exile_Item_InstaDoc"] call ExileClient_object_item_consume;
					};
				};
			};
		};
	};
	true
};

 

Good luck.

Edited by exilerist

Share this post


Link to post
Share on other sites

dosent work for me... I dont know whats wrong

I've added the following and it dosent works maybe anyone can give me a hand to solve that problem 9_9

Spoiler

case 0x0A: // --> 9
	{
	
		if !((damage player) isEqualTo 0) then
		{
			"Exile_Item_Instadoc" call ExileClient_object_item_consume;
		};
		_stopPropagation = true;	
	};

	
};
_stopPropagation

 

 

On 20.4.2017 at 11:34 AM, exilerist said:

Hello!

My 1 poptab.

  Reveal hidden contents


if (_keyCode in (actionKeys "UserSmthg")) exitWith
{
	if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then
	{
		if ((damage player) isEqualTo 0) then
		{
			["InfoTitleAndText", ["Whoops", "You're full health!"]] call ExileClient_gui_toaster_addTemplateToast;
		}
		else
		{
			if !(alive player) then
			{
				["InfoTitleAndText", ["Whoops", "You're already dead!"]] call ExileClient_gui_toaster_addTemplateToast;
			}
			else
			{
				if !("Exile_Item_InstaDoc" in (magazines player)) then
				{
					["InfoTitleAndText", ["Whoops", "You'd lost your InstaDoc somewhere!"]] call ExileClient_gui_toaster_addTemplateToast;
				}
				else
				{
					if ("Exile_Item_InstaDoc" in (magazines player)) then
					{
						["Exile_Item_InstaDoc"] call ExileClient_object_item_consume;
					};
				};
			};
		};
	};
	true
};

 

Good luck.

 

and on this example i dont know how to add

tested to add this like the example above, with:

"case 0x0A

{

"And here I have added the code of exilerist"

}; 

and without the case stuff  and i've try to add them simple at the end of this file (ExileClient_gui_hud_event_onKeyUp)

but nothing works so have anyone an idea?

Edited by Powerstriker46

Share this post


Link to post
Share on other sites
2 hours ago, Powerstriker46 said:

dosent work for me... I dont know whats wrong

I've added the following and it dosent works maybe anyone can give me a hand to solve that problem 9_9

  Reveal hidden contents


case 0x0A: // --> 9
	{
	
		if !((damage player) isEqualTo 0) then
		{
			"Exile_Item_Instadoc" call ExileClient_object_item_consume;
		};
		_stopPropagation = true;	
	};

	
};
_stopPropagation

 

 

 

and on this example i dont know how to add

tested to add this like the example above, with:

"case 0x0A

{

"And here I have added the code of exilerist"

}; 

and without the case stuff  and i've try to add them simple at the end of this file (ExileClient_gui_hud_event_onKeyUp)

but nothing works so have anyone an idea?

should inside the section below.

Quote

switch (_keyCode) do  

};

Quote

 case 0x2E:
{
    if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then
    {
        if ((damage player) isEqualTo 0) then
        {
            ["InfoTitleAndText", ["Whoops", "You're full health!"]] call ExileClient_gui_toaster_addTemplateToast;
        }
        else
        {
            if !(alive player) then
            {
                ["InfoTitleAndText", ["Whoops", "You're already dead!"]] call ExileClient_gui_toaster_addTemplateToast;
            }
            else
            {
                if !("Exile_Item_InstaDoc" in (magazines player)) then
                {
                    ["InfoTitleAndText", ["Whoops", "You'd lost your InstaDoc somewhere!"]] call ExileClient_gui_toaster_addTemplateToast;
                }
                else
                {
                    if ("Exile_Item_InstaDoc" in (magazines player)) then
                    {
                        ["Exile_Item_InstaDoc"] call ExileClient_object_item_consume;
                        _stopPropagation = true; 
                    };
                };
            };
        };
    };
};

 

  • Like 1

Share this post


Link to post
Share on other sites

thanks for your answer but this was what i've done :/ here the complete example of that

now i using this code but it dosent works :(

Spoiler

Deleted

Edit:

now ive found the mistake problem

if (_keyCode in (actionKeys "UserSmthg")) exitWith

{ ....} true                     ---> look in orginal release post if you dont know what I mean it is the first line

it dosent works but your version works with the key function (case: 0xXX)

i think that the orginal version is also working too, but i dont know wich key the "UserSmthg" is :P i asked google and BI- scripting webside but i found nothing

thanks for your help

;)

 

Edited by Powerstriker46

Share this post


Link to post
Share on other sites
4 hours ago, Powerstriker46 said:

thanks for your answer but this was what i've done :/ here the complete example of that

now i using this code but it dosent works :(

  Hide contents

Deleted

Edit:

now ive found the mistake problem

if (_keyCode in (actionKeys "UserSmthg")) exitWith

{ ....} true                     ---> look in orginal release post if you dont know what I mean it is the first line

it dosent works but your version works with the key function (case: 0xXX)

i think that the orginal version is also working too, but i dont know wich key the "UserSmthg" is :P i asked google and BI- scripting webside but i found nothing

thanks for your help

;)

 

This is what you want concerning actionkeys.

https://community.bistudio.com/wiki/inputAction/actions

eg below

Quote

if (_keyCode in (actionKeys "gear")) exitWith

so every time you open your gear it will allow the script to execute.

  • User1 - Use Action 1
  • User2 - Use Action 2
  • User3 - Use Action 3
  • User4 - Use Action 4
  • User5 - Use Action 5
  • User6 - Use Action 6
  • User7 - Use Action 7
  • User8 - Use Action 8
  • User9 - Use Action 9
  • User10 - Use Action 10
  • User11 - Use Action 11
  • User12 - Use Action 12
  • User13 - Use Action 13
  • User14 - Use Action 14
  • User15 - Use Action 15
  • User16 - Use Action 16
  • User17 - Use Action 17
  • User18 - Use Action 18
  • User19 - Use Action 19
  • User20 - Use Action 20

Are really good to use the higher action keys pref because they aren't already in use. That allows people to not suffer from the script on another action key. Like "gear" ect. You will just need to tell people that those custom action keys are used or else they will never know. The xsSpawn script has a nice did you know section when you are choosing your spawn point, will be worth adding that in so people know.

Edited by Pattoh
  • Like 1

Share this post


Link to post
Share on other sites

@Pattoh

now I have tryed this but nothin happens ingame :/

Spoiler

//case 0x0A:  //9
		
		if (_keyCode in (actionKeys "User5")) exitWith
		{
			if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then
			{
				if ((damage player) isEqualTo 0) then
				{
					["InfoTitleAndText", ["Whoops", "You're full health!"]] call ExileClient_gui_toaster_addTemplateToast;
				}
				else
				{
					if !(alive player) then
					{
						["InfoTitleAndText", ["Whoops", "You're already dead!"]] call ExileClient_gui_toaster_addTemplateToast;
					}
					else
					{
						if !("Exile_Item_InstaDoc" in (magazines player)) then
						{
							["InfoTitleAndText", ["Whoops", "You'd lost your InstaDoc somewhere!"]] call ExileClient_gui_toaster_addTemplateToast;
						}
						else
						{
							if ("Exile_Item_InstaDoc" in (magazines player)) then
							{
								["Exile_Item_InstaDoc"] call ExileClient_object_item_consume;
							};
						};
					};
				};
			};
			true
		};

 

 

 

do you hava an idea whats wrong again -.-'

he should use the instadoc if you use the custom button 5 but it isnt working...

and dont worry i defined the custom button5 on F2 of my keyboard^^

must I write that into

switch (_keyCode) do  
{ };

or not?

 

 

Edited by Powerstriker46

Share this post


Link to post
Share on other sites
1 hour ago, Powerstriker46 said:

@Pattoh

now I have tryed this but nothin happens ingame :/

  Hide contents


//case 0x0A:  //9
		
		if (_keyCode in (actionKeys "User5")) exitWith
		{
			if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then
			{
				if ((damage player) isEqualTo 0) then
				{
					["InfoTitleAndText", ["Whoops", "You're full health!"]] call ExileClient_gui_toaster_addTemplateToast;
				}
				else
				{
					if !(alive player) then
					{
						["InfoTitleAndText", ["Whoops", "You're already dead!"]] call ExileClient_gui_toaster_addTemplateToast;
					}
					else
					{
						if !("Exile_Item_InstaDoc" in (magazines player)) then
						{
							["InfoTitleAndText", ["Whoops", "You'd lost your InstaDoc somewhere!"]] call ExileClient_gui_toaster_addTemplateToast;
						}
						else
						{
							if ("Exile_Item_InstaDoc" in (magazines player)) then
							{
								["Exile_Item_InstaDoc"] call ExileClient_object_item_consume;
							};
						};
					};
				};
			};
			true
		};

 

 

 

do you hava an idea whats wrong again -.-'

he should use the instadoc if you use the custom button 5 but it isnt working...

and dont worry i defined the custom button5 on F2 of my keyboard^^

must I write that into

switch (_keyCode) do  
{ };

or not?

 

 

 

Put it right up the top before the switch.

Like below

Quote

if (_keyCode in (actionKeys "User5")) exitWith
{
    if !(ExileClientIsHandcuffed || ExileIsPlayingRussianRoulette) then
    {
        if ((damage player) isEqualTo 0) then
        {
            ["InfoTitleAndText", ["Whoops", "You're full health!"]] call ExileClient_gui_toaster_addTemplateToast;
        }
        else
        {
            if !(alive player) then
            {
                ["InfoTitleAndText", ["Whoops", "You're already dead!"]] call ExileClient_gui_toaster_addTemplateToast;
            }
            else
            {
                if !("Exile_Item_InstaDoc" in (magazines player)) then
                {
                    ["InfoTitleAndText", ["Whoops", "You'd lost your InstaDoc somewhere!"]] call ExileClient_gui_toaster_addTemplateToast;
                }
                else
                {
                    if ("Exile_Item_InstaDoc" in (magazines player)) then
                    {
                        ["Exile_Item_InstaDoc"] call ExileClient_object_item_consume;
                    };
                };
            };
        };
    };
    true
};
switch (_keyCode) do  

    case 0x2E:
    {

 

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.