перелив
Moderators: Murderator+, Murderator
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Incorrect User wrote:Кто куда тычет, излагай более подробно.
в один и тот же пустой кег. дальше не ищет
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Еще раз поправил, добавил чтобы скрипт выключался если все кеги будут пустыми.
Re: перелив
Incorrect User wrote:Еще раз поправил, добавил чтобы скрипт выключался если все кеги будут пустыми.
Спасибо большое!

Re: перелив
еще один трабл. падает клиент от запросов видимо....
Re: перелив
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
вот скрипт целиком
кладем это он ищет стрелу обычную если назодит то дальше если нет то берет из сумки на полу
потом льет яд
потом пойзонит
потом убирает запозоненую стрелу в бекпак на полу
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
вот скрипт целиком
кладем это он ищет стрелу обычную если назодит то дальше если нет то берет из сумки на полу
потом льет яд
потом пойзонит
потом убирает запозоненую стрелу в бекпак на полу
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Наставил вейтов, попробуй.
Code: Select all
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
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Incorrect User wrote:Парсер? или вообще ничего не пишет? Инжект какой?
поставил задержку между тыканьем и сливом пока стоит.
вылетает окно что надо закрыть все жмешь нет ничего жмешь да все закрывается
версия 1311.27 horlan
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Incorrect User wrote:Это уже старая, качай эту viewtopic.php?f=1&t=17391
в новой версии пишет poison not defined in object types
добавил пойзон в обжект тайпс теперь пишет
select a poison potion
isnt poison potion
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Incorrect User wrote:На какой строке останавливается
галку не поставил bottle them object

в обжекте подправил тип пустой бутылки. пока работает смотрим
Re: перелив
на этот раз ничего не вылетело но написал
line 37 runtime error
line 37 runtime error
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Incorrect User wrote:А на line 37 у тебя какая строчка?
until uo.injournal("keg of poison potions")
wait(1000)
uo.moveitem(bottle, 1, keg)
wait(3000)
-
- Posts: 949
- Joined: 2011-05-23 00:33:30
Re: перелив
Ну это инжект падает, походу из за своих проблем, не тянет. Полсностью весь скрипт выложи как есть, я попробую переделать чтобы без меток и т.д
Re: перелив
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