Created: 27 days ago on 05/31/2025, 12:45:53 AM
Description: Will ask you to target the animal you want to tame. Will then tame untill success. Takes a little long, can definitely be tweaked. Trying to add the option to release after tame.
local action = true
Journal.Clear()
local messages = {
fail = {
"That creature is not tameable.",
"You fail to tame the creature.",
"That creature is already controlled.",
"Your skill is not high enough to tame this creature.",
"You can't see that.",
"Target cannot be seen."
}
}
function checkJournal()
Pause(500) -- allow journal to update
if Journal.Contains("It seems to accept you as master.") then
return "success"
elseif Journal.Contains("*You start to tame the creature.*") then
return "in_progress"
end
for _, failMsg in ipairs(messages.fail) do
if Journal.Contains(failMsg) then
return "fail"
end
end
return nil
end
function continueTaming()
Skills.Use("Animal Taming")
Targeting.WaitForTarget(10000)
Pause(1000)
Messages.Overhead("Starting tame loop...", 65, Player.Serial)
while action do
Skills.Use("Animal Taming")
Pause(1000)
Targeting.TargetLast()
Gumps.WaitForGump(0, 1000)
Pause(2000)
local result = checkJournal()
if result == "success" then
Messages.Overhead("Tamed successfully! Stopping script.", 33, Player.Serial)
action = false
break
elseif result == "fail" then
Messages.Overhead("Taming failed. Stopping script.", 38, Player.Serial)
action = false
break
else
Messages.Overhead("Retrying in 10 seconds...", 15, Player.Serial)
end
Journal.Clear()
Pause(10000)
end
end
continueTaming()