sub Magery()
var LastTimer
while not uo.Dead()
uo.DeleteJournal()
CheckLag()
while uo.Mana>=10
uo.Cast('Poison','self')
wait(4000)
wend
while uo.Mana<uo.INT
LastTimer=uo.Timer()
uo.UseSkill('Meditation')
repeat
wait(100)
until uo.InJournal("You are") or uo.InJournal("You lose") or uo.Timer()>LastTimer+200
uo.DeleteJournal()
wait(3000)
wend
wend
end sub
sub CheckLag()
uo.DeleteJournal()
uo.Click('backpack')
repeat
wait(500)
until uo.InJournal('backpack')
end sub
mozno li poprositj dobavitj chtobi on oral Guards kak toka ego udarjat
sub AutoGuards() var hits repeat hits = uo.hits repeat wait(500) until uo.hits<hits uo.msg('Guards держи эту сволочь!') until uo.dead() endsub
Ой, я уже все забыл Как-то так вобщем
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
sub AutoGuards() var hits repeat hits = uo.hits repeat wait(500) until uo.hits<hits uo.msg('Guards держи эту сволочь!') wait(1000) until uo.dead() endsub
sub AutoGuards() var hits repeat hits = uo.hits repeat wait(500) until uo.hits<hits uo.msg('Guards держи эту сволочь!') wait(1000) until uo.dead() endsub
Это еще зачем? Мой скрипт должен орать по разу на каждое понижение жизни. Вот кстате проапил:
sub AutoGuards() var hits repeat hits = uo.hits repeat wait(500) if uo.hits>hits then hits = uo.hits endif until uo.hits<hits uo.msg('Guards держи эту сволочь!') until uo.dead() endsub
Типа тут надежнее.
И вообще, учись читать скрипты
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
AlexTech wrote:У меня вот так сделано. Вызываю в каждом удобном месте основного скрипта.
sub CheckAttack() if UO.InJournal( 'attacking you' ) then UO.Say( 'guards' ) Gong() ;звоночек UO.DeleteJournal() UO.Exec( 'warmode 0' ) end if end sub
Ага, а еще перебери все названия спелов, которыми мона убить
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Destruction wrote:Ага, а еще перебери все названия спелов, которыми мона убить
Не тупи Любой атакующий спелл вызывает появление в журнале "attacking you"
Эмм, нет.
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
AlexTech wrote:У меня вот так сделано. Вызываю в каждом удобном месте основного скрипта.
sub CheckAttack() if UO.InJournal( 'attacking you' ) then UO.Say( 'guards' ) Gong() ;звоночек UO.DeleteJournal() UO.Exec( 'warmode 0' ) end if end sub
А если журнал очистится до этого вызова? ИМХО, это лучше: if UO.Life<UO.STR then .....
Не, мой вариант лучше (зацикленность ток убрать), прикинь, если ты магию на маджик аррове качаешь?..
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Думал, думал, думал, понял почему мой вариант лучше (сорьки что старье подымаю - случайно яндексом наткнулся), вобщем прикинь такая ситуация:
Тебя заатачили - твой скрипт крикнул гвардов, а тот, кто атачил - внегз, гвард побесился и ушел, тот спокойно заходит в гз и без всяких сообщений об атаке тебя убивает.
Исключение - если ты регулярно хайдишся, тада придется атачить, кажись.