Thread Tools Display Modes
12/03/23, 05:45 PM   #1
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 410
While it's true that you cannot use quickslot items, it's possible you might be able to use the function UseItem. It works for some items, but im not sure if it will work for repair kits. Also, it's a protected function, so it can only be used outside of combat, and you must call it like this:if IsProtectedFunction("TheNameOfYourFunction") then CallSecureProtected("TheNameOfYourFunction", arg1, arg2, arg3)else TheNameOfYourFunction(arg1, arg2, arg3)end
  Reply With Quote
12/03/23, 07:42 PM   #2
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 252
Originally Posted by Dolgubon View Post
While it's true that you cannot use quickslot items, it's possible you might be able to use the function UseItem. It works for some items, but im not sure if it will work for repair kits. Also, it's a protected function, so it can only be used outside of combat, and you must call it like this:if IsProtectedFunction("TheNameOfYourFunction") then CallSecureProtected("TheNameOfYourFunction", arg1, arg2, arg3)else TheNameOfYourFunction(arg1, arg2, arg3)end
ya it would be used outside of combat just repairing walls.. so basically i was about to setup a function so you could press Q once to wall repair and it would continue on its own untill wall complete. I had the entire thing as a vision in my head but I could not find the actual function to use the quickslot so it didnt go as planned. wall repair kits cant be used from inventory only the quickslot.

it was meant to be a QOL feature mostly.

Last edited by sinnereso : 12/03/23 at 07:46 PM.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » possible to execute quickslot from code?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off