Требуется помощь небольшая со скриптом
Posted: 2006-04-03 22:45:36
Имеется скрипт, писал сам, возвращение из шахты в дом, с ним 2 проблемы:1 не могу юзать детект хид, пишет что не знает такого скилла, 2 uo.press(**) очень не надежен, иногда просто делает все остальное, только не ходит, перезаходишь в инжу и все опять работает, все о чем идет речь в скрипте подчеркнуто:
sub GoHome()
uo.deletejournal()
VAR a, b
step1:
if uo.Mana < 11 then
uo.usetype('0x0F09')
wait(300)
endif
uo.waittargetobject('Home')
uo.cast('Recall')
wait(3000)
if uo.injournal('fizzles') then
wait(500)
uo.deletejournal('fizzles')
goto step1
endif
for a = 1 to 5
uo.press(33)
wait(300)
next
uo.UseSkill('Detecting Hidden')
wait(4000)
step2:
if uo.Mana < 20 then
uo.usetype('0x0F09')
wait(300)
endif
uo.cast('Reveal', 'self')
wait(4000)
if uo.injournal('fizzles') then
wait(500)
uo.deletejournal('fizzles')
goto step2
endif
uo.set('finddistance', '5')
uo.findtype('0x0190', '-1', '1')
if uo.findcount() > 1 then
return
endif
uo.useobject('Door')
wait(500)
uo.press(33)
uo.useobject('Door')
for b = 1 to 6
uo.press(33)
wait(300)
next
end sub
Зарание благодарю за помощь...
sub GoHome()
uo.deletejournal()
VAR a, b
step1:
if uo.Mana < 11 then
uo.usetype('0x0F09')
wait(300)
endif
uo.waittargetobject('Home')
uo.cast('Recall')
wait(3000)
if uo.injournal('fizzles') then
wait(500)
uo.deletejournal('fizzles')
goto step1
endif
for a = 1 to 5
uo.press(33)
wait(300)
next
uo.UseSkill('Detecting Hidden')
wait(4000)
step2:
if uo.Mana < 20 then
uo.usetype('0x0F09')
wait(300)
endif
uo.cast('Reveal', 'self')
wait(4000)
if uo.injournal('fizzles') then
wait(500)
uo.deletejournal('fizzles')
goto step2
endif
uo.set('finddistance', '5')
uo.findtype('0x0190', '-1', '1')
if uo.findcount() > 1 then
return
endif
uo.useobject('Door')
wait(500)
uo.press(33)
uo.useobject('Door')
for b = 1 to 6
uo.press(33)
wait(300)
next
end sub
Зарание благодарю за помощь...