Page 1 of 1

Item Count

Posted: Tue Mar 18, 2014 12:52 am
by ZZZZZ
Is it possible to count how many items are 'queued' for entering the inventory? When you're inventory is full items can then queue up rather than entering your bag. Just wondering if there is any way to check how many are there and what they are?

~~ Crap, wasn't supposed to post this in Userfunctions etc, could it be moved to main Runes of Magic forum? thanks

Re: Item Count

Posted: Tue Mar 18, 2014 3:08 am
by lisa
There is an ingame function to get the items info.
GetItemQueueInfo()

you could use that if you really wanted to.

Code: Select all

for i = 1,25 do
if RoMScript("GetItemQueueInfo("..i..")") == nil then
print(i-1) -- i-1 should be the number of items in queue
break
end
yrest(100)
end
The more items in queue the longer it will take to do code.
I think rock said it was max 25 items, or maybe it was 20.

Keep in mind though that as items enter the bag they are in this que and so you could have room in bag and the itemqueue may have 10 odd items in it still going into bag (if you use pet perfume), if you are looting I think 6 is max in queue at one time.

Re: Item Count

Posted: Tue Mar 18, 2014 4:22 am
by ZZZZZ
I think its 20. There is a quest that I want to test out, can build up heaps of the quest item in that fashion, where as usually you are only allowed to collect 1 at a time (seeing as quest functions ingame also go off items in bag, not in queue)

Re: Item Count

Posted: Tue Mar 18, 2014 5:47 am
by rock5
I believe it is 20. There is also a bot function that gets the number directly from memory ItemQueueCount().
ZZZZZ wrote:There is a quest that I want to test out, can build up heaps of the quest item in that fashion, where as usually you are only allowed to collect 1 at a time (seeing as quest functions ingame also go off items in bag, not in queue)
I'm not aware of any quests that require only 1 item but I've used that trick to bot 5 item dailies. It was a bit tricky but I was able to do 5 dailies at a time. The trick was to collect 4, move them into your transmuter, then split a stack of something until your bag is full. Then after filling the item queue with 20 items start collecting your 21st. While you are still collecting it, make space in your inventory for the items in the queue to start coming in. Then you will successfully get that 21st item for a total of 25. I had to modify the split and merge functions I had from the Superstitious addon as they didn't quite work properly.

Re: Item Count

Posted: Tue Mar 18, 2014 5:54 am
by lisa
I also came across some itemqueueremove functions when pocking around in CE, it might be possible to remove items from the queue but yeah I haven't tested it, it's not even listed in the rom wiki.