Yoko

All sides of Injection
It is currently 2026-01-16 14:19:34

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Last item from bag
PostPosted: 2010-02-19 07:59:12 
Offline

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


Top
   
 Post subject: Re: Last item from bag
PostPosted: 2010-02-19 09:21:03 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
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?


Top
   
 Post subject: Re: Last item from bag
PostPosted: 2010-02-19 10:01:49 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
drop the last item that came to my bakcpack


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited