problem detecting target present or not

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Redneck
Posts: 3
Joined: 2005-05-28 12:04:30

problem detecting target present or not

Post by Redneck »

i made this script to send money during champions using the bag of sending.
My problem is when the bag of sending runs out of charges.
How can i detect this? when the bag is out of charges, using it doesn't shows up the target, so how can i detect this?

Code: Select all

sub checkweight()
var weightmax=uo.str*3.5 # real max is 40+(uo.str*3.5)
if UO.weight >= weightmax then
      uo.print('MAX weight reached, sending money')
      uo.findtype('POF','-1','backpack')
      uo.waittargetobject('finditem')
      uo.useobject('bagsending')
endif
endsub
Post Reply