Code: Select all
#*************************
#(C) Cooper
#Писал: Cooper
#Тестил: Cooper
#Идея написать: You Must Die
#*************************
sub veter()
var bint='0x0E21' #Тип бинта
var Gbint='0x0E20' #Тип грязного бинта
var taz='0x404019B0' #ID тазика
var LastTimer
uo.cancelmenu()
uo.AutoMenu('What do you want to polymorph', 'Daemon')
wait(1000)
repeat
UO.FindType(bint,"-1","my")
if UO.FindCount() > 0 then
if uo.mana < uo.int then
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.InJournal("You stop") or uo.Timer()>LastTimer+200
uo.DeleteJournal()
wend
repeat
uo.Cast('Polymorph')
wait(7000)
until not UO.InJournal('You spell')
else
repeat
uo.Cast('Polymorph')
wait(7000)
until not UO.InJournal('You spell')
end if
cheklag()
if UO.GetHP() < UO.GetMaxHP() then
repeat
UO.FindType(bint,"-1","my")
if UO.FindCount() > 0 then
cheklag()
uo.exec('bandageself')
Wait(4000)
else
UO.FindType(Gbint,"-1","my")
if UO.FindCount() > 0 then
cheklag()
uo.waittargetobject(taz)
uo.UseType(Gbint)
else
cheklag()
uo.print("Бинтов то нету...")
uo.exec("terminate veter")
endif
endif
until UO.GetHP() == UO.GetMaxHP()
else
wait(100)
endif
if uo.mana < uo.int / 2 then
while uo.mana < uo.int / 2
LastTimer=uo.Timer()
uo.UseSkill('Meditation')
repeat
wait(100)
until uo.InJournal("You are") or uo.InJournal("You lose") or uo.InJournal("You stop") or uo.Timer()>LastTimer+200
uo.DeleteJournal()
wend
else
repeat
UO.Cast('Dispel', 'self')
wait(4000)
until not UO.InJournal('You spell')
endif
else
UO.FindType(Gbint,"-1","my")
if UO.FindCount() then
cheklag()
uo.waittargetobject(taz)
uo.UseType(Gbint)
else
cheklag()
uo.print("Бинтов то нету...")
uo.exec("terminate veter")
endif
endif
until uo.dead()
end sub
Sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub