Code: Select all
var posoh=0x0E81
var knife=0x0F51
sub tame()
UO.AddObject('Eklmn')
While Uo.Targeting()
wait(50)
Repeat
wend
While 1
Uo.DeleteJournal()
Uo.WaitTargetObject('Eklmn')
Uo.UseType(Posoh)
If uo.injournal('The creature are too|You are too far|Wrong target') then
uo.deletejournal()
uo.exec('terminate tame')
else
return
end if
Wait(100)
Repeat
Until Uo.InJournal('It seems|You fail')
If Uo.Injournal('You fail') then
goto 1
Else
UO.FindType(-1,-1,'lastcorpse')
Uo.waittargetobject('finditem')
Uo.Usetype(knife)
While UO.FindCount()>0
UO.Grab('0', 'finditem')
wait(800)
UO.FindType(-1,-1,'lastcorpse')
wend
end if
wend
end sub
скрипт должен тамить животину. Если незатамилась - тамит по новой, если затамилась то она на серве сама дохнет а скрипт должен юзать даггер на тело и вычищать тело. В чём трабл?