Yoko

All sides of Injection
It is currently 2024-04-18 21:16:06

All times are UTC+02:00




Post new topic  Reply to topic  [ 59 posts ]  Go to page Previous 1 2 3
Author Message
 Post subject: Re: перелив
PostPosted: 2014-02-19 13:45:30 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Обьясни что в этом куске скрипт делает, все по очереди что ищет и тд. Ничего не пропусти)
Code:
poison:
If uo.Poisoned() then
heal()
else
UO.FindType('0x0F3F','0x0000','0x60BEA14D')
uo.poison('finditem')
wait(8000)
end if
UO.FindType('0x0F3F','0x0044','0x60BEA14D')
if UO.Count('0x0F3F')<1 then
goto poison
wait(4000)
else
wait(100)
UO.FindType('0x0F3F','0x0044','0x60BEA14D')
UO.MoveItem('finditem', '1' , '0x60D90F4C')
wait (2000)
goto kladem
end if
end sub
sub heal()
if uo.Poisoned() then
uo.waittargetself()
uo.usefromground('0x0E21')
wait(5000)
else
goto poison
end if

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 13:54:32 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Попробуй.
Code:
var sunduk ='0x60D90F4C', strela ='0x0F3F', bekpak ='0x60BEA14D', bottle, keg
sub test()
   repeat
      kladem:
      UO.FindType('0x0F3F','0x0000','0x60BEA14D')
      wait(100)
      if not uo.findcount('0x0F3F') then
         UO.FindType('0x0F3F','0x0000','0x60D90F4C')
         UO.MoveItem('finditem', '1' , '0x60BEA14D')
         wait(2000)
      end if
      uo.findtype("0x0F0A", -1, "backpack")
      wait(100)
      if not uo.findcount() then
         wait(100)
         uo.findtype("0x0F0E", -1, "backpack")
         wait(100)
         bottle = uo.getserial("finditem")
         repeat
            uo.deletejournal()
            uo.findtype("0x1940", -1, "0x60D9A553")
            if uo.findcount() then
               keg = uo.getserial("finditem")
               uo.click("finditem")
               wait(100)
               if not uo.injournal("keg of poison potions") then
                  uo.ignore("finditem")
                  wait(3000)
               end if
            end if
         until uo.injournal("keg of poison potions")
         wait(1000)
         uo.moveitem(bottle, 1, keg)
         wait(3000)
      end if
      poison:
      If uo.Poisoned() then
         uo.waittargetself()
         uo.usefromground('0x0E21')
         wait(5000)
      end if
      UO.FindType('0x0F3F','0x0000','0x60BEA14D')
      uo.poison('finditem')
      wait(8000)
      UO.FindType('0x0F3F','0x0044','0x60BEA14D')
      if not uo.findcount() then
         wait(100)
         goto poison
      else
         wait(100)
         UO.FindType('0x0F3F','0x0044','0x60BEA14D')
         UO.MoveItem('finditem', '1' , '0x60D90F4C')
         wait (2000)
      end if
   until uo.dead()
end sub

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 13:57:47 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
Обьясни что в этом куске скрипт делает, все по очереди что ищет и тд. Ничего не пропусти)
Code:
poison:
If uo.Poisoned() then если отравлен
heal() идем в саб лечение
else иначе
UO.FindType('0x0F3F','0x0000','0x60BEA14D') ищем обычную стрелу
uo.poison('finditem') пойзоним обычную стрелу
wait(8000)
end if
UO.FindType('0x0F3F','0x0044','0x60BEA14D') ищет зеленую стрелу
if UO.Count('0x0F3F')<1 then если нет
goto poison то возращаемся и пойзоним еще раз
wait(4000)
else иначе
wait(100)
UO.FindType('0x0F3F','0x0044','0x60BEA14D') ищем зеленую
UO.MoveItem('finditem', '1' , '0x60D90F4C') кидаем ее в бекпак
wait (2000)
goto kladem идем в кладем
end if
end sub
sub heal()
if uo.Poisoned() then если в пойзоне
uo.waittargetself() юзаем на себя бинты
uo.usefromground('0x0E21') которые на полу
wait(5000)
else
goto poison
end if

все описал?


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:00:10 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Да, сейчас еще исправлю в том что писал выше вот этот кусок
Code:
UO.FindType('0x0F3F','0x0044','0x60BEA14D') ищет зеленую стрелу
if UO.Count('0x0F3F')<1 then если нет
goto poison то возращаемся и пойзоним еще раз
wait(4000)
else иначе
wait(100)
UO.FindType('0x0F3F','0x0044','0x60BEA14D') ищем зеленую

Если нашел то он снова ее ищет, зачем?) сейчас поправлю

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:01:17 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
По идее так.
Code:
var sunduk ='0x60D90F4C', strela ='0x0F3F', bekpak ='0x60BEA14D', bottle, keg
sub test()
   repeat
      kladem:
      UO.FindType('0x0F3F','0x0000','0x60BEA14D')
      wait(100)
      if not uo.findcount('0x0F3F') then
         UO.FindType('0x0F3F','0x0000','0x60D90F4C')
         UO.MoveItem('finditem', '1' , '0x60BEA14D')
         wait(2000)
      end if
      uo.findtype("0x0F0A", -1, "backpack")
      wait(100)
      if not uo.findcount() then
         wait(100)
         uo.findtype("0x0F0E", -1, "backpack")
         wait(100)
         bottle = uo.getserial("finditem")
         repeat
            uo.deletejournal()
            uo.findtype("0x1940", -1, "0x60D9A553")
            if uo.findcount() then
               keg = uo.getserial("finditem")
               uo.click("finditem")
               wait(100)
               if not uo.injournal("keg of poison potions") then
                  uo.ignore("finditem")
                  wait(3000)
               end if
            end if
         until uo.injournal("keg of poison potions")
         wait(1000)
         uo.moveitem(bottle, 1, keg)
         wait(3000)
      end if
      poison:
      If uo.Poisoned() then
         uo.waittargetself()
         uo.usefromground('0x0E21')
         wait(5000)
      end if
      UO.FindType('0x0F3F','0x0000','0x60BEA14D')
      uo.poison('finditem')
      wait(8000)
      UO.FindType('0x0F3F','0x0044','0x60BEA14D')
      if not uo.findcount() then
         wait(100)
         goto poison
      else
         UO.MoveItem('finditem', '1' , '0x60D90F4C')
         wait (2000)
      end if
   until uo.dead()
end sub

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:07:14 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
UO.FindType('0x0F3F','0x0044','0x60BEA14D')
if not uo.findcount() then
wait(100)
goto poison

сменил на goto sliv и слив сверху добавил пока работает ждем )


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:08:45 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Это ненужно делать, бери тот что я дал.

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:25:58 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
Это ненужно делать, бери тот что я дал.

но если товой то при неуданом отравлении яд тратиться а стрела не меняется и пишет нет яда в сумке. может по 3 бутылки к примеру сливать?


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:30:45 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Я же всего этого не знаю) Тогда проще вообще делать так, набрал банку, травишь стрелу, отравил не отравил снова набираешь и травишь. Щас сделаю. И заметь это не я сделал чтобы он возвращался снова туда.

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:32:01 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Code:
var sunduk ='0x60D90F4C', strela ='0x0F3F', bekpak ='0x60BEA14D', bottle, keg
sub test()
   repeat
      UO.FindType('0x0F3F','0x0000','0x60BEA14D')
      wait(100)
      if not uo.findcount('0x0F3F') then
         UO.FindType('0x0F3F','0x0000','0x60D90F4C')
         UO.MoveItem('finditem', '1' , '0x60BEA14D')
         wait(2000)
      end if
      uo.findtype("0x0F0A", -1, "backpack")
      wait(100)
      if not uo.findcount() then
         wait(100)
         uo.findtype("0x0F0E", -1, "backpack")
         wait(100)
         bottle = uo.getserial("finditem")
         repeat
            uo.deletejournal()
            uo.findtype("0x1940", -1, "0x60D9A553")
            if uo.findcount() then
               keg = uo.getserial("finditem")
               uo.click("finditem")
               wait(100)
               if not uo.injournal("keg of poison potions") then
                  uo.ignore("finditem")
                  wait(3000)
               end if
            end if
         until uo.injournal("keg of poison potions")
         wait(1000)
         uo.moveitem(bottle, 1, keg)
         wait(3000)
      end if
      If uo.Poisoned() then
         uo.waittargetself()
         uo.usefromground('0x0E21')
         wait(5000)
      end if
      UO.FindType('0x0F3F','0x0000','0x60BEA14D')
      uo.poison('finditem')
      wait(8000)
      UO.FindType('0x0F3F','0x0044','0x60BEA14D')
      if uo.findcount() then
         UO.MoveItem('finditem', 0, '0x60D90F4C')
         wait (2000)
         else
         wait(100)
      end if
   until uo.dead()
end sub

_________________
CodeSweeper


Last edited by Incorrect User on 2014-02-19 14:45:13, edited 1 time in total.

Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:36:20 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
один раз физл, просто стоит
исправил . вроде :mrgreen:


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 14:45:57 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
По мелочи еще подправил, а стоять не должно.

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 15:03:40 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
По мелочи еще подправил, а стоять не должно.

на физле залипает если нажать на кег самому то сливает и продолжается все

точнее просто через какое то время перестает кликать вообще

если сам жму все делает


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 15:07:26 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
На что кликать?

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 15:13:06 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
На что кликать?

не кликает по кегам если я кликаю то сливает

кликнул снова выдал на эту строку

uo.moveitem(bottle, 1, keg)

runtime error


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 15:24:27 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
А, кликать ты имеешь ввиду чтобы появилось имя?

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 15:28:19 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
А, кликать ты имеешь ввиду чтобы появилось имя?

да


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 15:39:42 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Еще немного пересмотрел
Code:
sub test()
   var sunduk ='0x60D90F4C', strela ='0x0F3F', bottle, keg
   repeat
      UO.FindType(strela, -1,'backpack')
      if not uo.findcount(strela) then
         UO.FindType(strela, '0x0000', sunduk)
         UO.MoveItem('finditem', 1, 'backpack')
         wait(2000)
      else
         wait(100)
      end if
      uo.findtype("0x0F0A", -1, "backpack")
      if not uo.findcount() then
         wait(100)
         uo.findtype("0x0F0E", -1, "backpack")
         wait(100)
         bottle = uo.getserial("finditem")
         repeat
            uo.deletejournal()
            uo.findtype("0x1940", -1, "0x60D9A553")
            if uo.findcount() then
               keg = uo.getserial("finditem")
               uo.click("finditem")
               wait(500)
               if not uo.injournal("keg of poison potions") then
                  uo.ignore("finditem")
                  wait(3000)
               end if
            else
               uo.print("Íå íàøåë êåã!")
               return
            end if
         until uo.injournal("keg of poison potions")
         wait(1000)
         uo.moveitem(bottle, 1, keg)
         wait(3000)
      else
         wait(100)
      end if
      If uo.Poisoned() then
         uo.waittargetself()
         uo.usefromground('0x0E21')
         wait(5000)
      end if
      UO.FindType(strela, '0x0000', 'backpack')
      uo.poison('finditem')
      wait(8000)
      UO.FindType(strela, '0x0044', 'backpack')
      if uo.findcount() then
         UO.MoveItem('finditem', 0, '0x60D90F4C')
         wait (2000)
      else
         wait(100)
      end if
   until uo.dead()
end sub

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 17:12:21 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
все работает. не знаю как и благодарить :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 59 posts ]  Go to page Previous 1 2 3

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