imbuing
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | imbuing [2022/09/03 23:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | #Imbuing Trainer by Frank Castle with special guests Mourn and Lankester | ||
+ | # | ||
+ | #What you need: | ||
+ | # 1 - 30.0+ Tinkering Skill. If you do not have it buy it up. | ||
+ | # 1 - 40.0+ Imbuing. If you do not have it buy it up. | ||
+ | # 2 - a player made Tinker Tools | ||
+ | # 3 - a chest with plenty of iron ingots, leather, citrine, amber, emerald, and magical residue | ||
+ | # 4 - GM Tailoring and at least GM Blacksmithing. | ||
+ | # | ||
+ | # Written and tested on OSI. | ||
+ | from System.Collections.Generic import List | ||
+ | |||
+ | global stoCot | ||
+ | global timesImbued | ||
+ | |||
+ | stoCot = Target.PromptTarget(' | ||
+ | Misc.Pause(1000) | ||
+ | Items.UseItem(stoCot) | ||
+ | Misc.Pause(1100) | ||
+ | |||
+ | residue = 0x2DB1 | ||
+ | amber = 0x0F25 | ||
+ | citrine = 0x0F15 | ||
+ | emerald = 0x0F10 | ||
+ | |||
+ | def checkIngots(): | ||
+ | if Items.BackpackCount(0x1BF2, | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(1100) | ||
+ | ingot = Items.FindByID(0x1BF2, | ||
+ | Misc.Pause(100) | ||
+ | Items.Move(ingot, | ||
+ | Misc.Pause(1100) | ||
+ | | ||
+ | def checkLeather(): | ||
+ | if Items.BackpackCount(0x1081, | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(1100) | ||
+ | leather = Items.FindByID(0x1081, | ||
+ | Misc.Pause(100) | ||
+ | Items.Move(leather, | ||
+ | Misc.Pause(1100) | ||
+ | | ||
+ | def checkTools(): | ||
+ | checkIngots() | ||
+ | countOne = Items.BackpackCount(0x1EB9, | ||
+ | while countOne < 3: | ||
+ | Misc.Pause(1100) | ||
+ | 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: | ||
+ | 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(0x0F9D, | ||
+ | Misc.SendMessage(' | ||
+ | | ||
+ | countThree = Items.BackpackCount(0x0FBC, | ||
+ | while countThree < 3: | ||
+ | Misc.Pause(1100) | ||
+ | tinkerTool = Items.FindByID(0x1EB9, | ||
+ | Misc.Pause(100) | ||
+ | Items.UseItem(tinkerTool) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(1500) | ||
+ | countThree = Items.BackpackCount(0x0FBC, | ||
+ | Misc.SendMessage(' | ||
+ | |||
+ | def checkImbuingMats(mat, | ||
+ | if Items.BackpackCount(mat, | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(1100) | ||
+ | material = Items.FindByID(mat, | ||
+ | Misc.Pause(100) | ||
+ | Items.Move(material, | ||
+ | Misc.Pause(1100) | ||
+ | | ||
+ | if Items.BackpackCount(gem, | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(1100) | ||
+ | jewels = Items.FindByID(gem, | ||
+ | Misc.Pause(100) | ||
+ | Items.Move(jewels, | ||
+ | Misc.Pause(1100) | ||
+ | |||
+ | def imbueThrice(item): | ||
+ | timesImbued = 0 | ||
+ | theTarget = Items.FindByID(item, | ||
+ | def firstImbue(item, | ||
+ | checkImbuingMats(residue, | ||
+ | Player.UseSkill(' | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | if timesImbued < 1: | ||
+ | firstImbue(item, | ||
+ | return timesImbued | ||
+ | timesImbued = firstImbue(item, | ||
+ | Misc.Pause(300) | ||
+ | def secondImbue(item, | ||
+ | checkImbuingMats(residue, | ||
+ | Misc.Pause(500) | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | if timesImbued < 2: | ||
+ | secondImbue(item, | ||
+ | return timesImbued | ||
+ | timesImbued = secondImbue(item, | ||
+ | checkImbuingMats(residue, | ||
+ | Misc.Pause(500) | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | difficulty() | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | imbueLast(timesImbued, | ||
+ | destroy(item) | ||
+ | | ||
+ | def imbueTwice(item): | ||
+ | timesImbued = 0 | ||
+ | theTarget = Items.FindByID(item, | ||
+ | def firstImbue(item, | ||
+ | checkImbuingMats(residue, | ||
+ | Player.UseSkill(' | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | if timesImbued < 1: | ||
+ | firstImbue(item, | ||
+ | return timesImbued | ||
+ | timesImbued = firstImbue(item, | ||
+ | checkImbuingMats(residue, | ||
+ | Misc.Pause(500) | ||
+ | Player.UseSkill(' | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | difficulty() | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | imbueLast(timesImbued, | ||
+ | destroy(item) | ||
+ | |||
+ | def imbueOnce(item): | ||
+ | timesImbued = 0 | ||
+ | theTarget = Items.FindByID(item, | ||
+ | if item == 0x1DB9: | ||
+ | checkImbuingMats(residue, | ||
+ | Misc.Pause(500) | ||
+ | Player.UseSkill(' | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | difficulty() | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | imbueLast(timesImbued, | ||
+ | elif item == 0x0F51: | ||
+ | checkImbuingMats(residue, | ||
+ | Misc.Pause(500) | ||
+ | Player.UseSkill(' | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | difficulty() | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | imbueLast(timesImbued, | ||
+ | elif item == 0x2777: | ||
+ | checkImbuingMats(residue, | ||
+ | Misc.Pause(500) | ||
+ | Player.UseSkill(' | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(theTarget) | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | difficulty() | ||
+ | Gumps.WaitForGump(999056, | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | imbueLast(timesImbued, | ||
+ | destroy(item) | ||
+ | |||
+ | def imbueLast(timesImbued, | ||
+ | while timesImbued < 20: | ||
+ | checkImbuingMats(mat, | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Misc.Pause(200) | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | timesImbued = timesImbued + 1 | ||
+ | | ||
+ | def destroy(item): | ||
+ | unravel = Items.FindByID(item, | ||
+ | Player.UseSkill(' | ||
+ | Gumps.WaitForGump(999059, | ||
+ | Gumps.SendAction(999059, | ||
+ | Target.WaitForTarget(10000, | ||
+ | Target.TargetExecute(unravel) | ||
+ | | ||
+ | def makeLeatherCap(): | ||
+ | sewingKit = Items.FindByID(0x0F9D, | ||
+ | Misc.Pause(100) | ||
+ | checkTools() | ||
+ | checkLeather() | ||
+ | Items.UseItem(sewingKit) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | imbueOnce(0x1DB9) | ||
+ | | ||
+ | def makeDagger(): | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | checkTools() | ||
+ | checkIngots() | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | imbueOnce(0x0F51) | ||
+ | | ||
+ | def makeJingasa(): | ||
+ | tongs = Items.FindByID(0x0FBC, | ||
+ | Misc.Pause(100) | ||
+ | checkTools() | ||
+ | checkIngots() | ||
+ | Items.UseItem(tongs) | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Imbuing = Player.GetSkillValue(' | ||
+ | if Imbuing < 90.1: | ||
+ | imbueOnce(0x2777) | ||
+ | elif Imbuing < 112.1: | ||
+ | imbueTwice(0x2777) | ||
+ | else: | ||
+ | imbueThrice(0x2777) | ||
+ | | ||
+ | | ||
+ | def difficulty(): | ||
+ | Gumps.WaitForGump(999056, | ||
+ | text = Gumps.LastGumpGetLineList() | ||
+ | Misc.Pause(100) | ||
+ | number = len(text)-1 | ||
+ | x = (text[number].split(' | ||
+ | Misc.SendMessage(' | ||
+ | Misc.Pause(500) | ||
+ | | ||
+ | if int(x) > 50: | ||
+ | Gumps.SendAction(999056, | ||
+ | Misc.Pause(500) | ||
+ | difficulty() | ||
+ | | ||
+ | | ||
+ | def setFunction(): | ||
+ | Imbuing = Player.GetSkillValue(' | ||
+ | while Imbuing < 50.0: | ||
+ | Imbuing = Player.GetSkillValue(' | ||
+ | makeLeatherCap() | ||
+ | while Imbuing > 49.9 and Imbuing < 70.0: | ||
+ | Imbuing = Player.GetSkillValue(' | ||
+ | makeDagger() | ||
+ | while Imbuing > 69.9 and Player.GetSkillValue(' | ||
+ | Imbuing = Player.GetSkillValue(' | ||
+ | makeJingasa() | ||
+ | |||
+ | setFunction() | ||
+ | |||
+ | </ |
imbuing.txt · Last modified: 2022/09/03 23:25 by 127.0.0.1