TrainingCraftingTinkering
Tinkering jewels training beads seller.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/f969976f-4040-48b1-9b8f-149e41fe02ef for latest2# Automation by Jaseowns3## Script: Tinkering jewels training beads seller4## Created by: special_sy#05#############################################6 7@clearignore 8# Script by [DoS] Chumber9# This script is a semi automatic helper if you train tinkering10# with jewels. 11# 12# It stops the queue if full and resumes after unload13# It will work with any jeweler, just be in range (10 tiles)14# It can buy tools if you setup a buy agent for them15# Just change buyToolkits to 116#17# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!18# !! REQUIREMENTS: 19# !! Add the beads to your sell agent and enable it 20# !! Always craft beads, nothing else!21# !! Add 5 toolkits to your buy agent and enable it 22# !! Setup your crafting queue with beads (craft until skill reached) 23# !! This Script uses Organizer 10 so add gold to it24# !! and set the organizer target to a container in your bank or secure box 25# !! Setup Restock Agent 10 to grab ingots and jewels 26# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!27 28@setvar buyToolkits 129@setvar restockAgentNo 1030@setvar organizerAgentNo 1031@setvar skillCap 12132 33# !!! DONT EDIT !!34@setvar jewelerNPC 035if not timerexists 'sellBeads'36 createtimer 'sellBeads'37 clearsysmsg 38endif39 40if skill 'tinkering' >= skillCap41 overhead "All done, congrats!" 8842 stop43endif44 45# Find a jeweler46while findtype 400|401 'ground' -1 8 as npc47 getlabel npc npcLabel48 if 'jeweler' in npcLabel49 @setvar jewelerNPC npc50 break51 endif52 @ignore npc53endwhile54 55# Didnt find a jeweler?56if jewelerNPC = 057 overhead "No jeweler in range!"58 hotkey 'Crafting Queue'59 overhead "I cant work like that!" 3260 wait 25061 gumpresponse 762 stop63endif64 65# Buy more toolkits from jeweler if down to 166if counttype 'tool kit' <= 1 and buyToolkits = 167 overhead "Last toolkit, buying more!"68 menu jewelerNPC 169 wait 50070endif71 72# Restock73if counttype 'iron ingot%s' 'backpack' <= 3 and restockAgent > 074 overhead "Restocking..."75 restock restockAgentNo76 wft 50077 target 'self'78 while queued79 wait 50080 endwhile81endif82 83## Sell on 10 beads every 30s or if almost full84if counttype 4233 > 10 and timer 'sellBeads' > 30000 or diffweight < 1085 getlabel jewelerNPC npcLabel86 overhead '$$$ {{npcLabel}}'87 menu jewelerNPC 288 wait 50089 organizer organizerAgentNo90 settimer 'sellBeads' 091endif92 93## Full94if diffweight < 195 overhead "This stuff is heavy!"96 hotkey 'Crafting Queue'97 wait 25098 gumpresponse 799 # Drop Gold somewhere100 while diffweight < 10101 overhead "Unload gold!"102 wait 5000103 endwhile104 # Get back105 while not find jewelerNPC 'ground' -1 -1 10 106 overhead "Get back to work!"107 wait 5000108 endwhile109 # Resume110 hotkey 'Crafting Queue'111 overhead "We are back in business!"112 wait 250113 gumpresponse 7114endif115 116# Keep the crafting queue open117if not gumpexists 453554062118 hotkey 'Crafting Queue'119 wait 500120endif121 122# Start queue123if ingump 'Begin Crafting'124 overhead "Here we go!"125 gumpresponse 7126endif127wait 5000128replay