Drakonid wrote:
Code:
sub i()
var Vortex
var char='0x003F199D';ID чара на которого каст
UO.Set("finddistance","7")
While not uo.Dead()
uo.DeleteJournal()
UO.setarm('1')
uo.FindType('0x023E','0x023E','ground')
if uo.FindCount()>0 then
Vortex=uo.getserial('finditem')
uo.exec("warmode 1")
repeat
UO.attack('finditem')
wait(10000)
else
uo.FindType('0x023E','0x023E','ground')
if uo.FindCount()==0 then
while uo.gethp() <> uo.str
band()
wait(1000)
wend
endif
endif
UO.waittargetobject('0x4044DD4D')
wait(300)
UO.usetype('0x0E20')
if UO.Life==UO.Str then
uo.say('gg')
wait(5000)
uo.say('gg')
wait(6000)
endif
if UO.InJournal('kk') and UO.Life==UO.Str then
uo.cast('Blade Spirit',char)
repeat
wait(10000)
until not uo.InJournal('fizzles') or uo.InJournal('sufficient mana')
endif
wend
endsub
sub u()
var Vortex
var char='0x00065BD4';ID чара на кот каст
UO.Set("finddistance","7")
While not uo.Dead()
uo.DeleteJournal()
UO.setarm('1')
uo.FindType('0x023E','0x023E','ground')
if uo.FindCount()>0 then
Vortex=uo.getserial('finditem')
uo.exec("warmode 1")
repeat
UO.attack('finditem')
wait(10000)
else
uo.FindType('0x023E','0x023E','ground')
if uo.FindCount()==0 then
while uo.gethp() <> uo.str
band()
wait(1000)
wend
endif
endif
UO.waittargetobject('0x4044DCC1')
wait(300)
UO.usetype('0x0E20')
if UO.Life==UO.Str then
uo.say('kk')
wait(5000)
uo.say('kk')
wait(6000)
endif
if UO.InJournal('gg') and UO.Life==UO.Str then
uo.cast('Blade Spirit',char)
repeat
wait(10000)
until not uo.InJournal('fizzles') or uo.InJournal('sufficient mana')
endif
wend
endsub
sub band()
uo.exec('setarm arm1')
wait(1000)
uo.exec('bandageself')
wait(2000)
uo.exec('arm arm1')
end sub
воть сделал я все так

лечится во время боя со спиритом.. (
мб в скрипте условия не хватает или еще что-нибудь неправильно?...
Попробуй поменять это:
Code:
uo.FindType('0x023E','0x023E','ground')
На:
Code:
uo.FindType('0x023E',-1,'ground')
Или на:
Code:
uo.FindType('0x023E', '0x0000', 'ground')
Причем везде