Yoko

All sides of Injection
It is currently 2025-11-06 19:00:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2010-01-11 14:00:06 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
Sub mine()

var x, y, i, t, tmp, inside, goto_x, st, first

VAR ms1 = "There is nothing here to mine for"

VAR ms2 = "You can't use"

VAR ms3 = "You put "

VAR ms4 = "You loosen some rocks"

VAR ms5 = "location"

VAR ms6 = "Try mining"

VAR ms7 = "You can't see that"

VAR ms8 = "You stop"

VAR ms9 = "That is too"

first=UO.GetX()

start:

inside=0

for y=-1 to 1

for x=-1 to 1

repeat

uo.deletejournal()

t = UO.Timer()

UO.Exec ("waittargettile "+" 1340 "+STR(UO.GEtX()+x)+" "+STR(UO.GetY()+y)+" 0")

UO.exec ("usetype 0x0E85")

repeat

wait(300)

until UO.InJournal(ms1) OR UO.InJournal(ms2) OR UO.InJournal(ms3) OR UO.InJournal(ms4) OR UO.InJournal(ms5) OR UO.InJournal(ms6) OR UO.InJournal(ms7) OR UO.InJournal(ms9) OR ((t + 100) < UO.Timer())

until not UO.InJournal(ms8)

next

next

end sub


sub main()

var i

While UO.Life>0

for i=1 to 7

mine()

uo.press(34)

wait(500)

uo.press(34)

wait(500)

uo.press(34)

next

uo.press(33)

wait(500)

uo.press(33)

wait(500)

uo.press(33)

mine()

for i=1 to 7

uo.press(36)

wait(500)

uo.press(36)

wait(500)

uo.press(36)

next

uo.press(33)

wait(500)

uo.press(33)

wait(500)

uo.press(33)

wend

end sub


Top
   
 Post subject:
PostPosted: 2010-01-11 14:01:45 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
Через некотрое время слетает. Замучался уже.


Top
   
 Post subject:
PostPosted: 2010-01-11 20:44:05 
Offline
User avatar

Joined: 2007-11-01 19:09:30
Posts: 287
Location: Moscow
http://coop.myftp.org/utils/codesweeper.htm

_________________
**Выставляем отступы в скриптах*** ©Destruction
Feel the Power of Dark Side


Top
   
 Post subject:
PostPosted: 2010-01-11 21:36:09 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
Расставил пробелы всё равно слетает :(


Top
   
 Post subject:
PostPosted: 2010-01-12 15:09:06 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Что значит слетает?


Top
   
 Post subject:
PostPosted: 2010-01-12 16:52:51 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Скрипт афигительный. Скопировал себе на память структуру... :lol:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject:
PostPosted: 2010-01-13 11:09:12 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
Дык почему он слетает?


Top
   
 Post subject:
PostPosted: 2010-01-13 11:16:19 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
слетает = выключается после нескольких минут работы.


Top
   
 Post subject:
PostPosted: 2010-01-13 12:50:19 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Code:
Sub mine()
   var x, y, i, t, tmp, inside, goto_x, st, first
   VAR ms1 = "There is nothing here to mine for"
   VAR ms2 = "You can't use"
   VAR ms3 = "You put "
   VAR ms4 = "You loosen some rocks"
   VAR ms5 = "location"
   VAR ms6 = "Try mining"
   VAR ms7 = "You can't see that"
   VAR ms8 = "You stop"
   VAR ms9 = "That is too"

   for y=-1 to 1
      for x=-1 to 1
         repeat
            uo.deletejournal()
            t = UO.Timer()
            UO.Exec ("waittargettile "+" 1340 "+STR(UO.GEtX()+x)+" "+STR(UO.GetY()+y)+" 0")
            UO.exec ("usetype 0x0E85")
            repeat
               wait(300)
            until UO.InJournal(ms1) OR UO.InJournal(ms2) OR UO.InJournal(ms3) OR UO.InJournal(ms4) OR UO.InJournal(ms5) OR UO.InJournal(ms6) OR UO.InJournal(ms7) OR UO.InJournal(ms9) OR ((t + 100) < UO.Timer())
         until not UO.InJournal(ms8)
      next
   next
end sub


sub main()
   var i
   While UO.Life>0
      for i=1 to 7
         mine()
         uo.press(34)
         wait(500)
         uo.press(34)
         wait(500)
         uo.press(34)
      next

      for i=1 to 7
      mine()
         uo.press(36)
         wait(500)
         uo.press(36)
         wait(500)
         uo.press(36)
      next
   wend
end sub

тесть :D

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject:
PostPosted: 2010-01-20 07:17:11 
Offline

Joined: 2009-06-01 10:02:57
Posts: 64
Работает. Спасибо тебе. :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 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