Подскажите по скрипту плиз!
Posted: 2011-03-03 16:21:19
Доброго вечера всем!
Хочу сделать авто скрипты.
Раньше запускал каждый в отдельности, теперь хочу один и чтобы он включал все другие.
Основной
sub all()
WHILE not uo.Dead()
r()
t()
w()
q()
e()
WEND
end sub
sub r()
if uo.injournal("You are frozen") then
uo.attack ('laststatus')
uo.attack ('laststatus')
UO.Exec("waittargetself")
wait(100)
UO.Cast("Magic Arrow")
wait(1500)
uo.deletejournal()
endif
end sub
sub w()
if UO.mana<40 then
uo.deletejournal()
uo.msg(" .drink_mana_total")
wait(100)
end if
end sub
sub t()
if UO.life<150 then
uo.deletejournal()
UO.usetype("0x0F91")
wait(100)
UO.usetype("0x3F14")
UO.Exec("waittargetself")
wait(2000)
end if
end sub
(Тут можно если стамина меньше допустим 70ти на 10)
sub q()
uo.deletejournal()
if uo.injournal("You are too fatigued") then
uo.msg(" .drink_refresh_total")
uo.deletejournal()
endif
end sub
И самый сложный
sub e()
while NOT uo.injournal("feel normal")
uo.deletejournal()
if uo.injournal("You weak")
UO.Exec("cast 'Cure'self")
wait(1500)
uo.deletejournal()
endif
wend
end sub
Вроде работает, но с перебоями, с хилом всегда проблема. Иногда ману допустим пьет а из парала уже не воводит стрелку не кастует, да и такое чувствтво что висеть начинает зверски. Помоги плиз поправить. Спасибо заранее!
Хочу сделать авто скрипты.
Раньше запускал каждый в отдельности, теперь хочу один и чтобы он включал все другие.
Основной
sub all()
WHILE not uo.Dead()
r()
t()
w()
q()
e()
WEND
end sub
sub r()
if uo.injournal("You are frozen") then
uo.attack ('laststatus')
uo.attack ('laststatus')
UO.Exec("waittargetself")
wait(100)
UO.Cast("Magic Arrow")
wait(1500)
uo.deletejournal()
endif
end sub
sub w()
if UO.mana<40 then
uo.deletejournal()
uo.msg(" .drink_mana_total")
wait(100)
end if
end sub
sub t()
if UO.life<150 then
uo.deletejournal()
UO.usetype("0x0F91")
wait(100)
UO.usetype("0x3F14")
UO.Exec("waittargetself")
wait(2000)
end if
end sub
(Тут можно если стамина меньше допустим 70ти на 10)
sub q()
uo.deletejournal()
if uo.injournal("You are too fatigued") then
uo.msg(" .drink_refresh_total")
uo.deletejournal()
endif
end sub
И самый сложный
sub e()
while NOT uo.injournal("feel normal")
uo.deletejournal()
if uo.injournal("You weak")
UO.Exec("cast 'Cure'self")
wait(1500)
uo.deletejournal()
endif
wend
end sub
Вроде работает, но с перебоями, с хилом всегда проблема. Иногда ману допустим пьет а из парала уже не воводит стрелку не кастует, да и такое чувствтво что висеть начинает зверски. Помоги плиз поправить. Спасибо заранее!