Yoko

All sides of Injection
It is currently 2025-10-15 09:49:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2010-04-20 05:32:13 
Offline

Joined: 2010-04-15 13:04:50
Posts: 26
Скажите, почему данный скрипт хотя и выполняет все функции (крафтит axle), отличается очень высокой нестабильностью, вылетает каждые 5мин, а иногда, еще и и клиент рушит с критами. Объяснять, выводить теоремы и проч. мне не надо, т.к. скрипт не мой, а я в скриптодельстве ниче не понимаю, просто перепишите (если возможно) его так, чтоб он работал. Заранее благодарен.

Code:
sub main()
  var timeout=0
  UO.deletejournal()
  while UO.SkillVal("Tinkering",1) < 100000
  UO.WaitMenu ("Tinkering", "Parts", "Parts", "axle")
  UO.usetype("0x1EBC")
  repeat
    timeout=timeout+500
    wait(500)
  until UO.injournal("You put") OR (timeout>10000)
  timeout=0
  if UO.injournal("You put") then
    UO.waittargettype("0x1053")
        wait(1500)
  endif
  UO.deletejournal()
  wend


Top
   
PostPosted: 2010-04-20 11:43:53 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
Кроме того что в конце скрипта нету endsub не вижу никаких проблем. Попробуй поменять инжу на более новую версию.


Top
   
PostPosted: 2010-04-20 15:42:48 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
sub main()
   var msg = "put|fail"
   uo.cancelmenu()
   uo.automenu('Tinkering', 'Parts')
   uo.automenu('Parts','axle')
   while uo.skillval('Tinkering','1') < 10000
      uo.deletejournal()
      uo.usetype('0x1EBC')
      repeat
         wait(100)
      until uo.injournal(msg)
   wend
endsub

А так не лучше?..

Я кусочек вашего скрипта не совсем понял, поэтому его просто вырезал.

_________________
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
   
PostPosted: 2010-04-20 20:38:02 
Offline

Joined: 2010-04-15 13:04:50
Posts: 26
Спс, будем проверять =)


Top
   
PostPosted: 2010-04-20 21:16:46 
Offline

Joined: 2010-04-15 13:04:50
Posts: 26
Этот скрипт в отличие от предыдущего прекрасно работает.


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 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:  
Powered by phpBB® Forum Software © phpBB Limited