tailoring
Differences
This shows you the differences between two versions of the page.
— | tailoring [2022/09/03 23:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | #Tailoring Trainer by Frank Castle | ||
+ | # | ||
+ | #What you need: | ||
+ | # 1 - 30.0+ Tinkering Skill. If you do not have it buy it up. | ||
+ | # 1 - 30.0+ Tailoring 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 cloth | ||
+ | # Cloth NOT bolts. | ||
+ | # 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) | ||
+ | |||
+ | 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() | ||
+ | countOne = Items.BackpackCount(0x1EB9, | ||
+ | while countOne < 3: | ||
+ | tinkerTool = Items.FindByID(0x1EB9, | ||
+ | Misc.Pause(1100) | ||
+ | Items.UseItem(tinkerTool) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(1500) | ||
+ | countOne = Items.BackpackCount(0x1EB9, | ||
+ | Misc.SendMessage(' | ||
+ | | ||
+ | countTwo = Items.BackpackCount(0x0F9D, | ||
+ | while countTwo < 3: | ||
+ | tinkerTool = Items.FindByID(0x1EB9, | ||
+ | Misc.Pause(1100) | ||
+ | Items.UseItem(tinkerTool) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(1500) | ||
+ | countTwo = Items.BackpackCount(0x0F9D, | ||
+ | Misc.SendMessage(' | ||
+ | |||
+ | def scissorsCheck(): | ||
+ | scissorsCount = Items.BackpackCount(0x0F9E, | ||
+ | if scissorsCount < 1: | ||
+ | checkTools() | ||
+ | tinkerTool = Items.FindByID(0x1EB9, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tinkerTool) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(500) | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(4000) | ||
+ | |||
+ | scissorsCheck() | ||
+ | |||
+ | Player.UseSkill(' | ||
+ | Misc.Pause(11000) | ||
+ | |||
+ | |||
+ | def makeLast(skill, | ||
+ | Tailoring = Player.GetSkillValue(' | ||
+ | sewingKit = Items.FindByID(0x0F9D, | ||
+ | Items.UseItem(sewingKit) | ||
+ | while Tailoring < skill and Tailoring != Player.GetSkillCap(' | ||
+ | Tailoring = Player.GetSkillValue(' | ||
+ | checkCloth() | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(500) | ||
+ | Misc.SendMessage(' | ||
+ | | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | checkTools() | ||
+ | Misc.Pause(100) | ||
+ | sewingKit = Items.FindByID(0x0F9D, | ||
+ | Items.UseItem(sewingKit) | ||
+ | |||
+ | if Items.BackpackCount(item, | ||
+ | craft = Items.FindByID(item, | ||
+ | scissors = Items.FindByID(0x0F9E, | ||
+ | Items.UseItem(scissors) | ||
+ | Target.WaitForTarget(1500, | ||
+ | Target.TargetExecute(craft) | ||
+ | Misc.Pause(1100) | ||
+ | Misc.SendMessage(' | ||
+ | | ||
+ | if Items.BackpackCount(0x0E21, | ||
+ | bandaid = Items.FindByID(0x0E21, | ||
+ | Misc.Pause(100) | ||
+ | Items.Move(bandaid, | ||
+ | Misc.Pause(1100) | ||
+ | Misc.SendMessage(' | ||
+ | | ||
+ | def checkCloth(): | ||
+ | if Items.BackpackCount(0x1766, | ||
+ | global stoCont | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(1100) | ||
+ | cloth = Items.FindByID(0x1766, | ||
+ | Misc.Pause(100) | ||
+ | Items.Move(cloth, | ||
+ | Misc.Pause(1100) | ||
+ | | ||
+ | |||
+ | | ||
+ | def scissorsCheck(): | ||
+ | scissorsCount = Items.BackpackCount(0x0F9E, | ||
+ | if scissorsCount < 1: | ||
+ | checkTools() | ||
+ | tinkerTool = Items.FindByID(0x1EB9, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tinkerTool) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(500) | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(4000) | ||
+ | |||
+ | | ||
+ | def selectCraft(): | ||
+ | Misc.Pause(2000) | ||
+ | Tailoring = Player.GetSkillValue(' | ||
+ | if Tailoring < 35: | ||
+ | makeFirst(0x152E, | ||
+ | | ||
+ | if Tailoring >= 35 and Tailoring < 41.4: | ||
+ | makeFirst(0x152E, | ||
+ | |||
+ | if Tailoring >= 41.4 and Tailoring < 50: | ||
+ | makeFirst(0x2309, | ||
+ | | ||
+ | if Tailoring >= 50 and Tailoring < 54: | ||
+ | makeFirst(0x1515, | ||
+ | | ||
+ | if Tailoring >= 54 and Tailoring < 65: | ||
+ | makeFirst(0x2307, | ||
+ | |||
+ | if Tailoring >= 65 and Tailoring < 72: | ||
+ | makeFirst(0x1F03, | ||
+ | |||
+ | if Tailoring >= 72 and Tailoring < 78: | ||
+ | makeFirst(0x2798, | ||
+ | |||
+ | if Tailoring >= 78 and Tailoring < 90: | ||
+ | makeFirst(0x2797, | ||
+ | |||
+ | if Tailoring >= 90 and Tailoring < 110 and Tailoring != Player.GetSkillCap(' | ||
+ | makeFirst(0x175D, | ||
+ | | ||
+ | if Tailoring >= 110 and Tailoring < 117 and Tailoring != Player.GetSkillCap(' | ||
+ | makeFirst(0x3175, | ||
+ | |||
+ | if Tailoring >= 117 and Tailoring < 120 and Tailoring != Player.GetSkillCap(' | ||
+ | makeFirst(0x4063, | ||
+ | |||
+ | if Tailoring == Player.GetSkillCap(' | ||
+ | lastCraft = Items.FindByID(0x405F, | ||
+ | if lastCraft: | ||
+ | scissors = Items.FindByID(0x0F9E, | ||
+ | Items.UseItem(scissors) | ||
+ | Target.WaitForTarget(1500, | ||
+ | Target.TargetExecute(lastCraft) | ||
+ | Misc.Pause(500) | ||
+ | Misc.SendMessage(' | ||
+ | Misc.ScriptStopAll() | ||
+ | | ||
+ | Misc.Pause(1100) | ||
+ | | ||
+ | def makeFirst(lastcraft, | ||
+ | lastCraft = Items.FindByID(lastcraft, | ||
+ | if lastCraft: | ||
+ | scissors = Items.FindByID(0x0F9E, | ||
+ | Items.UseItem(scissors) | ||
+ | Target.WaitForTarget(1500, | ||
+ | Target.TargetExecute(lastCraft) | ||
+ | Misc.Pause(500) | ||
+ | checkCloth() | ||
+ | checkTools() | ||
+ | Misc.SendMessage(' | ||
+ | sewingKit = Items.FindByID(0x0F9D, | ||
+ | Items.UseItem(sewingKit) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | makeLast(maxSkill, | ||
+ | Misc.Pause(100) | ||
+ | |||
+ | |||
+ | while True: | ||
+ | selectCraft() | ||
+ | </ |