Yoko

All sides of Injection
It is currently 2025-11-05 17:25:38

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2008-07-08 15:03:00 
Offline

Joined: 2008-07-08 14:45:24
Posts: 7
Есть скрипт, не могу правильно зациклить. В скриптовании я нуп полный, этот скрипт написал еле-еле ) и вообще не понимаю в чём трабл. Если кто может - переделайте так чтобы рыбу он жарил постоянно, пока есть костёр, когда его не становится - чтобы он (падла така) новый делал ( это и есть основная проблема) и продолжал жарить

Code:
sub cook()
   Var fire  =  '0x0DE3'
   Var fish  =  '0x097A'
   Var sunduk = '0x400BC509'  # Âïèñàòü ID ñóíäóêà.
   Var hvorost = '0x0DE1'
   while not uo.dead()
   If UO.Count( fish ) < 1 Then
      UO.FindType( fish, '-1', sunduk )
      If UO.FindCount() > 0 Then
         UO.Moveitem( 'finditem', '100', 'backpack' )
      Else
         return
      Endif
   Else
      wait(50)
   Endif
   UO.FindType( fire, '-1', 'ground' )
   If UO.FindCount() > 0 Then
      While UO.FindCount() > 0 or UO.Count( fish ) < 1
         UO.WaitTargetObject( 'finditem' )
         UO.UseType( fish )
         wait(1000)
         While not UO.InJournal( 'Mmm|burn' )
         Wend
         UO.FindType( fire, '-1', 'ground' )
         wend
   Else
      UO.FindType( hvorost, '-1', sunduk )
      If UO.FindCount() > 0 Then
         UO.MoveItem('finditem','1','ground',UO.GetX()+1, UO.GetY()+1, UO.GetZ() )
         wait(200)
         UO.UseObject( 'finditem' )
      Else
         Return
      Endif
   Endif
   wend
endsub


Top
   
 Post subject:
PostPosted: 2008-07-08 15:11:26 
Offline
User avatar

Joined: 2006-03-23 19:25:23
Posts: 101
А на форже не легче?
Или ты ещё кемпинг качаешь?)

_________________
:O


Top
   
 Post subject:
PostPosted: 2008-07-08 15:17:14 
Offline

Joined: 2008-07-08 14:45:24
Posts: 7
сорри забыл сказать: играю на fwuo.ru, у нас к сожалению нельзя жарить на фордже.. и вообще ниначём кроме кемпфаера. Так-то я бы не мучался. Если можете помогите плз, а то 15к рыбы нежаренной лежит...


Top
   
 Post subject:
PostPosted: 2008-07-08 17:08:32 
Offline
User avatar

Joined: 2006-03-23 19:25:23
Posts: 101
А там же инжект запрещён... :shock:

_________________
:O


Top
   
PostPosted: 2008-07-08 17:50:59 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
[quote="Almasst"][/quote]
Скрипт, собственно говоря, это и делает. Всё как ты описал


Top
   
PostPosted: 2008-07-08 19:05:34 
Offline

Joined: 2008-07-08 14:45:24
Posts: 7
Scripts Writer wrote:
Almasst wrote:

Скрипт, собственно говоря, это и делает. Всё как ты описал


понимаешь ли, проблема в том, что на деле он этого не делает))) серьёзно, я даже друга проверить попросил... если можешь стукни 242-532(инвиз)


Top
   
 Post subject:
PostPosted: 2008-07-09 07:37:28 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Quote:
UO.Moveitem( 'finditem', '100', 'backpack' )
checklag()

Quote:
wait(1000)
uo.DeleteJournal()
While not UO.InJournal( 'Mmm|burn' )
wait( 100 )
Wend

Quote:
UO.MoveItem('finditem','1','ground',UO.GetX()+1, UO.GetY()+1, UO.GetZ() )
wait(200)
UO.UseObject( 'finditem' )
checklag()


А вообще согласен, в целом скрипт делает именно то, что нужно.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-07-09 08:29:58 
Offline

Joined: 2008-07-08 14:45:24
Posts: 7
Code:
wait(1000) 
[b]uo.DeleteJournal() [/b]
While not UO.InJournal( 'Mmm|burn' )
wait( 100 )
Wend


Там выше читай сплошные вайлы, он тогда перестанет жарить после первой.


А вообще я ничего не понимаю. Ну не работает у меня данный скрипт. Ума не приложу, уже всё перепробывал. Может ктонить помочь?


Top
   
 Post subject:
PostPosted: 2008-07-09 08:57:34 
Offline

Joined: 2008-07-08 14:45:24
Posts: 7
о да! Это свершилось))

Code:
sub cook()
   Var fire  =  '0x0DE3'
   Var fish  =  '0x097A'
   Var sunduk = '0x400BC509'  # Âïèñàòü ID ñóíäóêà.
   Var hvorost = '0x0DE1'
   while not uo.dead()
   If UO.Count( fish ) < 1 Then
      UO.FindType( fish, '-1', sunduk )
      If UO.FindCount() > 0 Then
         UO.Moveitem( 'finditem', '500', 'backpack' )
         Checklag()
      Else
         return
      Endif
   Else
      wait(50)
   Endif
   UO.FindType( fire, '-1', 'ground' )
   If UO.FindCount() > 0 Then
      While UO.FindCount() > 0 and UO.Count( fish ) > 0
         UO.WaitTargetObject( 'finditem' )
         UO.UseType( fish )
         wait(1000)
         While not uo.injournal( 'Mmm|burn|The previous' )
         wait(100)
         Wend
         UO.FindType( fire, '-1', 'ground' )
         wend
   Else
      UO.FindType( hvorost, '-1', sunduk )
      If UO.FindCount() > 0 Then
         UO.MoveItem('finditem','1','ground',UO.GetX()+1, UO.GetY()+1, UO.GetZ() )
         wait(200)
         UO.UseObject( 'finditem' )
         checklag()
      Else
         Return
      Endif
   Endif
   wend
endsub

sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')
repeat
wait(500)
until UO.InJournal('ackpack')
end sub


афигеть вот в этом походу была проблема
Code:
While UO.FindCount() > 0 or UO.Count( fish ) < 1 

Code:
While UO.FindCount() > 0 and UO.Count( fish ) > 0


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

All times are UTC+02:00


Who is online

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