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

problem detecting target present or not
http://forum.yoko.com.ua/viewtopic.php?f=20&t=4817
Page 1 of 1

Author:  Redneck [ 2005-08-15 11:58:21 ]
Post subject:  problem detecting target present or not

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

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