Skip to content
Outlands Hub

Razor script

Peet's Faster Tamer Trainer

by okpeet · 81 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

Tame & Release Loop - training Animal Taming / Lore Click your pet once at startup. Script renames it to TrainPet, then forever: release it -> retame it -> repeat. Runs until you stop it or die.

TrainingTamingAnimal Taming
Peets Faster Tamer Trainer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/0f3edd16-b707-45a2-b11a-d9d9a7407a93 for latest2# Automation by Jaseowns3## Script: Peet's Faster Tamer Trainer4## Created by: okpeet#05#############################################6 7# Tame & Release Loop - training Animal Taming / Lore8# Click your pet once at startup. Script renames it to TrainPet,9# then forever: release it -> retame it -> repeat.10# Runs until you stop it or die.11 12# --- tunables -----------------------------------------------13# 1 = print debug overheads, 0 = silent14@setvar! "debug" 115# ms to wait after the release gump confirmation16@setvar! "releaseDelayMs" 30017# ms to wait for the release confirmation gump to appear18@setvar! "gumpWaitMs" 200019# ms to wait for the targeting cursor after Animal Taming20@setvar! "targetWaitMs" 150021# ms between taming-outcome polls (replaces the old fixed tameDelayMs)22@setvar! "pollMs" 20023# min ms between taming attempts (Animal Taming skill cooldown)24@setvar! "tameCdMs" 1000025 26# --- one-time setup -----------------------------------------27overhead "SELECT PET" 8828sysmsg "Click the pet you want to train."29setvar 'trainPet'30wait 30031 32rename 'trainPet' 'TrainPet'33wait 30034 35# seed the cooldown timer expired so the first tame fires immediately36if not timerexists tameTimer37    settimer tameTimer tameCdMs38endif39 40# --- main loop ----------------------------------------------41while not dead42 43    if debug = 144        overhead "RELEASE" 8845    endif46    say 'TrainPet release'47    wait 25048    waitforgump 0 gumpWaitMs49    gumpresponse 150    wait releaseDelayMs51 52    if debug = 153        overhead "TAME" 8854    endif55    wait 50056 57    # taming cooldown - wait out the remainder of tameCdMs since last attempt58    while timer tameTimer < tameCdMs59        wait pollMs60    endwhile61    settimer tameTimer 062 63    clearsysmsg64    hotkey 'Animal Taming'65    waitfortarget targetWaitMs66    target 'trainPet'67 68    # wait for the attempt to RESOLVE before looping - success raises69    # followers, fail prints "fail to tame". Don't re-fire mid-channel even70    # if the channel runs past tameCdMs. Cap ~30s as a safety net.71    for 15072        if followers > 073            break74        elseif insysmsg 'fail to tame'75            break76        endif77        wait pollMs78    endfor79 80endwhile81