Yoko

All sides of Injection
It is currently 2024-03-28 13:05:08

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Алхимия
PostPosted: 2016-07-01 18:55:38 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
народ вот скрипт - делает пойзоны, но у меня почему то делает лессер пойзоны, хотя должен делать просто пойзоны (скилл появоляет).
Code:
sub Alchemy()
   VAR Exit=0, LastTimer
   uo.print('Сундук с регами и бутылками')
   uo.exec('addobject Bag')
   while uo.targeting()
      wait(100)
   wend
   uo.print('Сундук куда бутылки бросать')
   uo.exec('addobject Bag2')
   while uo.targeting()
      wait(100)
   wend
   while Exit<>1
      UO.DeleteJournal()
      UO.FindType('0x0F0E','0x0998','backpack')
      If UO.GetQuantity('finditem')>0 Then
         UO.SetReceivingContainer('Bag2')
         wait(1000)
         UO.Grab('all','finditem')
         wait(1000)
         UO.UnSetReceivingContainer()
      Endif
      UO.FindType('0x0F0E',-1,'backpack')
      If UO.GetQuantity('finditem')<10 then
         UO.FindType('0x0F0E','0x0000','Bag')
         wait(1000)
         UO.Grab('500','finditem')
         wait(1000)
      Endif
      UO.FindType('0x0F88','0x0000','backpack')
      If UO.GetQuantity('finditem')<20 then
         UO.FindType('0x0F88','0x0000','Bag')
         wait(1000)
         UO.Grab('400','finditem')
         wait(1000)
      Endif
      LastTimer=UO.Timer()
      UO.DeleteJournal()
      UO.UseType('0x0F88')
      UO.WaitMenu('What','Poison')       
      while NOT UO.InJournal("You put") AND NOT UO.InJournal("You toss the failed")
         wait(500)
      wend
      If UO.InJournal("You toss the failed") then
         repeat
            wait(100)
         until UO.Timer()>=LastTimer+100
      Else
      EndIf
   wend   
end sub


Top
   
 Post subject: Re: Алхимия
PostPosted: 2016-07-01 21:00:51 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
UO.WaitMenu('What','Poison')
с ядом всегда так, и лезер и дедли :) Они все яды = Poison
Меняй строку на

UO.WaitMenu('What','(2)')

Меню можно выбирать по цифиркам позиции. Минус в том что универсальность слишком большая - это будет заметно у жестянщика например.

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


Top
   
 Post subject: Re: Алхимия
PostPosted: 2016-07-03 00:19:51 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
Миражик спасибо!


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

All times are UTC+02:00


Who is online

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