Last item from bag

Ask for help

Moderators: Murderator+, Murderator

Post Reply
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Last item from bag

Post 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?
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Re: Last item from bag

Post 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?
xinxilas
Posts: 78
Joined: 2009-03-10 09:43:01

Re: Last item from bag

Post by xinxilas »

drop the last item that came to my bakcpack
Post Reply