Yoko

All sides of Injection
It is currently 2025-11-10 01:25:41

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2006-07-17 01:04:47 
Offline

Joined: 2004-09-02 15:15:17
Posts: 13
Можно ли сюда добавить, чтоб при выкапке определённой руды он шел дальше, а не докапывал точку?

Code:
sub mine_spot() 
   var maxMineTime=30000
   var times=0
   var timeout=0
while not UO.Hidden()
UO.Warmode("0")
uo.print("Прячемся...")
UO.UseSkill("Hiding")
wait(4000)
wend
   While UO.InJournal("Нет")==0
   UO.Print("Mining time!")
   UO.DeleteJournal()

   UO.WaitTargetTile("1339",STR(UO.GetX()+1),STR(UO.GetY()),"0")
   UO.UseType("0x0F39")
   timeout=0
   times = times +1
   if times>20 then
      wait(maxMineTime)
      times = 0
   endif
   Repeat
      timeout=timeout+200
      Wait(200)
      #UO.Print("Waiting...")
      Until UO.InJournal("положили") OR UO.InJournal("You loosen") OR UO.InJournal("Нет") OR timeout>maxMineTime
   Wend

   return 0
end sub


Top
   
 Post subject:
PostPosted: 2006-07-17 02:44:36 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
Until UO.InJournal("положили|Нет|You loosen|Iron|Rusty|Crystal|Aqua|Vulcan|Marganece|Cooper")

:lol:

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


Top
   
 Post subject:
PostPosted: 2006-07-17 03:10:14 
Offline

Joined: 2004-09-02 15:15:17
Posts: 13
Интересно и как это поможет?


Top
   
 Post subject:
PostPosted: 2006-08-07 19:47:08 
Offline

Joined: 2006-05-31 21:04:43
Posts: 8
инжект прочитает ети строки и пайдёт дальше
(как я понял) :)


Top
   
 Post subject: Mining
PostPosted: 2006-08-08 10:45:07 
Offline
User avatar

Joined: 2006-08-08 10:35:09
Posts: 4
sub main()
var x,y,where_x,where_y,waits, coords , resources_count, times_dig=0, ore='0x19b9',goldsand='0x0eed', fishstake='0x097b',pickaxe='0x0e85',hammerpick='0x
#wait(1000)
#until uo.hidden

143c', shovel='0x0f39', dagger='0x0f51',clay='0x1be9'
while uo.weight<60000
x=-2
while x<=2
y=-2
while y<=2
while not UO.Hidden()
UO.Warmode("0")
uo.print("no_t1m3@mail.ru (c)2006")
UO.UseSkill("Hiding")
wait(6000)
wend
where_x=uo.getx()
where_y=uo.gety()
resources_count=uo.count(ore)+uo.count(goldsand)+uo.count(clay)
coords="waittargettile "+"0 "+str(where_x+x)+" "+str(where_y+y)+" 0"
uo.exec(coords)
if uo.count(pickaxe)>0 then
uo.usetype(pickaxe)
else
if uo.count(hammerpick)>0 then
uo.usetype(hammerpick)
else
if uo.count(shovel)>0 then
uo.usetype(shovel)
else
while (uo.count(pickaxe)+ uo.count(shovel)+uo.count(hammerpick)<1)
uo.waittargettype(dagger)
uo.useskill('Arms Lore')
wait(10000)
wend
endif
endif
endif
###uo.print(coords); - for debug - prints calculated coordinates in command line
waits=0
repeat
wait(1000)
waits=waits+1
until resources_count<>(uo.count(ore)+uo.count(goldsand)+uo.count(clay)) or waits>6
if (uo.count(ore)+uo.count(goldsand)+uo.count(clay))==resources_count then
y=y+1
endif
times_dig=times_dig+1
if times_dig>20 then
if uo.count(fishstake)>0 then
uo.usetype(fishstake)
endif
times_dig=0
endif
wend
x=x+1
wend
wend
end sub

Vot tak mining nada delat sorry za latin!


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 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