Ладно внесу свою лепту.
ловит по частям света.
рекол по 6 рункам.
Code: Select all
sub hiding()
uo.print("Hiding...")
UO.Warmode("0")
while not UO.Hidden()
UO.DeleteJournal()
UO.UseSkill("Hiding")
while NOT UO.InJournal("You")
wait(1000)
wend
wend
uo.print("OK")
end sub
sub fishingSouth()
hiding()
;var mx, my, mz, i, j
var i,j, isfishing
var mx = UO.GetX('self')
var my = UO.GetY('self')
var mz = UO.GetZ('self')
UO.DeleteJournal()
repeat
for i = mx-6 to mx+6
for j = my+1 to my+6
isfishing = 1
UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j)+' '+str(mz))
while not UO.InJournal("no fish here") and not UO.InJournal("fishing in water") and isfishing
UO.DeleteJournal()
UO.Waittargettile("6043", str(i), str(j), str(251))
UO.Usetype('0x0DC0')
while not UO.InJournal('You pull out') and not UO.InJournal('fail') and not UO.InJournal('no fish') and not UO.InJournal("fishing in water")
wait(100)
wend
; if not UO.Hidden('self') then
; hiding()
; end if
if UO.InJournal("treasure") then
uo.findtype('0x14EB',-1,1)
wait(500)
uo.grab('0','finditem')
end if
if UO.InJournal("fishing net") then
uo.findtype('0x0DCA',-1,1)
wait(500)
uo.grab('0','finditem')
end if
if UO.InJournal("Prize") or UO.InJournal("Rare") then
uo.findtype('0x0DD6',-1,1)
wait(500)
uo.grab('0','finditem')
end if
if UO.InJournal("out a fish") then
isfishing = 0
uo.print('vnizzz!!!')
end if
wend
UO.DeleteJournal()
next
next
until 1
end sub
sub fishingNorth()
hiding()
;var mx, my, mz, i, j
var i,j, isfishing
var mx = UO.GetX('self')
var my = UO.GetY('self')
var mz = UO.GetZ('self')
UO.DeleteJournal()
repeat
for i = mx-6 to mx+6
for j = my-6 to my-1
isfishing = 1
UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no fish here") and not UO.InJournal("fishing in water") and isfishing
UO.DeleteJournal()
UO.Waittargettile("6043", str(i), str(j), str(251))
UO.Usetype('0x0DC0')
while not UO.InJournal('You pull out') and not UO.InJournal('fail') and not UO.InJournal('no fish') and not UO.InJournal("fishing in water")
wait(100)
wend
; if not UO.Hidden('self') then
; hiding()
; end if
if UO.InJournal("treasure") then
uo.findtype('0x14EB',-1,1)
wait(500)
uo.grab('0','finditem')
end if
if UO.InJournal("fishing net") then
uo.findtype('0x0DCA',-1,1)
wait(500)
uo.grab('0','finditem')
end if
if UO.InJournal("Prize") or UO.InJournal("Rare") then
uo.findtype('0x0DD6',-1,1)
wait(500)
uo.grab('0','finditem')
end if
if UO.InJournal("out a fish") then
isfishing = 0
uo.print('dalshe!!!')
end if
wend
UO.DeleteJournal()
next
next
until 1
end sub
sub fishingEast()
hiding()
;var mx, my, mz, i, j
var i,j, isfishing
var mx = UO.GetX('self')
var my = UO.GetY('self')
var mz = UO.GetZ('self')
UO.DeleteJournal()
repeat
for i = mx+2 to mx+6
for j = my-6 to my+6
isfishing = 1
UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j)+' '+str(mz))
while not UO.InJournal("no fish here") and not UO.InJournal("fishing in water") and isfishing
UO.DeleteJournal()
UO.Waittargettile("6043", str(i), str(j), str(251))
UO.Usetype('0x0DC0')
while not UO.InJournal('You pull out') and not UO.InJournal('fail') and not UO.InJournal('no fish') and not UO.InJournal("fishing in water")
wait(100)
wend
; if not UO.Hidden('self') then
; hiding()
; end if
if UO.InJournal("treasure") then
uo.findtype('0x14EB',-1,1)
wait(500)
uo.grab('0','finditem')
uo.print('YPA MAP !!!')
end if
if UO.InJournal("fishing net") then
uo.findtype('0x0DCA',-1,1)
wait(500)
uo.grab('0','finditem')
uo.print('CETO4KA')
end if
if UO.InJournal("Prize") or UO.InJournal("Rare") then
uo.findtype('0x0DD6',-1,1)
wait(500)
uo.grab('0','finditem')
uo.print('Eeee PbI6KA')
end if
if UO.InJournal("out a fish") then
isfishing = 0
uo.print('vnizzz!!!')
end if
wend
UO.DeleteJournal()
next
next
until 1
end sub
sub fishingAll()
hiding()
;var mx, my, mz, i, j
var i,j, isfishing
var mx = UO.GetX('self')
var my = UO.GetY('self')
var mz = UO.GetZ('self')
UO.DeleteJournal()
repeat
for i = mx-6 to mx+6
for j = my-6 to my+6
isfishing = 1
UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j)+' '+str(mz))
while not UO.InJournal("no fish here") and not UO.InJournal("fishing in water") and isfishing
UO.DeleteJournal()
UO.Waittargettile("6043", str(i), str(j), str(251))
UO.Usetype('0x0DC0')
while not UO.InJournal('You pull out') and not UO.InJournal('fail') and not UO.InJournal('no fish') and not UO.InJournal("fishing in water")
wait(100)
wend
; if not UO.Hidden('self') then
; hiding()
; end if
if UO.InJournal("treasure") then
uo.findtype('0x14EB',-1,1)
wait(500)
uo.grab('0','finditem')
uo.print('YPA MAP !!!')
end if
if UO.InJournal("out a fish") then
isfishing = 0
uo.print('vnizzz!!!')
end if
wend
UO.DeleteJournal()
next
next
until 1
end sub
sub main()
var numrun
dim frune[10] ; òóò ÈÄøíèêè 6 ðóí íà ìåñòî ðûáàëêè è 7-àÿ äîìîé ê ÿùèêó
frune[1]='0x401932AF'
frune[2]='0x4019355E'
frune[3]='0x401933D4'
frune[4]='0x40193455'
frune[5]='0x401933F0'
frune[6]='0x4019302D'
frune[7]='0x402E074A'
var bagformap='0x40170C22' ;ìåøîê â êîòîðûé áóäóò êèäàòñÿ ìàïû äîìà
uo.exec("addobject Runebook 0x402127CF")
numrun=1
repeat
uo.cast('Recall',frune[numrun])
wait(5000)
if numrun==1 or numrun==2 or numrun==3 or numrun==4 or numrun==5 or numrun==6 then
uo.exec(fishingEast()) ; ýòî èìååòñÿ ââèäó ÷òî ïðè ïðèõîäå íà âñå ðóíû áóäåøü ëîâèòü íà þã, èëè îñòàâü òàê èëè ïðîñòî ïîìåíÿé íà äðóãîé âëîæåííûé ñêðèïò(åñëè òàê îñòàâëÿåøü òî âñå ìåñòà ëîâà äîæíû ñîîòýòñòíî áûòü íà þã)
end if
if numrun==6 then
uo.cast('Recall',frune[7])
wait(5000)
uo.unsetreceivingcontainer()
UO.SetReceivingContainer(bagformap)
repeat
uo.findtype("0x14EB")
wait(50)
; if uo.findcount()<1 then
; uo.print("Maps are over")
; Return
; end if
uo.grab('1','finditem')
wait(500)
until uo.findcount()<1
uo.unsetreceivingcontainer()
numrun=0
end if
numrun=numrun+1
until 0
end sub