Code: Select all
var kykla='0x0191' ;тип человека -)
var orygie='0x0F51';тип оружия -)
var bints='0x0E21'; тип бинта -)
sub train()
uo.findtype(kykla,'-1','ground')
while not uo.dead()
uo.findtype(kykla,'-1','ground')
if uo.gethp('finditem')>20 then
atack()
else
heal()
endif
uo.warmode(0)
wait(100)
wend
endsub
sub atack()
uo.usetype(orygie)
uo.waittargetself()
wait(500)
uo.warmode(1)
uo.ignorereset()
uo.ignore('self')
uo.findtype(kykla,'-1','ground')
uo.attack('finditem')
while uo.gethp('finditem')>20
uo.findtype(kykla,'-1','ground')
wait(100)
if uo.gethp('finditem')<19 then
uo.warmode(0)
endif
wend
uo.warmode(0)
endsub
sub heal()
var moy
var BandBL ='0x0E20'
uo.warmode(0)
UO.Disarm()
uo.FindType('0x1008','-1')
moy=uo.GetSerial('finditem')
UO.WaitTargetObject(Moy)
UO.UseType(BandBL)
uo.deletejournal()
uo.findtype(kykla,'-1','ground')
while not uo.injournal("does not need")
uo.warmode(0)
CheckLag()
uo.waittargetobject('finditem')
uo.usetype(bints)
wait(4000)
uo.findtype(kykla,'-1','ground')
wend
uo.useskill('Spirit Speak')
endsub
Sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')
repeat
wait(50)
until UO.InJournal('backpack')
end sub