боевые

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Drakonid
Posts: 4
Joined: 2005-06-01 19:05:33

боевые

Post by Drakonid »

Шард дрв.Чары кастуют друг на друга блейд спиритов,как только убивают спиритов,должны лечиться и стирать кровавые бинты в миске.
Ну никак не получается написать функцию лечения:то лечатся раньше времени,то вообще не лечатся :? ...О стирке бинтов вообще молчу,видно руки кривые. :(
Помогите,пожалуйста,написать лечение и стирку бинтов

Code: Select all


uo.FindType('0x023E','0x023E','ground')
if uo.FindCount()==0 then
#
#здесь должно быть лечение
#и стирка бинтов
#    
if UO.Life==UO.Str then
uo.say('gg')
wait(5000)
uo.say('gg')
wait(6000)
endif

Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Re: боевые

Post by Kynep »

Drakonid wrote:Шард дрв.Чары кастуют друг на друга блейд спиритов,как только убивают спиритов,должны лечиться и стирать кровавые бинты в миске.
Ну никак не получается написать функцию лечения:то лечатся раньше времени,то вообще не лечатся :? ...О стирке бинтов вообще молчу,видно руки кривые. :(
Помогите,пожалуйста,написать лечение и стирку бинтов

Code: Select all


uo.FindType('0x023E','0x023E','ground')
if uo.FindCount()==0 then
#
#здесь должно быть лечение
#и стирка бинтов
#    
if UO.Life==UO.Str then
uo.say('gg')
wait(5000)
uo.say('gg')
wait(6000)
endif

Ну для лечения себя вставь bandageself()
или функцию типа:

Code: Select all

while uo.gethp() <> uo.str
       band()
       wait(000) 
wend 

sub band() 
uo.exec('setarm arm1') 
wait(1000) 
uo.exec('bandageself') 
wait(2000) 
uo.exec('arm arm1') 
end sub
а для мойки

Code: Select all

UO.waittargetobject(ID тазика)
wait(300)
UO.usetype(тип бинтов) на ДРВ 0x0E20
Drakonid
Posts: 4
Joined: 2005-06-01 19:05:33

Post by Drakonid »

Code: Select all


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 

воть сделал я все так :roll: лечится во время боя со спиритом.. (
мб в скрипте условия не хватает или еще что-нибудь неправильно?...
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Post by Kynep »

Drakonid wrote:

Code: Select all


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 

воть сделал я все так :roll: лечится во время боя со спиритом.. (
мб в скрипте условия не хватает или еще что-нибудь неправильно?...
Попробуй поменять это:

Code: Select all

uo.FindType('0x023E','0x023E','ground')
На:

Code: Select all

uo.FindType('0x023E',-1,'ground')
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Post by Kynep »

Drakonid wrote:

Code: Select all


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 

воть сделал я все так :roll: лечится во время боя со спиритом.. (
мб в скрипте условия не хватает или еще что-нибудь неправильно?...
Попробуй поменять это:

Code: Select all

uo.FindType('0x023E','0x023E','ground')
На:

Code: Select all

uo.FindType('0x023E',-1,'ground')
Или на:

Code: Select all

uo.FindType('0x023E', '0x0000', 'ground')
Причем везде
Post Reply