Skip to content
Outlands Hub

Razor script

Taming Trainer

by Brozan (Syal) · 290 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.

Clear messages

TrainingTaming
Taming Trainer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e152d919-255e-4f47-8a04-ac079b6e21f6 for latest2# Automation by Jaseowns3## Script: Taming Trainer4## Created by: Brozan (Syal)#45235#############################################6 7# Clear messages8clearsysmsg 9 10overhead 'Starting autotamer'11 12# Setup timers13createtimer 'bandageTimer'14createtimer 'tamingTimer'15createtimer 'aid time'16createtimer 'healpot time'17createtimer 'anti pot spam'18createtimer 'low mana'19 20# Setup tank variable21    overhead 'Select your tank pet'22    setvar! 'tank'23    say 'all follow me'24 25 26# Skip waiting the full cycle before Starting27settimer 'bandageTimer' 20000 28settimer 'tamingTimer' 20000 29settimer 'healpot time' 20000 30settimer 'anti pot spam' 2000031 32# Main Loop33while not dead34    # Setup target list for each taming skill bracket.35    # 0-50 = Buy Skill36    # 50-6037    removelist 'petarray'38    createlist 'petarray'39    if skill 'Taming' < 6040        # Frog = 8041        pushlist 'petarray' '80'42 43    # 60-7044    elseif skill 'Taming' < 7045        # Cave Bear46        pushlist 'petarray' '213'47        48    # 70-7549    elseif skill 'Taming' < 7550        # Scarab51        pushlist 'petarray' '169'52        53    # 75-8054    elseif skill 'Taming' < 8055        #  Drake Whelp56        pushlist 'petarray' '718'57        58    # 80-8559    elseif skill 'Taming' < 8560        #  Deep Crawler61        pushlist 'petarray' '315'62        63    # 85-9064    elseif skill 'Taming' < 9065        #  Drake grey body66        pushlist 'petarray' '60'67        #  Drake red body68        pushlist 'petarray' '61'69        # dragon welp70        pushlist 'petarray' '718'71        72    # 90-9573    elseif skill 'Taming' < 9574        #  Husk Crab75        pushlist 'petarray' '729'76        77    # 95-10078    elseif skill 'Taming' < 10079        #  or Dragon grey body80        pushlist 'petarray' '12'81        #  or Dragon red body82        pushlist 'petarray' '59'83        #  Dragon whelp84        # pushlist 'petarray' '718'85        86    # 100-10587    elseif skill 'Taming' < 10588        #  Snow Drift89        pushlist 'petarray' '51'90        91    # 105-11092    elseif skill 'Taming' < 11093        #  Drake grey body94        pushlist 'petarray' '60'95        #  Drake red body96        pushlist 'petarray' '61'97        #  Acarid98        pushlist 'petarray' '385'99        100    # 110-115101    elseif skill 'Taming' < 115102        #  Aegis Minion103        pushlist 'petarray' '776'104        #  or Sphinx105        pushlist 'petarray' '293'106        107    # 115-120108    elseif skill 'Taming' < 120109        #  Grey Dragon body value110        pushlist 'petarray' '12'111        #  Red Dragon body value112        pushlist 'petarray' '59'113        #  or Colossal Sandroach114        pushlist 'petarray' '388'115        116    # 120+117    else118        overhead 'Congratulations on 120 taming!'119        unsetvar 'tank'120        stop121    endif122    123    # If hurt, send pet to aggro then heal self124    if diffhits > 5125        # Have pet guard to grab all aggro126        say 'all guard me'127 128        # Healing Survival129        if skill 'Healing' > 1130            if insysmsg 'You begin applying the bandages'131                settimer 'aid time' 0132            endif133            if hits < maxhits and timer 'aid time' > 10250 134                hotkey 'bandage self'135                settimer 'aid time' 0136            endif137        endif138 139        # Magery Survival140        if skill 'Magery' > 1141            # Check if we have enough regs, skip loop if we dont.142            if counttype 'garlic' < 1 or counttype "spider's silk" < 1 or counttype "ginseng" < 1 or counttype "Mandrake Root%s%" < 1143                //'144                overhead "Not enough regs to heal" 33145                pause 5000146                continue147            endif148            # Spell interrupt warnings, pause to give a chance to run away149            if insysmsg 'concentration is disturbed'150                overhead 'Interrupted cast! Waiting 2 second' 33151                wait 2000152            endif153 154            # Mana warnings155            if mana < 40 and timer 'low mana' > 3000156                overhead 'Low Mana' 88157                settimer 'low mana' 0158            elseif mana < 20  and timer 'low mana' > 3000159                overhead 'OOM' 33160                settimer 'low mana' 0161            endif162 163            # If hurt, attempt to heal164            if hits < maxhits165                # If casting something already, wait before attempting to heal.166                if insysmsg 'already casting' or insysmsg 'frozen and cannot move'167                    overhead 'Already casting! Waiting 2 second' 33168                    wait 2000169                endif170 171                # If under 35 HP and we cant heal pot, quick heal and reset heal timer172                # Interrupt and clearall targets before attempting to self-cast to avoid harming self173                if hits < 35 and timer 'healpot time' < 10000 and timer 'anti pot spam' < 1000174                    interrupt175                    clearall176                    hotkey 'Cancel current target'177                    pause 250178                    hotkey '> Mini-Heal/Cure Self'179                    pause 250180                    settimer 'magery heal' 3001181                elseif hits < maxhits182                    # Otherwise just use greater heal to heal up. 183                    interrupt184                    clearall185                    hotkey 'Cancel current target'186                    pause 250187                    hotkey '> Greater Heal/Cure Self'188                    pause 250189                    settimer 'magery heal' 0190                endif191            endif192        endif193 194        # Cure Survival195        if poisoned 'self' and timer 'anti pot spam' > 1000196            overhead 'Used: Cure Potion' 33197            hotkey 'Drink Cure' 198            settimer 'anti pot spam' 0199        endif200 201        # Heal Potion202        if hits < 35 and timer 'healpot time' > 10000 and timer 'anti pot spam' > 1000203            overhead 'Used: Heal Potion' 33204            hotkey 'Drink Heal'205            settimer 'healpot time' 0206            settimer 'anti pot spam' 0207        endif208 209        # pause a few seconds to aggro210        pause 3000211        say 'all follow me'212        warmode off213    endif214    if find 'tank' 'ground' -1 1 5215        if timer 'bandageTimer' > 40000 216                    hotkey 'Use Bandage (No Timer)'217                    pause 250218                    target 'tank'219                    pause 500220                    if insysmsg 'not damaged'221                        settimer 'bandageTimer' 15000222                    else223                        settimer 'bandageTimer' 0224                    endif225        endif226    else227                    overhead 'Cannot heal tank, too far away!' 33228                    pause 3000229    endif230    # Search for pet to tame231    foreach pettarget in petarray232        # Tracking233        if insysmsg 'Now tracking'234            overhead 'Tracking Found!' 33235            overhead 'Recalling' 33236            say 'all follow me'237            ################################################238            # CHANGE THIS SECTION TO YOUR RECALL MACRO239            ################################################240            dclick 0x40F706DE241            waitforgump 1551740969242            gumpresponse 5243            ################################################244        endif245 246        # Warn if followers are full247        if followers >= 5248            overhead 'Clear up follower count to tame' 33249            pause 1000250            //continue251        endif252        253        # Attempt to tame pet254        if findtype pettarget 'ground' -1 1 4 as 'mypettarget'255            # Attempt to heal tank pet256            257 258            if noto 'mypettarget' = friend259                interrupt260                clearall261                # If the mypetarget is already tamed, skip.262                say 'all kill'263                wft 250264                target 'mypettarget'265                pause 5000266                say 'all follow me'267            else268                # Otherwise tame it.269                warmode off270                if timer 'tamingTimer' > 13000271                    interrupt272                    clearall273                    useskill 'Taming'274                    wft 1000275                    target 'mypettarget'276                    settimer 'tamingTimer' 0277                endif278            endif279        else280            pause 1000281        endif282        poplist petarray pettarget283    endfor284endwhile285 286# Dead exit287if dead288    unsetvar 'tank'289    stop290endif