Code: Select all
sub taming()
var eda = '0x097B'
var palka ='0x0DF0'
var f
var h
DIM reg[10]
reg[0]=0x000820FA #SA
reg[1]=0x000F60FD
reg[2]=0x0003416E
reg[3]=0x0002E623
reg[4]=0x000F56B7
reg[5]=0x0002CE84
reg[6]=0x00105467
reg[7]=0x0002FD0B
reg[8]=0x00064D1A
reg[9]=0x000E87E8
DIM llama[5]
llama[0]=0x000F548E #SA
llama[1]=0x00107F1E
llama[2]=0x000B0C06
llama[3]=0x0003D3BC
llama[4]=0x0007783C
while NOT UO.Dead()
for f = 0 to 9
UO.DeleteJournal()
if UO.Count( eda ) > 0 then
UO.FindType( eda )
uo.MoveItem('finditem', '1', reg[f] )
wait( 1000 )
endif
UO.WaitTargetObject(reg[f])
UO.UseType("0x0DF0")
while not UO.InJournal('fail')and not UO.InJournal('seems') and not UO.InJournal('already')and not UO.InJournal('remembers')
if UO.InJournal('fail') then
repeat
wait(300)
endif
if UO.InJournal('seems')or UO.InJournal('already')or UO.InJournal('remembers') then
uo.say("all release")
wait(100)
endif
wend
next
uo.say("all release")
uo.waittargetobject('0x400D0D39')
uo.cast('Recall')
wait(10000)
for h = 0 to 4
UO.DeleteJournal()
if UO.Count( eda ) > 0 then
UO.FindType( eda )
uo.MoveItem('finditem', '1', llama[h] )
wait( 1000 )
endif
UO.WaitTargetObject(llama[h])
UO.UseType("0x0DF0")
while not UO.InJournal('fail')and not UO.InJournal('It seems') and not UO.InJournal('already')and not UO.InJournal('remembers')
if UO.InJournal('fail') then
repeat
wait(300)
endif
if UO.InJournal('seems')or UO.InJournal('already')or UO.InJournal('remembers') then
uo.say("all release")
wait(100)
endif
wend
next
uo.say("all release")
uo.waittargetobject('0x400C91E3')
uo.cast('Recall')
wait(10000)
wend
end sub
поправте пожалуиста его так чтобы он все действия делал тока после того как животное затамлено .....
у мя ни как не получается ((((
делал как всегда сам поэтому строго не судите ,много я просто не знаю (((