Проблема в мининге ветра иногда сбивается из-за GoTo:
в моем проблема, копает и резко останавливается
ветра
Code:
sub maning()
var mx, my, mz, i, j, jor, ser, noto
na4alo:
noto=0
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my -4 to my+4
while not UO.Hidden()
UO.Warmode(0)
uo.print("Прячемся...")
UO.UseSkill("Hiding")
wait(2500)
wend
UO.Print("Копаем в координатх: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no ore here|location|far away|in rock|Iron Ore|Copper|Rusty Ore")
UO.DeleteJournal()
if uo.waiting() then
uo.canceltarget()
endif
UO.Waittargettile("1341", str(i), str(j), str(mz))
If uo.count(Shovel) then
uo.usetype(Shovel)
end if
if uo.injournal('You loosen some rocks but fail') then
wait(10000)
endif
while not UO.InJournal("You put|heavy|location|no ore|but fail|far away|in rock")
wait (500)
for jor = 0 to 9
ser = uo.journalserial(jor)
if ser == uo.getserial('self') then
noto = 0
else
noto = uo.getnotoriety(ser)
endif
next
wend
if uo.weight > 500 then # Максимальный вес
goto end
endif
wend
UO.DeleteJournal()
next
next
goto na4alo
end:
if uo.waiting() then
uo.canceltarget()
endif
while not UO.Hidden()
UO.Warmode(0)
uo.print("Прячемся...")
UO.UseSkill("Hiding")
wait(2500)
wend
reccal:
uo.deletejournal()
if uo.waiting() then
uo.canceltarget()
endif
wait(500)
goto na4alo
end sub
мой
Code:
sub maning()
var mx, my, mz, i, j, jor, ser, noto
while not uo.dead()
#repeat
noto=0
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my -4 to my+4
while not UO.Hidden()
UO.Warmode(0)
uo.print("Прячемся...")
UO.UseSkill("Hiding")
wait(2500)
wend
UO.Print("Копаем в координатх: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no ore here|location|far away|in rock|Iron Ore|Copper|Rusty Ore")
UO.DeleteJournal()
if uo.waiting() then
uo.canceltarget()
endif
UO.Waittargettile("1341", str(i), str(j), str(mz))
If uo.count(Shovel) then
uo.usetype(Shovel)
end if
if uo.injournal('You loosen some rocks but fail') then
wait(10000)
endif
while not UO.InJournal("You put|heavy|location|no ore|but fail|far away|in rock")
wait (500)
for jor = 0 to 9
ser = uo.journalserial(jor)
if ser == uo.getserial('self') then
noto = 0
else
noto = uo.getnotoriety(ser)
endif
next
wend
if uo.weight > 500 then # Максимальный вес
end()
endif
wend
UO.DeleteJournal()
next
next
wend
#until uo.dead()
end sub
sub end()
if uo.waiting() then
uo.canceltarget()
endif
while not UO.Hidden()
UO.Warmode(0)
uo.print("Прячемся...")
UO.UseSkill("Hiding")
wait(2500)
wend
uo.deletejournal()
if uo.waiting() then
uo.canceltarget()
endif
wait(500)
end sub