Yoko

All sides of Injection
It is currently 2024-03-28 19:46:56

All times are UTC+02:00




Post new topic  Reply to topic  [ 59 posts ]  Go to page Previous 1 2 3 Next
Author Message
 Post subject: Re: перелив
PostPosted: 2014-02-18 17:44:36 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Кто куда тычет, излагай более подробно.

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-18 18:17:10 
Offline

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
Кто куда тычет, излагай более подробно.

в один и тот же пустой кег. дальше не ищет


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-18 18:35:49 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Да, нехватало not. поправил пост со скриптом.

_________________
CodeSweeper


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-18 18:43:05 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Еще раз поправил, добавил чтобы скрипт выключался если все кеги будут пустыми.

_________________
CodeSweeper


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

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
Еще раз поправил, добавил чтобы скрипт выключался если все кеги будут пустыми.

Спасибо большое! :D


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

Joined: 2014-02-18 14:29:29
Posts: 35
еще один трабл. падает клиент от запросов видимо....


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

Joined: 2014-02-18 14:29:29
Posts: 35
VAR sunduk ='0x60D90F4C' #îòêóäà áåðåì è êóäà êëàäåì ñòðåëû
VAR strela ='0x0F3F' #îáû÷íàÿ ñòðåëà
VAR bekpak ='0x60BEA14D' #ìîé áåêïàê
var bottle
var keg
sub test()
wait(1000)
kladem:
UO.FindType('0x0F3F','0x0000','0x60BEA14D')
If UO.Count('0x0F3F')<1 then
UO.FindType('0x0F3F','0x0000','0x60D90F4C')
UO.MoveItem('finditem', '1' , '0x60BEA14D')
wait(2000)
Else
goto pereliv
end if
pereliv:
uo.findtype("0x0F0A", -1, "backpack")
if not uo.findcount() then
wait(100)
uo.findtype("0x0F0E", -1, "backpack")
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(10000)
end if
end if
until uo.injournal("keg of poison potions")
uo.moveitem(bottle, 1, keg)
wait(2000)
end if
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
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
end sub

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


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

Joined: 2011-05-23 00:33:30
Posts: 949
Наставил вейтов, попробуй.

Code:
var sunduk ='0x60D90F4C', strela ='0x0F3F', bekpak ='0x60BEA14D', bottle, keg
sub test()
   wait(1000)
   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)
   Else
      goto pereliv
   end if
   pereliv:
   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(10000)
            end if
         end if
      until uo.injournal("keg of poison potions")
      uo.moveitem(bottle, 1, keg)
      wait(2000)
   end if
   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
end sub

_________________
CodeSweeper


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

Joined: 2014-02-18 14:29:29
Posts: 35
вылетел


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 11:33:09 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Парсер? или вообще ничего не пишет? Инжект какой?

_________________
CodeSweeper


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

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
Парсер? или вообще ничего не пишет? Инжект какой?

поставил задержку между тыканьем и сливом пока стоит.
вылетает окно что надо закрыть все жмешь нет ничего жмешь да все закрывается
версия 1311.27 horlan


Top
   
 Post subject: Re: перелив
PostPosted: 2014-02-19 11:55:41 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Это уже старая, качай эту viewtopic.php?f=1&t=17391

_________________
CodeSweeper


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

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
Это уже старая, качай эту viewtopic.php?f=1&t=17391

в новой версии пишет poison not defined in object types
добавил пойзон в обжект тайпс теперь пишет
select a poison potion
isnt poison potion


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

Joined: 2011-05-23 00:33:30
Posts: 949
На какой строке останавливается

_________________
CodeSweeper


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

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
На какой строке останавливается

галку не поставил bottle them object :lol:
в обжекте подправил тип пустой бутылки. пока работает смотрим


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

Joined: 2014-02-18 14:29:29
Posts: 35
на этот раз ничего не вылетело но написал
line 37 runtime error


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

Joined: 2011-05-23 00:33:30
Posts: 949
А на line 37 у тебя какая строчка?

_________________
CodeSweeper


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

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
А на line 37 у тебя какая строчка?

until uo.injournal("keg of poison potions")
wait(1000)
uo.moveitem(bottle, 1, keg)
wait(3000)


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

Joined: 2011-05-23 00:33:30
Posts: 949
Ну это инжект падает, походу из за своих проблем, не тянет. Полсностью весь скрипт выложи как есть, я попробую переделать чтобы без меток и т.д

_________________
CodeSweeper


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

Joined: 2014-02-18 14:29:29
Posts: 35
Incorrect User wrote:
Ну это инжект падает, походу из за своих проблем, не тянет. Полсностью весь скрипт выложи как есть, я попробую переделать чтобы без меток и т.д

var sunduk ='0x60D90F4C', strela ='0x0F3F', bekpak ='0x60BEA14D', bottle, keg
sub test()
wait(1000)
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)
Else
goto pereliv
end if
pereliv:
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
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
end sub


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

All times are UTC+02:00


Who is online

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