Page 1 of 1

Last item from bag

Posted: 2010-02-19 07:59:12
by xinxilas
We have some var that stores the last item the went to bag?

like 'lastitem'

im using it to do that

uo.findtype('-1','-1','backpack')
l=uo.findcount('finditem')-1
while l>0
uo.ignore('finditem')
uo.findtype('-1','-1','backpack')
l=l-1
wend
uo.findtype('-1','-1','backpack')

is there any better way?

Re: Last item from bag

Posted: 2010-02-19 09:21:03
by Beyonder
No, there is no other way to do that. However, it is possible that your primary task can be written some other way, without using 'lastitem'. What is it that you want to implement?

Re: Last item from bag

Posted: 2010-02-19 10:01:49
by xinxilas
drop the last item that came to my bakcpack