Yoko

All sides of Injection
It is currently 2026-01-16 16:48:55

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: fishing HELP
PostPosted: 2007-02-16 22:10:29 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
est' macr, шард антарес, проблема в том что он не поднимает рыбку.

Code:
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-6 to mx+6
for j = my -6 to my+6
if UO.dead() then
return
endif

UO.Print("Now Fishing In: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("Тут нету рыбы.") and not UO.InJournal("Вы поймали рыбу") and not UO.InJournal("Попробуйте порыбачить в другом месте")
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("Тут нету рыбы.") and not UO.InJournal("Вы поймали рыбу") and not UO.InJournal("Попробуйте порыбачить в другом месте")
wait (100)
if UO.InJournal("You pull") then
UO.SetReceivingContainer('Bag')
UO.findtype('0x09CC','0x0000','ground') ;fish
UO.grab ('1','finditem')
wait (200)
UO.findtype('0x09CD','0x0000','ground') ;fish
UO.grab ('1','finditem')
wait (200)
UO.findtype('0x09CE','0x0000','ground') ;fish
UO.grab ('1','finditem')
wait (200)
UO.findtype('0x09CF','0x0000','ground') ;fish
UO.grab ('1','finditem')
wait (200)
UO.findtype('0x14EB','0x0000','ground') ;tattered map
UO.grab ('1','finditem')
wait (200)
UO.findtype('0x0DD6','0x05F6','ground') ;Truly rare fish
UO.grab ('1','finditem')
wait (200)
UO.findtype('0x0DD6','0x01BB','ground') ;Prize fish
UO.grab ('1','finditem')
wait (200)
UO.UnSetReceivingContainer()
end if
wend
wend
UO.DeleteJournal()
next
next
end sub


[/code]


Top
   
 Post subject:
PostPosted: 2007-02-16 22:32:00 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
проверь тип или колор

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2007-02-16 22:34:55 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
тип и колор правильно


Top
   
 Post subject:
PostPosted: 2007-02-16 22:41:22 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
всё понятно, там где строчка if UO.InJournal("You pull") then тут место You pull должна стоять фраза после которой идёт массив чтоли :) который поднимает то что выловил. Типо "Вы поймали рыбу"


Top
   
 Post subject:
PostPosted: 2007-02-17 11:48:59 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
умница 8)

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited