Yoko

All sides of Injection
It is currently 2025-11-06 01:02:46

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: боевые
PostPosted: 2006-03-15 20:01:57 
Offline

Joined: 2005-06-01 19:05:33
Posts: 4
Шард дрв.Чары кастуют друг на друга блейд спиритов,как только убивают спиритов,должны лечиться и стирать кровавые бинты в миске.
Ну никак не получается написать функцию лечения:то лечатся раньше времени,то вообще не лечатся :? ...О стирке бинтов вообще молчу,видно руки кривые. :(
Помогите,пожалуйста,написать лечение и стирку бинтов

Code:

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



Top
   
 Post subject: Re: боевые
PostPosted: 2006-03-15 21:21:04 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Drakonid wrote:
Шард дрв.Чары кастуют друг на друга блейд спиритов,как только убивают спиритов,должны лечиться и стирать кровавые бинты в миске.
Ну никак не получается написать функцию лечения:то лечатся раньше времени,то вообще не лечатся :? ...О стирке бинтов вообще молчу,видно руки кривые. :(
Помогите,пожалуйста,написать лечение и стирку бинтов

Code:

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:
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:
UO.waittargetobject(ID тазика)
wait(300)
UO.usetype(тип бинтов) на ДРВ 0x0E20


Top
   
 Post subject:
PostPosted: 2006-03-15 22:10:02 
Offline

Joined: 2005-06-01 19:05:33
Posts: 4
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



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


Top
   
 Post subject:
PostPosted: 2006-03-15 22:19:50 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
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



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


Попробуй поменять это:
Code:
uo.FindType('0x023E','0x023E','ground')

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


Top
   
 Post subject:
PostPosted: 2006-03-15 22:20:09 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
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



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


Попробуй поменять это:
Code:
uo.FindType('0x023E','0x023E','ground')

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


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


Причем везде


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited