[Assist UO] Blacksmith Trainer/Smelter

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
Xcess
Journeyman Scribe
Reactions:
Posts: 24
Joined: Mon Jul 01, 2013 7:19 pm

[Assist UO] Blacksmith Trainer/Smelter

Post by Xcess »

This script is pretty straight forward. You will need a blacksmith tool with lots of uses (easily obtained via [exex or toolhouse key), an anvil, a forge, and a container with ingots. Double click your tool once. Hit start, follow prompt..should take care of the rest. any problems feel free to PM me in game, ill eventually get to them.

Code: Select all

//=-=-=-=-=-=-=-=-=-
//Blacksmith Trainer
//Written by Xcess
//-=-=-=-=-=-=-=--=-=-
//Secure Container with Ingots
if not @findalias 'Stock'
promptalias 'Stock'
endif
//========================
//Gets ingots from a Container
if not @findtype 0x1bf2 0x0 'backpack' 300 0
 movetype 0x1bf2 'Stock' 'backpack'  0x0 0 0 0 1000
endif
//========================
//Items to Smelt
if not listexists 'Smelt'
 createlist 'Smelt'
endif
//========================
if listexists 'Smelt'
 @pushlist! 'Smelt' 0xf5c
 @pushlist! 'Smelt' 0x143b
 @pushlist! 'Smelt' 0x1441
 @pushlist! 'Smelt' 0x13b6
 @pushlist! 'Smelt' 0x1401
 @pushlist! 'Smelt' 0x1405
 @pushlist! 'Smelt' 0x1403
 @pushlist! 'Smelt' 0xf62
 @pushlist! 'Smelt' 0x1413
 @pushlist! 'Smelt' 0x1414
 @pushlist! 'Smelt' 0x1412
 @pushlist! 'Smelt' 0x1411
 @pushlist! 'Smelt' 0x2b6f
endif
//========================
//Training
if skill 'Blacksmithy' < 100 and skill 'Blacksmithy' >= 30
 //Mace
 if skill 'Blacksmithy' < 40
  replygump 0x38920abd 71
  waitforgump 949095101 2000
  replygump 0x38920abd 9
  waitforgump 949095101 2000
  //Maul
 elseif skill 'Blacksmithy' >= 40 and skill 'Blacksmithy' < 45
  replygump 0x38920abd 71
  waitforgump 949095101 15000
  replygump 0x38920abd 16
  waitforgump 949095101 15000
  //Cutlass
 elseif skill 'Blacksmithy' >= 45 and skill 'Blacksmithy' < 50
  replygump 0x38920abd 43
  waitforgump 949095101 15000
  replygump 0x38920abd 23
  waitforgump 949095101 15000
  //Scimitar
 elseif skill 'Blacksmithy' >= 50 and skill 'Blacksmithy' < 55
  replygump 0x38920abd 43
  waitforgump 949095101 15000
  replygump 0x38920abd 58
  waitforgump 949095101 15000
  //Kryss
 elseif skill 'Blacksmithy' >= 55 and skill 'Blacksmithy' < 60
  replygump 0x38920abd 43
  waitforgump 949095101 15000
  replygump 0x38920abd 44
  waitforgump 949095101 15000
  //War Fork
 elseif skill 'Blacksmithy' >= 60 and skill 'Blacksmithy' < 65
  replygump 0x38920abd 64
  waitforgump 949095101 15000
  replygump 0x38920abd 65
  waitforgump 949095101 15000
  //Short Spear
 elseif skill 'Blacksmithy' >= 65 and skill 'Blacksmithy' < 70
  replygump 0x38920abd 64
  waitforgump 949095101 15000
  replygump 0x38920abd 44
  waitforgump 949095101 15000
  //Spear
 elseif skill 'Blacksmithy' >= 70 and skill 'Blacksmithy' < 75
  replygump 0x38920abd 64
  waitforgump 949095101 15000
  replygump 0x38920abd 58
  waitforgump 949095101 15000
  //Plate Gorget
 elseif skill 'Blacksmithy' >= 75 and skill 'Blacksmithy' < 80
  replygump 0x38920abd 15
  waitforgump 949095101 15000
  replygump 0x38920abd 16
  waitforgump 949095101 15000
  //Plate Gloves
 elseif skill 'Blacksmithy' >= 80 and skill 'Blacksmithy' < 85
  replygump 0x38920abd 15
  waitforgump 949095101 15000
  replygump 0x38920abd 9
  waitforgump 949095101 15000
  //Plate Helm
 elseif skill 'Blacksmithy' >= 85 and skill 'Blacksmithy' < 90
  replygump 0x38920abd 22
  waitforgump 949095101 15000
  replygump 0x38920abd 30
  waitforgump 949095101 15000
  //Plate Legs
 elseif skill 'Blacksmithy' >= 90 and skill 'Blacksmithy' < 97
  replygump 0x38920abd 15
  waitforgump 949095101 15000
  replygump 0x38920abd 23
  waitforgump 949095101 15000
  //Royal Circlet
 elseif skill 'Blacksmithy' >= 97 and skill 'Blacksmithy' < 100
  replygump 0x38920abd 29
  waitforgump 949095101 15000
  replygump 0x38920abd 9
  waitforgump 949095101 15000
 endif
else
 stop
endif
//========================
//Make Last
for 10
 replygump 0x38920abd 21
 waitforgump 949095101 15000
endfor
//========================
//Smelt it
for 0 to 'Smelt'
 while @findtype Smelt[]
  replygump 0x38920abd 14
  waitfortarget 2000
  targettype Smelt[]
  waitforgump 0x38920abd 2000
 endwhile
endfor
User avatar
DrussRob
Journeyman Scribe
Reactions:
Posts: 27
Joined: Tue May 18, 2010 9:19 pm
Location: Florida
Contact:

Re: [Assist UO] Blacksmith Trainer/Smelter

Post by DrussRob »

Works great! Thanks! :)
"Hot Molly is hot"
Locked