Page 1 of 1
MQ Command to check Inventory empty slot
Posted: Fri May 17, 2013 4:13 pm
by Tristhan
Hiya,
is there any MQ command to check if an inventory slot (slot 8 per example) is empty ?
Maybe one of these commands ? my test werent successful and returned only errors
${InvSlot[pack8].Pack}
${FindItem[=pack8].InvSlot}
${InvSlot[pack8].Item.Container} || ${InvSlot[pack8].Item}
Re: MQ Command to check Inventory empty slot
Posted: Fri May 17, 2013 4:32 pm
by conradd
To what purpose Tristhan ?
Re: MQ Command to check Inventory empty slot
Posted: Fri May 17, 2013 10:10 pm
by Tristhan
conradd wrote:To what purpose Tristhan ?
To check if my inventory slot 8 is empty
If not i need to pick up the item/bag there and remove it before i can place my summoned bag there.
I dont want to exchange the item/bag on inventory slot 8, just check if empty.
Re: MQ Command to check Inventory empty slot
Posted: Sat May 18, 2013 8:14 am
by Linideen1
Been away from script for a bit now i forget exactly but try these....
Code: Select all
${FindItem.Pack8.ID}
${Invslot[Pack8].ID}
2nd one i believe is correct. Will return null if empty, Or Return ID on item / Bag. You could add a /if statement to check contents of pack also (did this for pet summoning / gearing)
Code: Select all
/if (${InvSlot[Pack8].ID}>0) {
/if (${InvSlot[Pack8].ID}>0 && ${InvSlot[Pack8].Pack})
/echo Slot8 = ${InvSlot[Pack8].Pack} || ${InvSlot[Pack8].Name} || ${InvSlot[Pack8].ID}
/itemnotify pack8 rightmouseup
}
}
Re: MQ Command to check Inventory empty slot
Posted: Sat May 18, 2013 4:01 pm
by Tristhan
Thank you, i will test this.
Linideen1 wrote:Been away from script for a bit now i forget exactly but try these....
Code: Select all
${FindItem.Pack8.ID}
${Invslot[Pack8].ID}
2nd one i believe is correct. Will return null if empty, Or Return ID on item / Bag. You could add a /if statement to check contents of pack also (did this for pet summoning / gearing)
Code: Select all
/if (${InvSlot[Pack8].ID}>0) {
/if (${InvSlot[Pack8].ID}>0 && ${InvSlot[Pack8].Pack})
/echo Slot8 = ${InvSlot[Pack8].Pack} || ${InvSlot[Pack8].Name} || ${InvSlot[Pack8].ID}
/itemnotify pack8 rightmouseup
}
}