Yoko
http://forum.yoko.com.ua/

Checking corpses
http://forum.yoko.com.ua/viewtopic.php?f=20&t=4452
Page 1 of 1

Author:  ozcaN [ 2005-07-08 04:14:27 ]
Post subject:  Checking corpses

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.

Author:  Beyonder [ 2005-07-08 07:12:55 ]
Post subject: 

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/