alchemy
Differences
This shows you the differences between two versions of the page.
| — | alchemy [2025/02/25 22:20] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| + | #Alchemy Trainer by Frank Castle | ||
| + | # | ||
| + | #What you need: | ||
| + | # 1 - 30.0+ Tinkering Skill. If you do not have it buy it up. | ||
| + | # 1 - 30.0+ Alchemy Skill. If you do not have it buy it up. | ||
| + | # 2 - a player made Tinker Tools | ||
| + | # 3 - a chest with plenty of iron ingots, reagents, and bottles | ||
| + | # | ||
| + | # 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) | ||
| + | |||
| + | mandrakeroot = 0x0F86 | ||
| + | bloodmoss = 0x0F7B | ||
| + | sulphurousash = 0x0F8C | ||
| + | nightshade = 0x0F88 | ||
| + | blackpearl = 0x0F7A | ||
| + | spidersilk = 0x0F86 | ||
| + | ginseng = 0x0F85 | ||
| + | garlic = 0x0F84 | ||
| + | gravedust = 0x0F8F | ||
| + | |||
| + | |||
| + | def makeLast(skill, | ||
| + | Alchemy = Player.GetSkillValue(' | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | while Alchemy < skill and Alchemy != Player.GetSkillCap(' | ||
| + | Alchemy = Player.GetSkillValue(' | ||
| + | checkRegs(reg1) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | Misc.Pause(500) | ||
| + | | ||
| + | if Journal.Search(' | ||
| + | Journal.Clear() | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | |||
| + | if Items.BackpackCount(item, | ||
| + | potion = Items.FindByID(item, | ||
| + | Misc.Pause(100) | ||
| + | Items.Move(potion, | ||
| + | Misc.Pause(300) | ||
| + | | ||
| + | |||
| + | |||
| + | def checkRegs(reg1): | ||
| + | if Items.BackpackCount(reg1, | ||
| + | global stoCont | ||
| + | Misc.Pause(1100) | ||
| + | Reg = Items.FindByID(reg1, | ||
| + | Misc.Pause(100) | ||
| + | Items.Move(Reg, | ||
| + | Misc.Pause(1100) | ||
| + | | ||
| + | if Items.BackpackCount(0x0F0E, | ||
| + | global stoCont | ||
| + | Misc.Pause(1100) | ||
| + | bottle = Items.FindByID(0x0F0E, | ||
| + | Misc.Pause(100) | ||
| + | Items.Move(bottle , | ||
| + | Misc.Pause(1100) | ||
| + | | ||
| + | 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(): | ||
| + | checkIngots() | ||
| + | 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(0x0E9B, | ||
| + | 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(0x0E9B, | ||
| + | Misc.SendMessage(' | ||
| + | |||
| + | | ||
| + | def selectCraft(): | ||
| + | Alchemy = Player.GetSkillValue(' | ||
| + | if Alchemy < 45: | ||
| + | checkRegs(bloodmoss) | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(45, | ||
| + | Misc.Pause(100) | ||
| + | |||
| + | |||
| + | if Alchemy >= 45 and Alchemy < 55 : | ||
| + | lastPot = Items.FindByID(0x0F08, | ||
| + | if lastPot: | ||
| + | Items.Move(lastPot, | ||
| + | Misc.Pause(1100) | ||
| + | lastreg = Items.FindByID(0x0F7B, | ||
| + | if lastreg: | ||
| + | Items.Move(lastreg, | ||
| + | Misc.Pause(1100) | ||
| + | checkRegs(mandrakeroot) | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(55, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Alchemy >= 55 and Alchemy < 65 : | ||
| + | lastPot = Items.FindByID(0x0F09, | ||
| + | if lastPot: | ||
| + | Items.Move(lastPot, | ||
| + | Misc.Pause(1100) | ||
| + | lastreg = Items.FindByID(0x0F86, | ||
| + | if lastreg: | ||
| + | Items.Move(lastreg, | ||
| + | Misc.Pause(1100) | ||
| + | checkRegs(bloodmoss) | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(65, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Alchemy >= 65 and Alchemy < 75 : | ||
| + | lastPot = Items.FindByID(0x0F08, | ||
| + | if lastPot: | ||
| + | Items.Move(lastPot, | ||
| + | Misc.Pause(1100) | ||
| + | lastreg = Items.FindByID(0x0F7B, | ||
| + | if lastreg: | ||
| + | Items.Move(lastreg, | ||
| + | Misc.Pause(1100) | ||
| + | checkRegs(mandrakeroot) | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(75, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Alchemy >= 75 and Alchemy < 85 : | ||
| + | lastPot = Items.FindByID(0x0F09, | ||
| + | if lastPot: | ||
| + | Items.Move(lastPot, | ||
| + | Misc.Pause(1100) | ||
| + | lastreg = Items.FindByID(0x0F86, | ||
| + | if lastreg: | ||
| + | Items.Move(lastreg, | ||
| + | Misc.Pause(1100) | ||
| + | checkRegs(ginseng) | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(85, | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Alchemy >= 85 and Alchemy < 95 : | ||
| + | lastPot = Items.FindByID(0x0F0C, | ||
| + | if lastPot: | ||
| + | Items.Move(lastPot, | ||
| + | Misc.Pause(1100) | ||
| + | lastreg = Items.FindByID(0x0F85, | ||
| + | if lastreg: | ||
| + | Items.Move(lastreg, | ||
| + | Misc.Pause(1100) | ||
| + | checkRegs(garlic) | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(95 ,0x0F07, garlic) | ||
| + | Misc.Pause(100) | ||
| + | | ||
| + | if Alchemy >= 95 and Alchemy < 100 : | ||
| + | lastPot = Items.FindByID(0x0F07, | ||
| + | if lastPot: | ||
| + | Items.Move(lastPot, | ||
| + | Misc.Pause(1100) | ||
| + | lastreg = Items.FindByID(0x0F84, | ||
| + | if lastreg: | ||
| + | Items.Move(lastreg, | ||
| + | Misc.Pause(1100) | ||
| + | checkRegs(gravedust) | ||
| + | checkTools() | ||
| + | mortar = Items.FindByID(0x0E9B, | ||
| + | Items.UseItem(mortar) | ||
| + | Gumps.WaitForGump(460, | ||
| + | Gumps.SendAction(460, | ||
| + | makeLast(100 ,0x0F06, gravedust) | ||
| + | Misc.Pause(100) | ||
| + | |||
| + | | ||
| + | if Alchemy == Player.GetSkillCap(' | ||
| + | lastPot = Items.FindByID(0x0F06, | ||
| + | if lastPot: | ||
| + | Items.Move(lastPot, | ||
| + | Misc.Pause(1100) | ||
| + | lastreg = Items.FindByID(0x0F8F, | ||
| + | if lastreg: | ||
| + | Items.Move(lastreg, | ||
| + | Misc.Pause(1100) | ||
| + | Misc.ScriptStopAll() | ||
| + | | ||
| + | Misc.Pause(1100) | ||
| + | |||
| + | while True: | ||
| + | selectCraft() | ||
| + | </ | ||