blacksmithing
Differences
This shows you the differences between two versions of the page.
— | blacksmithing [2022/09/03 23:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | #What you need: | ||
+ | # 1 - 30.0+ Blacksmith Skill. If you do not have it buy it up. | ||
+ | # 2 - a player made Tinker Tools | ||
+ | # 3 - a chest with plenty of iron ingots | ||
+ | # | ||
+ | # Written and tested on OSI. | ||
+ | from System.Collections.Generic import List | ||
+ | |||
+ | global stoCont | ||
+ | |||
+ | stoCont = Target.PromptTarget(' | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(stoCont) | ||
+ | Misc.Pause(1100) | ||
+ | |||
+ | Player.UseSkill(' | ||
+ | Misc.Pause(11000) | ||
+ | |||
+ | def makeLast(skill, | ||
+ | Blacksmith = Player.GetSkillValue(' | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Items.UseItem(tongs) | ||
+ | while Blacksmith < skill and Blacksmith != Player.GetSkillCap(' | ||
+ | Blacksmith = Player.GetSkillValue(' | ||
+ | checkIngots() | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(500) | ||
+ | | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Items.UseItem(tongs) | ||
+ | |||
+ | if Items.BackpackCount(item, | ||
+ | smelts = Items.FindByID(item, | ||
+ | Misc.Pause(100) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Target.WaitForTarget(1500, | ||
+ | Target.TargetExecute(smelts) | ||
+ | Misc.Pause(300) | ||
+ | | ||
+ | |||
+ | |||
+ | def checkIngots(): | ||
+ | if Items.BackpackCount(0x1BF2, | ||
+ | global stoCont | ||
+ | Misc.Pause(1100) | ||
+ | ingot = Items.FindByID(0x1BF2, | ||
+ | Misc.Pause(100) | ||
+ | Items.Move(ingot, | ||
+ | Misc.Pause(1100) | ||
+ | |||
+ | def checkTools(): | ||
+ | countOne = Items.BackpackCount(0x1EB9, | ||
+ | while countOne < 3: | ||
+ | Misc.Pause(1100) | ||
+ | tinkerTool = Items.FindByID(0x1EB9, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tinkerTool) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(1500) | ||
+ | countOne = Items.BackpackCount(0x1EB9, | ||
+ | Misc.SendMessage(' | ||
+ | | ||
+ | countTwo = Items.BackpackCount(0x0FBC, | ||
+ | while countTwo < 3: | ||
+ | Misc.Pause(1100) | ||
+ | tinkerTool = Items.FindByID(0x1EB9, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tinkerTool) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(1500) | ||
+ | countTwo = Items.BackpackCount(0x0FBC, | ||
+ | Misc.SendMessage(' | ||
+ | | ||
+ | def selectCraft(): | ||
+ | Blacksmith = Player.GetSkillValue(' | ||
+ | if Blacksmith < 35: | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(35, | ||
+ | Misc.Pause(100) | ||
+ | |||
+ | |||
+ | if Blacksmith >= 35 and Blacksmith < 45 : | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(45, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith >= 45 and Blacksmith < 50 : | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(50, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith >= 50 and Blacksmith < 55 : | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(55, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith >= 55 and Blacksmith < 59 : | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(59, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith >= 59 and Blacksmith < 61 : | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(61, | ||
+ | Misc.Pause(100) | ||
+ | |||
+ | if Blacksmith >= 61 and Blacksmith < 70 : | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(70, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith >= 70 and Blacksmith < 106 and Blacksmith != Player.GetSkillCap(' | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(106, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith >= 106 and Blacksmith < 108 and Blacksmith != Player.GetSkillCap(' | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(108, | ||
+ | Misc.Pause(100) | ||
+ | |||
+ | if Blacksmith >= 108 and Blacksmith < 116 and Blacksmith != Player.GetSkillCap(' | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(116, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith >= 116 and Blacksmith < 118 and Blacksmith != Player.GetSkillCap(' | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(118, | ||
+ | Misc.Pause(100) | ||
+ | |||
+ | if Blacksmith >= 118 and Blacksmith < 120 and Blacksmith != Player.GetSkillCap(' | ||
+ | checkIngots() | ||
+ | checkTools() | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(120, | ||
+ | Misc.Pause(100) | ||
+ | | ||
+ | if Blacksmith == Player.GetSkillCap(' | ||
+ | Misc.ScriptStopAll() | ||
+ | | ||
+ | Misc.Pause(1100) | ||
+ | |||
+ | while True: | ||
+ | selectCraft() | ||
+ | | ||
+ | </ |