Yoko

All sides of Injection
It is currently 2025-10-30 00:32:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2006-08-25 07:08:28 
Offline

Joined: 2006-07-25 14:10:53
Posts: 42
У меня есть скрипт ветерана, не подскажете, как сделать так, что бы он копал по кругу один раз а не циклил? спасибо!
Code:
var mx, my, mz, i, j, jor, ser, noto 
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
while not UO.Hidden()
UO.Warmode("0")
uo.print("Prya4emsya")
UO.UseSkill("Hiding")
wait(4000)
wend
UO.Print("?????? ? ???????????: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock") and not UO.InJournal("Iron Ore") and not UO.InJournal("Copper") and not UO.InJournal("Rusty Ore")
UO.DeleteJournal()
if uo.waiting() then
uo.canceltarget()
endif
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Useobject("Shovel")
while not UO.InJournal("You put") and not UO.InJournal("heavy") and not UO.InJournal("location") and not UO.InJournal("no ore") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("in rock")
wait (500)
uo.canceltarget()
wend
if uo.weight > 230 then 
jumphome()
endif
wend
UO.DeleteJournal()
next
next
endsub

sub loot()   
if uo.waiting() then
uo.canceltarget()
endif
VAR a,Exit
DIM Ore[5]
Ore[0]=0x19B9 ; 4 and more ore
Ore[1]=0x19B7 ; 1 ore
Ore[2]=0x19BA ; 2 ore
Ore[3]=0x19B8 ; 3 ore
UO.SetReceivingContainer(UnloadConteiner)
wait(500)
For a=0 to 3
Exit=0
repeat
UO.FindType(Ore[a])
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(1500)
Else
Exit=1
endif
until Exit==1
Next
UO.UnSetReceivingContainer()


Top
   
 Post subject:
PostPosted: 2006-08-25 07:52:40 
Offline
User avatar

Joined: 2006-08-05 14:09:06
Posts: 270
Next


Top
   
 Post subject:
PostPosted: 2006-08-25 08:11:32 
Offline

Joined: 2006-07-25 14:10:53
Posts: 42
slonopotam wrote:
Next
:?:


Top
   
 Post subject:
PostPosted: 2006-08-25 08:25:20 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
типо удали :)


Top
   
 Post subject:
PostPosted: 2006-08-25 08:54:25 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Он вообщето итак один раз копает по кругу.


Top
   
 Post subject:
PostPosted: 2006-08-25 10:33:19 
Offline

Joined: 2006-07-25 14:10:53
Posts: 42
Все верно ошибку нашел, спасибо :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 8 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