Page 1 of 1

itemnotify

Posted: Thu Oct 30, 2014 11:55 pm
by conradd
Hi all,

I would like to pick up an item from a bag in my inventory.

Can someone give me some samples of macroquest code to do that with UF client plz ?

I tried some of the wiki like

Code: Select all

/itemnotify in pack1 1 leftmouseup
but it doesn't work and I'm getting an error on the bagslot or the itemslot.

I don't know what I'm missing.

Re: itemnotify

Posted: Fri Oct 31, 2014 12:19 am
by Dreos
I've used:

Code: Select all

/itemnotify in pack8 4 leftmouseup


Maybe try adding the leftmouseup? Working on booting up my main comp but it's going to be a bit till I could get in and try it.

Re: itemnotify

Posted: Fri Oct 31, 2014 1:24 am
by Noren
This may be an easier way to use it, borrowed from my pet weapons script (in a macro):

Code: Select all

/declare PetDag string local "Summoned: Godly Dagger of Destruction"

|-- Open inventory and all bags if the inventory window isn't open
/if (!${Window[InventoryWindow].Open}) /keypress OPEN_INV_BAGS

|-- Or, to open the bag containing the desired item
/itemnotify ${FindItem[${PetDag}].InvSlot.Pack} rightmouseup
|-- delay accounts for network latency
/delay 4

|-- Pick up the desired item
/itemnotify ${FindItem[${PetDag}].InvSlot} leftmouseup
|-- delay accounts for network latency
/delay 2


Or in a one-liner:

Code: Select all

/itemnotify ${FindItem[Sian's Ogre Stick].InvSlot} leftmousup

Re: itemnotify

Posted: Fri Oct 31, 2014 9:05 am
by conradd
Sorry, I forgot the leftmouseup when I posted ;)

Noren's line is interesting cos you double the InvSlot check. I will try this one, thx ;)