Page 1 of 1

Помогите с Fishing.

Posted: 2010-09-22 12:36:40
by Cl@iMaN
Вот скрипт:

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 
if UO.dead() then 
return 
endif 
while not UO.Hidden() 
UO.Warmode("0") 
uo.print("hiding...") 
UO.UseSkill("Hiding") 
wait(4000) 
wend 

UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j)) 
while not UO.InJournal("no fish here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in water") 
UO.DeleteJournal() 
UO.Waittargettile("1341", str(i), str(j), str(mz)) 
UO.Usetype("0x0DBF") ;FishingPole 
if UO.dead() then 
return 
endif 
if UO.Weight>660 then 
return 
endif 
while not UO.InJournal("You pull") and not UO.InJournal("location") and not UO.InJournal("no fish") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("in water") 
wait (100) 
if UO.InJournal("You pull") then 
UO.SetReceivingContainer('Bag') 
UO.findtype('0x09CC','0x0000','ground') ;fish 
UO.grab ('3','finditem') 
wait (500) 
UO.findtype('0x09CD','0x0000','ground') ;fish 
UO.grab ('3','finditem') 
wait (500) 
UO.findtype('0x09CE','0x0000','ground') ;fish 
UO.grab ('3','finditem') 
wait (500) 
UO.findtype('0x09CF','0x0000','ground') ;fish 
UO.grab ('3','finditem') 
wait (500) 
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 
Помогите убрать Hiding. Заранее благодарен.

Re: Помогите с Fishing.

Posted: 2010-09-22 12:50:51
by kirpaaa
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
if UO.dead() then
return
endif
#while not UO.Hidden()
#UO.Warmode("0")
#uo.print("hiding...")
#UO.UseSkill("Hiding")
#wait(4000)
wend

UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no fish here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in water")
UO.DeleteJournal()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Usetype("0x0DBF") ;FishingPole
if UO.dead() then
return
endif
if UO.Weight>660 then
return
endif
while not UO.InJournal("You pull") and not UO.InJournal("location") and not UO.InJournal("no fish") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("in water")
wait (100)
if UO.InJournal("You pull") then
UO.SetReceivingContainer('Bag')
UO.findtype('0x09CC','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
UO.findtype('0x09CD','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
UO.findtype('0x09CE','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
UO.findtype('0x09CF','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
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

Re: Помогите с Fishing.

Posted: 2010-09-22 12:58:48
by Cl@iMaN
пишет ошибку: Unhandled exception in parser.

Re: Помогите с Fishing.

Posted: 2010-09-22 13:05:13
by kirpaaa
#while not UO.Hidden()
#UO.Warmode("0")
#uo.print("hiding...")
#UO.UseSkill("Hiding")
#wait(4000)
wend

удали это все ! и вроде будет гут :)

Re: Помогите с Fishing.

Posted: 2010-09-22 13:08:10
by Cl@iMaN
Заработало :D , тока теперь пишет клетки 8 8 ; 8 7 и всё. Но в Injecte скрипт продолжает работать :?

Re: Помогите с Fishing.

Posted: 2010-09-22 13:18:41
by kirpaaa
попробуй выруби инжект и заново зайди

Re: Помогите с Fishing.

Posted: 2010-09-22 13:23:33
by Cl@iMaN
kirpaaa wrote:попробуй выруби инжект и заново зайди
не помогает.

Re: Помогите с Fishing.

Posted: 2010-09-22 13:28:36
by kirpaaa
хз , у меня все ок.. Жди тогда может кто еще поможет , только долго ждать до 2ух суток бывает жду пока кто-то ответит :(


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
if UO.dead() then
return
endif


UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no fish here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in water")
UO.DeleteJournal()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Usetype("0x0DBF") ;FishingPole
if UO.dead() then
return
endif
if UO.Weight>660 then
return
endif
while not UO.InJournal("You pull") and not UO.InJournal("location") and not UO.InJournal("no fish") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("in water")
wait (100)
if UO.InJournal("You pull") then
UO.SetReceivingContainer('Bag')
UO.findtype('0x09CC','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
UO.findtype('0x09CD','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
UO.findtype('0x09CE','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
UO.findtype('0x09CF','0x0000','ground') ;fish
UO.grab ('3','finditem')
wait (500)
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

Re: Помогите с Fishing.

Posted: 2010-09-22 13:33:21
by Cl@iMaN
он как, пропускает 2-е координаты и встоет в ступор. походу он пытается закинуть удочку в последнюю координату.

Был где-то скрипт, но найти не могу. Там если 1-2-3-4-5 координаты земля, то он продолжает дальше поиск воды.

Re: Помогите с Fishing.

Posted: 2010-09-22 13:37:08
by kirpaaa
могу дать на EasyUo если пользуешся ?

Re: Помогите с Fishing.

Posted: 2010-09-22 13:37:32
by Cl@iMaN
давай попробую :)

Re: Помогите с Fishing.

Posted: 2010-09-22 13:38:28
by kirpaaa
дай Skype свой

Re: Помогите с Fishing.

Posted: 2010-09-22 13:41:34
by Cl@iMaN
Skype не стоит. Есть тока такие контыкты:
claimill@mail.ru или icq627677722

Re: Помогите с Fishing.

Posted: 2010-09-22 13:48:18
by kirpaaa
+email

Re: Помогите с Fishing.

Posted: 2010-09-22 13:56:12
by Cl@iMaN
всё стало круто, после твоей посылки :)

Re: Помогите с Fishing.

Posted: 2010-09-22 13:57:16
by kirpaaa
:D удачи