Skip to content
Outlands Hub

Razor script

Mushnar's Mostly Safe Tinkering Trainer

by mushnar · 385 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.

UPDATE LOG ########### 2025-07-21 #### Feature: Stops the script & crafting queue if you have less than 10 stones of weight available or over 120 items in your backpack if configured as a failsafe

TrainingGatheringCraftingTinkering
Mushnars Mostly Safe Tinkering Trainer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/43e1faa3-20f2-4ff6-8c2b-bff1544c0b18 for latest2# Automation by Jaseowns3## Script: Mushnar's Mostly Safe Tinkering Trainer4## Created by: mushnar#05#############################################6 7#################################8########### UPDATE LOG ###########9# 2025-07-2110# #### Feature: Stops the script & crafting queue if you have less than 10 stones of weight available or over 120 items in your backpack if configured as a failsafe11 12# 2025-07-2013# #### Fixed some edge case bugs that prevented the script from being able to count the number of toolkits in your backpack14# #### Feature: Stop the script & crafting queue if your Artisan aspect is capped out on XP if enabled15# #### Feature: Stop the script & crafting queue if you run out of resources to prevent the Crafting Queue from making higher level items and wasting resources erroneously16# #### Feature: Ping an overhead message on the Jeweler NPC if enabled17# #### Feature: Display Debug messages overhead if enabled to assist in troubleshooting errors18# #### Feature: Pull Tinker Tools from the bank if unable to buy tools from the vendor19#################################20 21 22 23 24####################################25############ SCRIPT SETUP ############26# Add beads ONLY to your SELL agent and enable it27# Add 2 toolkits to your BUY agent and enable it28# Setup your crafting queue with beads set to Craft Until Skill Reached29# Put a container in your bank box and set the crafting queue to pull resources from this container30# Put all your crafting materials inside this container31 32 33# Set bank_serial_number variable to the serial number of your bank box OR a container INSIDE your bank box34# #### Go to a bank and open it35# #### Open Razor and create a new script and give it any name36# #### Press the Record button in razor37# #### Drag any item into your bank box38# #### Copy the serial number from the line that says *drop*39# #### Serial number should be in this format 0x72C326D9 40####################################41 42########################################43############ TROUBLESHOOTING ############44# Log out of the game entirely on all clients, close the launcher and reopen to ensure there is not a new patch45# Clear & recreate your SELL & BUY agents entirely46# Delete the script from Razor and create a brand new one & set back up with your desired skill cap, configuration options and bank_box_serial_number47########################################48 49 50@setvar! tinkering_skill_cap 5551@setvar! bank_box_serial_number 0x42250BDA52@setvar! stop_if_artisan_aspect_capped 053@setvar! stop_if_out_of_resources 154@setvar! stop_if_overweight_or_over_item_limit 155 56 57@setvar! mark_jeweler_overhead 058@setvar! mark_jeweler_overhead_frequency 400059@setvar! enable_debug_messages 060 61if stop_if_artisan_aspect_capped = 162    say "[Aspect"63    waitforgump 2424293173 100064endif65 66if mark_jeweler_overhead = 167    removetimer "overhead_cooldown"68    if not timerexists "overhead_cooldown"69        createtimer "overhead_cooldown"70        settimer "overhead_cooldown" mark_jeweler_overhead_frequency71    endif72endif73 74 75if enable_debug_messages = 176    overhead "DEBUG MESSAGES ENABLED" 5377endif78 79 80while not dead81    @clearignore82    @setvar jeweler_npc 083    while findtype 400|401 ground any any 8 as npc84        getlabel npc npc_description85        if "jeweler" in npc_description86            @setvar jeweler_npc npc87 88 89            if enable_debug_messages = 190                overhead "Found Jeweler!" 5391            endif92 93 94            if mark_jeweler_overhead = 195                if timer "overhead_cooldown" >= mark_jeweler_overhead_frequency96                    overhead "�� Jeweler ��" 88 jeweler_npc97                    settimer "overhead_cooldown" 098                endif99            endif100 101 102            if skill "tinkering" >= tinkering_skill_cap103                overhead "Tinkering at desired level!" 88104 105                if ingump "Stop Crafting" 453554062106                    if enable_debug_messages = 1107                        overhead "Stopping Crafting Queue!" 53108                    endif109 110                    gumpresponse 7 453554062111                    waitforgump 453554062 1000112                endif113 114                stop115            else116                if enable_debug_messages = 1117                    overhead "Tinkering skill below desired level" 53118                endif119 120 121                if stop_if_artisan_aspect_capped = 1122                    say "[Aspect"123                    waitforgump 2424293173 500                124 125                    if ingump "Upgrade tier" 2424293173126                        overhead "UPGRADE ASPECT" 53127                        128                        # Stop queue129                        if ingump "Stop Crafting" 453554062130                            if enable_debug_messages = 1131                                overhead "Stopping Crafting Queue!" 53132                            endif133 134                            gumpresponse 7 453554062135                            waitforgump 453554062 1000136                        endif137 138                        stop139                    endif140                endif141 142            143                if counttype "tool kit" backpack <= 1144                    if enable_debug_messages = 1145                        overhead "Restocking Tinkers Tools" 53146                    endif147 148                    menu jeweler_npc 1149                    wait 1000150 151                    if counttype "tool kit" backpack <= 1152                        if enable_debug_messages = 1153                            overhead "Error Buying: Restocking from Bank" 53154                        endif155 156                        if findtype 7864 bank_box_serial_number as tools_in_bank157                            if enable_debug_messages = 1158                                overhead "Found Tinker Tools in Bank" 53159                            endif160 161                            @drop backpack -1 -1 -1162                            getlabel backpack ping163                            lift tools_in_bank 1164                            getlabel backpack ping165                            wait 100166                            drop backpack167                            getlabel backpack ping168                            wait 100169                        endif170                    endif171                endif172 173 174                if stop_if_overweight_or_over_item_limit = 1175                    if diffweight <= 10176                        overhead "Stopping: Overweight!" 53177                        overhead "Stopping: Overweight!" 53178                        overhead "Stopping: Overweight!" 53179 180                        if ingump "Stop Crafting" 453554062181                            if enable_debug_messages = 1182                                overhead "Stopping Crafting Queue!" 53183                            endif184 185                            gumpresponse 7 453554062186                            waitforgump 453554062 1000187                        endif188 189                        stop190                    endif191 192 193                    getlabel backpack backpack_description194                    wait 100195 196 197                    if "120/125" in backpack_description198                        overhead "Stopping: Backpack full!" 53199                        overhead "Stopping: Backpack full!" 53200                        overhead "Stopping: Backpack full!" 53201                        202                        if ingump "Stop Crafting" 453554062203                            if enable_debug_messages = 1204                                overhead "Stopping Crafting Queue!" 53205                            endif206 207                            gumpresponse 7 453554062208                            waitforgump 453554062 1000209                        endif210 211                        stop212                    endif213 214                    if "121/125" in backpack_description215                        overhead "Stopping: Backpack full!" 53216                        overhead "Stopping: Backpack full!" 53217                        overhead "Stopping: Backpack full!" 53218                        219                        if ingump "Stop Crafting" 453554062220                            if enable_debug_messages = 1221                                overhead "Stopping Crafting Queue!" 53222                            endif223 224                            gumpresponse 7 453554062225                            waitforgump 453554062 1000226                        endif227 228                        stop229                    endif230 231                    if "122/125" in backpack_description232                        overhead "Stopping: Backpack full!" 53233                        overhead "Stopping: Backpack full!" 53234                        overhead "Stopping: Backpack full!" 53235                        236                        if ingump "Stop Crafting" 453554062237                            if enable_debug_messages = 1238                                overhead "Stopping Crafting Queue!" 53239                            endif240 241                            gumpresponse 7 453554062242                            waitforgump 453554062 1000243                        endif244 245                        stop246                    endif247 248                    if "123/125" in backpack_description249                        overhead "Stopping: Backpack full!" 53250                        overhead "Stopping: Backpack full!" 53251                        overhead "Stopping: Backpack full!" 53252                        253                        if ingump "Stop Crafting" 453554062254                            if enable_debug_messages = 1255                                overhead "Stopping Crafting Queue!" 53256                            endif257 258                            gumpresponse 7 453554062259                            waitforgump 453554062 1000260                        endif261 262                        stop263                    endif264 265                    if "124/125" in backpack_description266                        overhead "Stopping: Backpack full!" 53267                        overhead "Stopping: Backpack full!" 53268                        overhead "Stopping: Backpack full!" 53269                        270                        if ingump "Stop Crafting" 453554062271                            if enable_debug_messages = 1272                                overhead "Stopping Crafting Queue!" 53273                            endif274 275                            gumpresponse 7 453554062276                            waitforgump 453554062 1000277                        endif278 279                        stop280                    endif281 282                    if "125/125" in backpack_description283                        overhead "Stopping: Backpack full!" 53284                        overhead "Stopping: Backpack full!" 53285                        overhead "Stopping: Backpack full!" 53286                        287                        if ingump "Stop Crafting" 453554062288                            if enable_debug_messages = 1289                                overhead "Stopping Crafting Queue!" 53290                            endif291 292                            gumpresponse 7 453554062293                            waitforgump 453554062 1000294                        endif295 296                        stop297                    endif298                endif299 300                301                # Keep the crafting queue open302                if not gumpexists 453554062303                    if enable_debug_messages = 1304                        overhead "Opening Crafting Queue" 53305                    endif306 307                    say "[CraftingQueue"308                    getlabel backpack ping309                endif310 311 312                # Start queue313                if ingump "Begin Crafting" 453554062314                    if enable_debug_messages = 1315                        overhead "Begin Crafting!" 53316                    endif317 318                    gumpresponse 7 453554062319                    waitforgump 453554062 1000320                endif321 322 323                if stop_if_out_of_resources = 1324                    if insysmsg "You don't have the resources required to make that item"325                        overhead "Out of resources!" 53326 327                        if ingump "Stop Crafting" 453554062328                            if enable_debug_messages = 1329                                overhead "Stopping Crafting Queue!" 53330                            endif331 332                            gumpresponse 7 453554062333                            waitforgump 453554062 1000334                        endif335 336                        stop337                    endif338                endif339        340 341                # Sells beads to the Jeweler342                if findtype 4233|4232 backpack as found_bead343                    if enable_debug_messages = 1344                        overhead "Selling Beads!" 53345                    endif346 347                    menu jeweler_npc 2348                    getlabel backpack ping349                    wait 100350                endif351 352 353                # Moves gold to the bank box354                if findtype 3821 backpack as found_gold355                    if enable_debug_messages = 1356                        overhead "Moving Gold to Bank!" 53357                    endif358 359                    @drop backpack -1 -1 -1360                    getlabel backpack ping361                    lift found_gold 60000362                    getlabel backpack ping363                    drop bank_box_serial_number -1 -1 0364                endif365                366                wait 1000367                368 369                if stop_if_artisan_aspect_capped = 1370                    if gumpexists 2424293173371                        gumpclose 2424293173372                    endif373                endif374            endif375        else376            @ignore npc377        endif378    endwhile379 380 381    if jeweler_npc = 0382        overhead "No jeweler in range!"383        stop384    endif385endwhile