есть тока один вопросик.... верна ли реализация при которой он не будет тупо пытаться использовать бутылки до того времени как их можно использовать?
Code: Select all
##*********************************
##********** Автохилинг ***********
##*********************************
sub autoheal()
var time, not_bandagehealed_dmg = 70, fish_time = uo.Timer(), gh_time = uo.Timer(), i
while not uo.Dead()
if uo.life<uo.str then
time=uo.Timer()+11000
uo.DeleteJournal()
for i = 1 to 3
uo.msg('.bandage self') ## Это баг сервера... тройной бандаг без задержки...
next
while not (uo.InJournal('healed|The patient') or time<uo.timer() or uo.life==uo.str)
wait(300)
if (uo.life<uo.str-not_bandagehealed_dmg and uo.count('0x0F0E', '0x0690')>0 and gh_time<uo.timer()) then
gh_time = uo.Timer()+5000
uo.usetype('0x0F0E', '0x0690') ## Пьёт ГХ...
wait(300)
else
if (uo.life<uo.str-not_bandagehealed_dmg and uo.InJournal('you can drink') and uo.count('0x0dd6', '0x0009')>0 and fish_time<uo.timer()) then
fish_time = uo.Timer()+5000
uo.usetype('0x0dd6', '0x0009') ## Кушает мэйджик рыбу...
wait(300)
endif
endif
wend
endif
wend
end sub
прав ли я с использованием таймера?