Checking corpses

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
ozcaN
Posts: 34
Joined: 2004-06-18 17:21:40

Checking corpses

Post by ozcaN »

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

Post by Beyonder »

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: Select all

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
Post Reply