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: 150

Train Fletching - fully automated -UOS

Post by suiris »

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 »

works like a charm. thx
Discord: Kain#3638
suiris
Posts: 150

Re: Train Fletching - fully automated -UOS

Post by suiris »

I am glad it helped someone.
User avatar
The Instigator
Posts: 165

Re: Train Fletching - fully automated -UOS

Post by The Instigator »

helped me too!
ahoy.
docouto
Posts: 2

Re: Train Fletching - fully automated -UOS

Post by docouto »

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

Re: Train Fletching - fully automated -UOS

Post by Junkyman »

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: 150

Re: Train Fletching - fully automated -UOS

Post by suiris »

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 »

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: 150

Re: Train Fletching - fully automated -UOS

Post by suiris »

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: 43

Re: Train Fletching - fully automated -UOS

Post by arcane »

im getting...skill:invalid operator
DISCORD "arcane #1674"
User avatar
The Silvertiger
Posts: 4469

Re: Train Fletching - fully automated -UOS

Post by The Silvertiger »

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.
Never forget June 4th 1989!
Selling List & Vendor

"Screenshots will never be used as evidence but more of a reference tool for us to help in our investigations."
User avatar
arcane
Posts: 43

Re: Train Fletching - fully automated -UOS

Post by arcane »

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: 43

Re: Train Fletching - fully automated -UOS

Post by arcane »

got it, its working but still getting invalid operator
DISCORD "arcane #1674"
User avatar
The Silvertiger
Posts: 4469

Re: Train Fletching - fully automated -UOS

Post by The Silvertiger »

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.
Never forget June 4th 1989!
Selling List & Vendor

"Screenshots will never be used as evidence but more of a reference tool for us to help in our investigations."
Post Reply