Code:
sub NightSight()
VAR m, h
VAR bag = '0x4009B6A4' ; bag with reagents and bandages
While UO.SkillVal( 'Magery' ) < 1000
uo.findtype('0x0F7A', -1 ,'backpack')
if uo.findcount() < 10 then
uo.msg('Bank')
wait(1000)
uo.useobject( bag )
uo.findtype('0x0F7A', -1 , bag )
if uo.findcount() then
uo.moveitem('finditem','100','backpack')
checklag()
else
return
end if
end if
uo.findtype('0x0F88', -1 ,'backpack')
if uo.findcount() < 10 then
uo.msg('Bank')
wait(1000)
uo.useobject( bag )
uo.findtype('0x0F88', -1 , bag )
if uo.findcount() then
uo.moveitem('finditem','100','backpack')
checklag()
else
return
end if
end if
uo.findtype('0x0E21', -1 ,'backpack')
if uo.findcount() < 10 then
uo.msg('Bank')
wait(1000)
uo.useobject( bag )
uo.findtype('0x0F88', -1 , bag )
if uo.findcount() then
uo.moveitem('finditem','100','backpack')
checklag()
else
return
end if
end if
m = uo.mana
uo.cast('Energy Bolt','self')
repeat
wait(50)
until uo.mana < m
while uo.life < uo.str
uo.useskill('Meditation')
wait(100)
uo.bandageself()
wait(2500)
wend
while uo.mana < uo.int
uo.useskill('Meditation')
wait(1000)
wend
wend
end sub
Sub CHECKLAG()
del('backpack')
uo.click('backpack')
repeat
wait(50)
until uo.injournal('backpack')
del('backpack')
end sub
Sub DEL(msg)
while uo.injournal(msg)
uo.setJournalLine(uo.injournal(msg)-1,"Is Empty!")
wend
end sub
uo.bandageself()
wait(2500) здесь поставь свою задержку