sub Portal() UO.exec("warmode 0") var portal='0x1183' uo.usefromground(portal) if uo.hp<uo.str or uo.injournal('No item found','You can't do it in current state!') then return UO.Print('5') wait (1000) UO.Print('4') wait (1000) UO.Print('3') wait (1000) UO.Print('2') wait (1000) UO.Print('1') wait (1000) UO.Print('GO') UO.exec("warmode 0") wait (1000) UO.exec("warmode 0") end sub
Вот я тут накуралесил основная задача в том , чтобы Есле lastmsg =
You can't do it in current state! или No item found
то он отменял запрос , можно ли исправить мою мазню?
sub Portal() UO.exec("warmode 0") var portal='0x1183' uo.usefromground(portal) if uo.hp<uo.str or uo.injournal('No item found') OR UO.InJournal('You can't do it in current state!') then return UO.Print('5') wait (1000) UO.Print('4') wait (1000) UO.Print('3') wait (1000) UO.Print('2') wait (1000) UO.Print('1') wait (1000) UO.Print('GO') UO.exec("warmode 0") wait (1000) UO.exec("warmode 0") end sub
sub Portal() UO.exec("warmode 0") var portal='0x1183' uo.usefromground(portal) if uo.hp<uo.str or uo.injournal('No item found') OR UO.InJournal('You can't do it in current state!') then return endif UO.Print('5') wait (1000) UO.Print('4') wait (1000) UO.Print('3') wait (1000) UO.Print('2') wait (1000) UO.Print('1') wait (1000) UO.Print('GO') UO.exec("warmode 0") wait (1000) UO.exec("warmode 0") end sub
тоесть тогда так , но ошибка всеравно вылазиет
в твоей строке.