enchanted_apple_crafter
Differences
This shows you the differences between two versions of the page.
— | enchanted_apple_crafter [2022/09/03 23:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | ########## | ||
+ | # | ||
+ | #You need a secure container with plenty of apples, greater heal potions, and iron ingots | ||
+ | #You also need one player made tinker tool in your backpack | ||
+ | #You must have GM Cooking and Tinkering | ||
+ | # | ||
+ | #WARNING! This will make Enchanted Apples until you run out of one of the supplies. | ||
+ | from System.Collections.Generic import List | ||
+ | |||
+ | supplyChest = Target.PromptTarget(' | ||
+ | |||
+ | def checkSupplies(): | ||
+ | if Items.BackpackCount(0x09D0, | ||
+ | getApples() | ||
+ | if Items.BackpackCount(0x0F0C, | ||
+ | getGheals() | ||
+ | Misc.Pause(200) | ||
+ | |||
+ | def checkTools(): | ||
+ | if Items.BackpackCount(0x1EB9, | ||
+ | makeTinker() | ||
+ | if Items.BackpackCount(0x097F, | ||
+ | makeSkillet() | ||
+ | Misc.Pause(200) | ||
+ | | ||
+ | def makeTinker(): | ||
+ | if Items.BackpackCount(0x1BF2, | ||
+ | sIngot = Items.FindByID(0x1BF2, | ||
+ | Misc.Pause(200) | ||
+ | Items.Move(sIngot, | ||
+ | Misc.Pause(1200) | ||
+ | Items.UseItemByID(0x1EB9, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(1100) | ||
+ | | ||
+ | def makeSkillet(): | ||
+ | if Items.BackpackCount(0x1BF2, | ||
+ | sIngot = Items.FindByID(0x1BF2, | ||
+ | Misc.Pause(200) | ||
+ | Items.Move(sIngot, | ||
+ | Misc.Pause(1200) | ||
+ | Items.UseItemByID(0x1EB9, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(200) | ||
+ | | ||
+ | def getApples(): | ||
+ | sApple = Items.FindByID(0x09D0, | ||
+ | Misc.Pause(200) | ||
+ | Items.Move(sApple, | ||
+ | Misc.Pause(1200) | ||
+ | | ||
+ | def getGheals(): | ||
+ | sGheal = Items.FindByID(0x0F0C, | ||
+ | Misc.Pause(200) | ||
+ | Items.Move(sGheal, | ||
+ | Misc.Pause(1200) | ||
+ | | ||
+ | def makeApples(): | ||
+ | Items.UseItemByID(0x097F, | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | Misc.Pause(200) | ||
+ | | ||
+ | | ||
+ | def makeLast(): | ||
+ | Gumps.WaitForGump(460, | ||
+ | Gumps.SendAction(460, | ||
+ | if Journal.Search(' | ||
+ | Journal.Clear() | ||
+ | checkTools() | ||
+ | Misc.Pause(300) | ||
+ | Items.UseItemByID(0x097F, | ||
+ | Journal.Clear() | ||
+ | Misc.Pause(200) | ||
+ | | ||
+ | def moveEncApp(): | ||
+ | EncApp = Items.FindByID(0x2FD8, | ||
+ | Items.Move(EncApp, | ||
+ | Misc.Pause(1200) | ||
+ | | ||
+ | def appleLoop(): | ||
+ | makeApples() | ||
+ | while Items.BackpackCount(0x2FD8, | ||
+ | checkSupplies() | ||
+ | makeLast() | ||
+ | moveEncApp() | ||
+ | | ||
+ | def main(): | ||
+ | Items.UseItem(supplyChest) | ||
+ | Misc.Pause(1200) | ||
+ | checkSupplies() | ||
+ | checkTools() | ||
+ | appleLoop() | ||
+ | |||
+ | | ||
+ | while True: | ||
+ | main() | ||
+ | | ||
+ | </ |