wilderness

consume instadoc with key press

23 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
On 4/9/2017 at 3:07 AM, 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?

did mezo's change work for you? i put in the script from your pastebin with @Mezo suggestion and it still did not work for me

Share this post


Link to post
Share on other sites

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
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.