
В общем, мальчики, помогите пожалуйста. Нужно чтобы рыбачил без остановки, но два типа рыбы и карты, выпадающие на пол, выкладывал в рядом стоящий мешочек. Обычная выпадающая рыба будет локаться автоматически и без скрипта.
С перекладкой нужной рыбы не парьтесь, там я все забью сама, но вот с самой рыбалочкой очень большая просьба помочь. Вот скрипт
Code: Select all
sub fishing()
var mx, my, mz, i, j
uo.print('А где ведро?')
uo.exec('addobject Bag')
while uo.targeting()
wait(100)
wend
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
UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("seem to be any fish here") and not
UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("t
fish there")
UO.DeleteJournal()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Usetype("0x0DBF") ;FishingPole
while not UO.InJournal("You pull") and not UO.InJournal("location") and not
UO.InJournal("seem to be any fish here") and not UO.InJournal("but fail") and not
UO.InJournal("far away") and not UO.InJournal("t fish there")
wait (100)
if UO.InJournal("You pull") then
UO.SetReceivingContainer('Bag')
UO.findtype('0x14EB','0x0000','ground') ;tattered map
UO.grab ('1','finditem')
wait (500)
UO.findtype('0x0DD6','0x05F6','ground') ;Truly rare fish
UO.grab ('1','finditem')
wait (500)
UO.findtype('0x0DD6','0x01BB','ground') ;Prize fish
UO.grab ('1','finditem')
wait (500)
UO.UnSetReceivingContainer()
end if
wend
wend
UO.DeleteJournal()
next
next
end sub
Заранее спасибо
