Тамит до победного
Повторный запуск скрипта - завершает скрипт
Код
sub Taming()
if uo.getglobal("Taming") == "On" then
uo.setglobal("Taming", "Off")
else
uo.setglobal("Taming", "On")
end if
if uo.getglobal("Taming") == "On" then
uo.print('Select Animal')
uo.addobject('animal')
while uo.targeting()
wait(100)
wend
else
return 0
end if
taming:
uo.deletejournal()
uo.useskill('Animal Taming')
uo.waittargetobject('animal')
while not uo.injournal("It seems to accept you as master|remembers you and accepts you|is already tame|cannot be tamed")
if uo.injournal('You failed to tame|Targetting cancelled.|too far away!|You can not see|You must wait|You give up trying to tame the creature.|around!') or uo.injournal("You can't see the target") then
uo.deletejournal()
goto taming
else if uo.getglobal("Taming") == "Off" then
uo.waittargetobject('animal')
uo.usetype('0x0F0E', '0x0388')
return 0
end if
wait(1000)
wend
finish:
uo.setglobal("Taming", "Off")
end sub