Yoko

All sides of Injection
It is currently 2025-10-25 14:25:03

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2007-03-12 10:43:03 
Offline

Joined: 2007-03-12 10:21:48
Posts: 10
Ребят, решил написать свой скрипт на тинкеринг, ибо настало время учится писать самому :) но как вы уже поняли, получилосьно не до конца. Вот прошу ващей помоши.
Что должен был делать скрипт : берет из сундука 200 ингов, делает из них Геарсы, выкладывает герсы, и по кругу.
Проблема : Бывает слитает на середине. Но самая большая трабла, это то что когда заканчивается инги в паке, скрипт тупо вылетает. Геарсы тоже не выкладывает.

sub Tinker()

VAR Ingnots='xxxxx'
VAR Sunduk='xxxxxxxxxx'
VAR tools='xxxxxxxx'
VAR Gears='xxxxxxx'
VAR Ammount=200

While NOT UO.Dead()
UO.UnSetReceivingContainer(Sunduk)
UO.FindType(Ingnots,'0x0000',Sunduk)
UO.Grab(STR(Ammount),'finditem')
wait(1000)
Checklag()
repeat
UO.FindType(Ingnots,'0x0000','backpack')
UO.CancelMenu()
UO.AutoMenu('Tinkering','Parts')
UO.AutoMenu('Parts','gears')
wait(4000)
UO.Usetype(tools)
wait(1000)
Until UO.count(Ingnots)<2
Next
UO.SetReceivingContainer(Sunduk)
UO.FindType(Gears,'0x0000','backpack')
UO.Grab('all','finditem')
wait(1000)
UO.UnSetReceivingContainer(Sunduk)
Wend
end sub

Зарание спасибо.


Top
   
 Post subject:
PostPosted: 2007-03-12 12:11:21 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
пока скрипт небудет в коде иго некто небудет читать :roll:

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


Top
   
 Post subject:
PostPosted: 2007-03-12 13:09:23 
Offline

Joined: 2007-03-12 10:21:48
Posts: 10
Если подскажете, как его выложить в коде, выложу!


Top
   
 Post subject:
PostPosted: 2007-03-12 13:10:35 
Offline
User avatar

Joined: 2006-04-02 11:33:38
Posts: 91
короче когда пишеш сообзение сверху есть мишюша Code выдели что хочеш заключить в код и нажми на код!


Top
   
 Post subject:
PostPosted: 2007-03-12 13:31:15 
Offline

Joined: 2007-03-12 10:21:48
Posts: 10
Разобрался :) Прошу :)

Code:
sub Tinker()

VAR Ingnots='xxxxx'
VAR Sunduk='xxxxxxxx'
VAR tools='xxxxxx'
VAR Gears='xxxxx'
VAR Ammount=200

   While NOT UO.Dead()
      UO.UnSetReceivingContainer(Sunduk)
      UO.FindType(Ingnots,'0x0000',Sunduk)
      UO.Grab(STR(Ammount),'finditem')
         wait(1000)
   Checklag()
   repeat
      UO.FindType(Ingnots,'0x0000','backpack')
      UO.CancelMenu()
      UO.AutoMenu('Tinkering','Parts')
      UO.AutoMenu('Parts','gears')
         wait(4000)
      UO.Usetype(tools)
         wait(1000)
      Until UO.count(Ingnots)<2
   Next
      UO.SetReceivingContainer(Sunduk)
      UO.FindType(Gears,'0x0000','backpack')
      UO.Grab('all','finditem')
         wait(1000)
      UO.UnSetReceivingContainer(Sunduk)
   Wend
end sub


Top
   
 Post subject:
PostPosted: 2007-03-12 16:03:25 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
try this
viewtopic.php?t=11582


Top
   
 Post subject:
PostPosted: 2007-03-12 16:05:13 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
sub Tinker()

VAR Ingots='xxxxx'
VAR Sunduk='xxxxxxxx'
VAR tools='xxxxxx'
VAR Gears='xxxxx'
VAR Ammount='200'

   While NOT UO.Dead()
   
   If uo.Count( Ingots ) < 10 then
      UO.FindType(Ingnots,'0x0000',Sunduk)
      if uo.FindCount() then
      uo.moveitem('finditem',Ammount,'backpack')
        else
            return
        endif
       
   Checklag()
   repeat
        UO.CancelMenu()
            UO.AutoMenu('Tinkering','Parts')
            UO.AutoMenu('Parts','gears')
            UO.Usetype(tools)
         wait(5000)
   Until UO.count(Ingots)<2
     
      UO.FindType(Gears,'0x0000','backpack')
      if uo.FindCount() then
        uo.moveitem('finditem', -1 ,Sunduk)
        wait(1000)
      endif
     
   Wend
end sub


хрен знает что получилось

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


Top
   
 Post subject:
PostPosted: 2007-03-22 22:44:45 
Offline

Joined: 2007-03-12 10:21:48
Posts: 10
тоесть?


Top
   
 Post subject:
PostPosted: 2007-03-24 08:23:35 
Offline
User avatar

Joined: 2007-03-24 08:12:51
Posts: 188
:)
viewtopic.php?t=5539&highlight=necklace
не в кассу :)


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