Yoko

All sides of Injection
It is currently 2025-11-05 17:45:04

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Checking corpses
PostPosted: 2005-07-08 04:14:27 
Offline

Joined: 2004-06-18 17:21:40
Posts: 34
Could anyone help me make a script to check bags in corpses to make sure they have 1 item or greater. I was wonderin if it is possible. Casue im sick of lootin empty bags.


Top
   
 Post subject:
PostPosted: 2005-07-08 07:12:55 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
The pnly way to do it is to trigger the line that appears after requesting the name of the bag. It is "Bag (# items)". So we'll just request the name and see if it is "0 items".
Code:
sub IsEmptyBag(BagID)
  DeleteJournal('items)')
  UO.Click(BagID)
  while not UO.InJournal('items)')
    wait(100)
  wend
  if UO.InJournal('(0 items)') then
    return true
  else
    return false
  end if
end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 6 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Limited