Train Fletching - fully automated -UOS

Share your guides, how-tos, FAQs, and so forth. This is not for support -- post questions in General Discussion.
Post Reply
suiris
Posts: 149

Train Fletching - fully automated -UOS

Post by suiris » October 17th, 2016, 6:55 pm

Hello Everyone,

I decided to post this handy script i wrote, it trains bowcraft from 30 to 100 fully automated.
All you need is a bag with boards and ingots, at least 50 tinkering, and at least 1 tinker tool in your backpack.
Be sure you don't keep any valuable bows/xbows in your backpack as the macro will trash them.

Code: Select all

//setting aliases 
if not @findalias 'init1'
  sysmsg 'Target a restock container' 232
  promptalias 'fletch_restock' 
  sysmsg 'Target the trash barrel' 232
  @setalias 'init1' 'self'
  promptalias 'trash1' 
endif
if not listexists 'craftbows'
  createlist 'craftbows'
  pushlist 'craftbows' 0x13b2
  pushlist 'craftbows' 0xf50
  pushlist 'craftbows' 0x26c2
  pushlist 'craftbows' 0x13fd
  pushlist 'craftbows' 0x26c3
endif
//Tinker skill check
if skill 'Tinkering' < 45
  sysmsg 'Tinkering skill is too low, train it first' 232
  stop
endif
// check for ingots
if counttype 0x1bf2 0 'backpack' < 10
  movetype 0x1bf2 'fletch_restock' 'backpack'[(0 0 0)] 0 45
  pause 650
endif
//craft tinker kits
//=================
while @counttype 0x1eb8 0 'backpack' < 3
  usetype! 0x1eb8
  waitforgump 0x38920abd 2000
  @replygump 0x38920abd 8
  waitforgump 0x38920abd 2000
  @replygump 0x38920abd 23
  waitforgump 0x38920abd 2000
endwhile
//check for fletching kits
while @counttype 0x1022 0 'backpack' < 3
  usetype 0x1eb8
  waitforgump 0x38920abd 2000
  @replygump 0x38920abd 8
  waitforgump 0x38920abd 2000
  @replygump 0x38920abd 142
  waitforgump 0x38920abd 2000
endwhile
//check backpack for boards
if counttype 0x1bd7 0 'backpack' < 40
  movetype 0x1bd7 'fletch_restock' 'backpack'[(0 0 0)] 0 245
  pause 650
endif
// Crafting bows
If skill 'Bowcraft' > 90
usetype 0x1022
waitforgump 0x38920abd 1500
replygump 0x38920abd 15
waitforgump 0x38920abd 1500
replygump 0x38920abd 30
waitforgump 0x38920abd 1500
elseif skill 'Bowcraft' > 80 and skill 'Bowcraft' < 90
usetype 0x1022
waitforgump 0x38920abd 1500
replygump 0x38920abd 15
waitforgump 0x38920abd 1500
replygump 0x38920abd 16
elseif skill 'Bowcraft' > 70 and skill 'Bowcraft' < 80
usetype 0x1022
waitforgump 0x38920abd 1500
replygump 0x38920abd 15
waitforgump 0x38920abd 1500
replygump 0x38920abd 23
elseif skill 'Bowcraft'> 60 and skill 'Bowcraft' < 70
usetype 0x1022
waitforgump 0x38920abd 1500
replygump 0x38920abd 15
waitforgump 0x38920abd 1500
replygump 0x38920abd 9
elseif skill 'Bowcraft' < 60
usetype 0x1022
waitforgump 0x38920abd 1500
replygump 0x38920abd 15
waitforgump 0x38920abd 1500
replygump 0x38920abd 2
else
usetype 0x1022
waitforgump 0x38920abd 1500
replygump 0x38920abd 21
endif
//Handling trash
for 0 to 'craftbows'
while @findtype craftbows[] 'any' 'backpack'
  moveitem 'found' 'trash1'
  pause 650
endwhile
endfor
if skill 'Bowcraft' = 100
 sysmsg 'Congrats!!' 232
 stop
endif
Last edited by suiris on April 16th, 2017, 6:53 am, edited 2 times in total.
Kush Tailored likes this.
Top

User avatar
Kush Tailored
Posts: 335

Re: Train Fletching - fully automated -UOS

Post by Kush Tailored » March 4th, 2017, 6:02 pm

works like a charm. thx
Discord: Kain#3638

suiris
Posts: 149

Re: Train Fletching - fully automated -UOS

Post by suiris » March 4th, 2017, 6:14 pm

I am glad it helped someone.

User avatar
The Instigator
Posts: 161

Re: Train Fletching - fully automated -UOS

Post by The Instigator » March 5th, 2017, 1:26 pm

helped me too!
The name's Yoink, but you can call me, Professor Autobahnschnitzelpusskrumphengesheitmeier.

docouto
Posts: 2

Re: Train Fletching - fully automated -UOS

Post by docouto » April 14th, 2017, 8:12 pm

cant make this work, says
moveitem: destination not found.
any clue?

Junkyman
Posts: 77

Re: Train Fletching - fully automated -UOS

Post by Junkyman » April 15th, 2017, 2:16 am

docouto wrote:cant make this work, says
moveitem: destination not found.
any clue?
make sure ur aliases are set correclt, then open each of the containers used.

suiris
Posts: 149

Re: Train Fletching - fully automated -UOS

Post by suiris » April 16th, 2017, 6:54 am

Try clearing aliases in UOS, and make sure you are near your restock and trashbarrel at the same time.

Moacir
Posts: 1

Re: Train Fletching - fully automated -UOS

Post by Moacir » May 26th, 2017, 7:44 pm

Hello

I cant make this work. It's saying "usetype: item type not found" right after choosing the backpack and trashcan. Could you help me? Thanks!

suiris
Posts: 149

Re: Train Fletching - fully automated -UOS

Post by suiris » May 29th, 2017, 6:03 am

You are probably using the wrong tinker tools, there are more than one type of tinker tools, try buying or crafting from the other types and re-start the script.

User avatar
arcane
Posts: 36

Re: Train Fletching - fully automated -UOS

Post by arcane » June 7th, 2019, 11:48 pm

im getting...skill:invalid operator
DISCORD "arcane #1674"

The Silvertiger
Bug Tester
Posts: 4061

Re: Train Fletching - fully automated -UOS

Post by The Silvertiger » June 7th, 2019, 11:52 pm

arcane wrote:im getting...skill:invalid operator
add a space here: - v
elseif skill 'Bowcraft'> 60 and skill 'Bowcraft' < 70
Last edited by The Silvertiger on June 8th, 2019, 12:32 am, edited 2 times in total.
Black Market

Discord: The Silvertiger #7402

User avatar
arcane
Posts: 36

Re: Train Fletching - fully automated -UOS

Post by arcane » June 8th, 2019, 12:17 am

might see real problem, maybe, my skill is 55 not 60, does this work for skill less than 60?
DISCORD "arcane #1674"

User avatar
arcane
Posts: 36

Re: Train Fletching - fully automated -UOS

Post by arcane » June 8th, 2019, 12:27 am

got it, its working but still getting invalid operator
DISCORD "arcane #1674"

The Silvertiger
Bug Tester
Posts: 4061

Re: Train Fletching - fully automated -UOS

Post by The Silvertiger » June 8th, 2019, 12:34 am

arcane wrote:might see real problem, maybe, my skill is 55 not 60, does this work for skill less than 60?
Yes, a few lines down: elseif skill < [less than] 60

the space is needed between the ' apostrophe and the > greater than sign on the line I posted.
Black Market

Discord: The Silvertiger #7402

Post Reply