carpentry
Differences
This shows you the differences between two versions of the page.
| — | carpentry [2025/02/25 22:20] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| + | #Carpentry Trainer by Frank Castle | ||
| + | # | ||
| + | #What you need: | ||
| + | # 1 - 30.0+ Tinkering Skill. If you do not have it buy it up. | ||
| + | # 1 - 30.0+ Carpentry Skill. If you do not have it buy it up. | ||
| + | # 2 - a player made Tinker Tools | ||
| + | # 3 - a chest with plenty of iron ingots and wood | ||
| + | # | ||
| + | # 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) | ||
| + | |||
| + | GFilter = Items.Filter() | ||
| + | GFilter.RangeMax = 5 | ||
| + | GFilter.OnGround = True | ||
| + | GFilter.Enabled = True | ||
| + | GFilter.Movable = True | ||
| + | garbagecan = List[int]((0x0E77, | ||
| + | GFilter.Graphics = garbagecan | ||
| + | |||
| + | Player.UseSkill(' | ||
| + | Misc.Pause(11000) | ||
| + | |||
| + | |||
| + | def makeLast(skill, | ||
| + | Carpentry = Player.GetSkillValue(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | while Carpentry < skill and Carpentry != Player.GetSkillCap(' | ||
| + | Carpentry = Player.GetSkillValue(' | ||
| + | checkBoards() | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | Misc.Pause(500) | ||
| + | Misc.SendMessage(' | ||
| + | | ||
| + | if Journal.Search(' | ||
| + | Journal.Clear() | ||
| + | checkTools() | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | |||
| + | if Items.BackpackCount(item, | ||
| + | craft = Items.FindByID(item, | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(craft) | ||
| + | Misc.Pause(1100) | ||
| + | Misc.SendMessage(' | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | def checkBoards(): | ||
| + | if Items.BackpackCount(0x1BD7, | ||
| + | global stoCont | ||
| + | Misc.SendMessage(' | ||
| + | Misc.Pause(1100) | ||
| + | board = Items.FindByID(0x1BD7, | ||
| + | Misc.Pause(100) | ||
| + | Items.Move(board, | ||
| + | Misc.Pause(1100) | ||
| + | | ||
| + | def checkIngots(): | ||
| + | if Items.BackpackCount(0x1BF2, | ||
| + | global stoCont | ||
| + | Misc.SendMessage(' | ||
| + | Misc.Pause(1100) | ||
| + | ingot = Items.FindByID(0x1BF2, | ||
| + | Misc.Pause(100) | ||
| + | Items.Move(ingot, | ||
| + | Misc.Pause(1100) | ||
| + | | ||
| + | def checkTools(): | ||
| + | checkIngots() | ||
| + | checkBoards() | ||
| + | countOne = Items.BackpackCount(0x1EB9, | ||
| + | while countOne < 3: | ||
| + | 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(0x1030, | ||
| + | while countTwo < 3: | ||
| + | tinkerTool = Items.FindByID(0x1EB9, | ||
| + | Misc.Pause(100) | ||
| + | Items.UseItem(tinkerTool) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | Misc.Pause(1500) | ||
| + | countTwo = Items.BackpackCount(0x1030, | ||
| + | Misc.SendMessage(' | ||
| + | | ||
| + | def hatchetCheck(): | ||
| + | hatchetCount = Items.BackpackCount(0x0F43, | ||
| + | if hatchetCount < 1: | ||
| + | checkTools() | ||
| + | tinkerTool = Items.FindByID(0x1EB9, | ||
| + | Misc.Pause(100) | ||
| + | Items.UseItem(tinkerTool) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | Misc.Pause(500) | ||
| + | Misc.SendMessage(' | ||
| + | |||
| + | | ||
| + | def selectCraft(): | ||
| + | hatchetCheck() | ||
| + | Misc.Pause(2000) | ||
| + | Carpentry = Player.GetSkillValue(' | ||
| + | if Carpentry < 48: | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(48, | ||
| + | Misc.Pause(100) | ||
| + | |||
| + | |||
| + | if Carpentry >= 48 and Carpentry < 53 : | ||
| + | lastCraft = Items.FindByID(0x0E3E, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(53, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Carpentry >= 53 and Carpentry < 60 : | ||
| + | lastCraft = Items.FindByID(0x0E3C, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(60, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Carpentry >= 60 and Carpentry < 74 : | ||
| + | lastCraft = Items.FindByID(0x1B7A, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(74, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Carpentry >= 74 and Carpentry < 79 : | ||
| + | lastCraft = Items.FindByID(0x27AA, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(79, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Carpentry >= 79 and Carpentry < 82 : | ||
| + | lastCraft = Items.FindByID(0x0E89, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(82 ,0x13F8) | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Carpentry >= 82 and Carpentry < 96 : | ||
| + | lastCraft = Items.FindByID(0x13F8, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(96 ,0x0DF0) | ||
| + | Misc.Pause(100) | ||
| + | |||
| + | if Carpentry >= 96 and Carpentry < 100 : | ||
| + | lastCraft = Items.FindByID(0x0DF0, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | checkBoards() | ||
| + | checkTools() | ||
| + | Misc.SendMessage(' | ||
| + | plane = Items.FindByID(0x1030, | ||
| + | Items.UseItem(plane) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(100 ,0x2D25) | ||
| + | Misc.Pause(100) | ||
| + | |||
| + | | ||
| + | if Carpentry == Player.GetSkillCap(' | ||
| + | lastCraft = Items.FindByID(0x2D25, | ||
| + | if lastCraft: | ||
| + | hatchet = Items.FindByID(0x0F43, | ||
| + | Items.UseItem(hatchet) | ||
| + | Target.WaitForTarget(1500, | ||
| + | Target.TargetExecute(lastCraft) | ||
| + | Misc.Pause(500) | ||
| + | Misc.SendMessage(' | ||
| + | Misc.ScriptStopAll() | ||
| + | | ||
| + | Misc.Pause(1100) | ||
| + | |||
| + | while True: | ||
| + | selectCraft() | ||
| + | </ | ||