MQ Command to check Inventory empty slot

Third party software discussion goes here.
Tristhan
Posts: 293

MQ Command to check Inventory empty slot

Post#1 » Fri May 17, 2013 4:13 pm

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}

conradd
Posts: 381

Re: MQ Command to check Inventory empty slot

Post#2 » Fri May 17, 2013 4:32 pm

To what purpose Tristhan ?
"Shorties will rule the world !"
[CLR] Conradd <Drachenkinder>

Tristhan
Posts: 293

Re: MQ Command to check Inventory empty slot

Post#3 » Fri May 17, 2013 10:10 pm

conradd wrote:To what purpose Tristhan ?


To check if my inventory slot 8 is empty :D
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.

Linideen1
Posts: 49

Re: MQ Command to check Inventory empty slot

Post#4 » Sat May 18, 2013 8:14 am

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


Tristhan
Posts: 293

Re: MQ Command to check Inventory empty slot

Post#5 » Sat May 18, 2013 4:01 pm

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


Return to “Third party software”

Who is online

Users browsing this forum: No registered users and 1 guest

cron