Yoko

All sides of Injection
It is currently 2026-03-19 01:46:16

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2004-11-23 20:43:19 
Offline
User avatar

Joined: 2004-11-02 23:52:47
Posts: 86
Вот, есть такой скрипт на фишинг, он прекрастно работает, вот только после того как дойдёт до mx=-6 ; my=-6, выдаёт ошибку и не хочет начинать сначала. Пробывал убрать repeat, тоже самое. Помогите исправить
Code:
sub fishing() 
var mx, my, mz, i, j
repeat
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
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") and not UO.InJournal("You pull")
UO.DeleteJournal()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Usetype("0x0DBF")
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 (1000)
if UO.InJournal("You pull") then
UO.findtype('0x14EB','0x0000' ,'ground') ;tattered map
UO.grab ('1','finditem')
UO.findtype('0x0DCA','0x0000','ground')
UO.grab ('1','finditem')
wait (100)
end if
wend
wend
UO.DeleteJournal()
next
next
wend
uo.print('---End of script---')
until uo.dead()
end sub


Top
   
 Post subject:
PostPosted: 2004-11-23 20:46:21 
Offline
User avatar

Joined: 2004-11-02 23:52:47
Posts: 86
А, всё врубился "wend" лишний :D


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


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