Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Potionrestocker //
- // Made by kakel_anders#1638 (Player UOG:Demise) //
- // Say hello to the potionbot! :D //
- //
- /// I see alot of potential in simplifying this script so expect updates!
- //
- // - Prerequisites - //
- //1. Have a box/bag (resourcebag) smacked full of regs, bottles and iron ingots.
- //2. Have a destinationbag/box to put the potions
- //3. Start with atleast 1 tinkerkit in backpack
- //3. Adjust Volumes you want to have in stock below in the list "volume"
- //4. Need TINKERING! Will make new tinkerkits and alchytools as it needs em!
- //Note that the volumes are checked against the destinationbag/box so if you have 3000 refresh in it already, it will only make an additional 4000 potions of that type.
- //// LET 'ER RIP! ////'
- clearlist 'reagents'
- clearlist 'volume'
- unsetalias 'resourcebag'
- unsetalias 'commoditybox'
- promptalias 'resourcebag'
- promptalias 'commoditybox'
- createlist 'volume'
- pushlist 'volume' 7000 // Refresh
- pushlist 'volume' 7000 // Agility
- pushlist 'volume' 7000 // Nightsight
- pushlist 'volume' 7000 // Heal
- pushlist 'volume' 7000 // Strength
- pushlist 'volume' 7000 // Poison
- pushlist 'volume' 7000 // Cure
- pushlist 'volume' 7000 // Explotion
- pushlist 'volume' 7000 // Conflagration
- pushlist 'volume' 7000 // Confusion
- createlist 'reagents'
- pushlist 'reagents' 0xf8c // Sulfurous Ash
- pushlist 'reagents' 0xf86 // Mandrake Root
- pushlist 'reagents' 0xf84 // Garlic
- pushlist 'reagents' 0xf8d // Spidersilk
- pushlist 'reagents' 0xf88 // Nightshade
- pushlist 'reagents' 0xf7b // Bloodmoss
- pushlist 'reagents' 0xf85 // Ginseng
- pushlist 'reagents' 0xf7a // Blackpearl
- pushlist 'reagents' 0xf8a // Pigiron
- pushlist 'reagents' 0xf78 // Batwing
- pushlist 'reagents' 0xf8e // Nox Crystals
- pushlist 'reagents' 0xf8f // Gravedust
- pushlist 'reagents' 0xf7d // Daemon Blood
- /// - Make refreshpotions - ///
- while counttype 0xf0b '0' 'commoditybox' < 'volume[0]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 50
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf7a 'any' 'backpack' < 50
- movetype 0xf7a 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 1
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf0b 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Refresh = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make agilitypotions - ///
- //
- while counttype 0xf08 '0' 'commoditybox' < 'volume[1]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf7b 'any' 'backpack' < 50
- movetype 0xf7b 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf08 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Agility = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make nightsightpotions - ///
- //
- while counttype 0xf06 '0' 'commoditybox' < 'volume[2]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf8d 'any' 'backpack' < 50
- movetype 0xf8d 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 15
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 2
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf06 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Nightsight = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make Greaterhealpotions - ///
- //
- while counttype 0xf0c '0' 'commoditybox' < 'volume[3]'
- // Fill up on tools
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf85 'any' 'backpack' < 50
- movetype 0xf85 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 22
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 16
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf0c 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Greaterheal = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make Strengthpotions - ///
- //
- while counttype 0xf09 '0' 'commoditybox' < 'volume[4]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf86 'any' 'backpack' < 50
- movetype 0xf86 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 29
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf09 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Strength = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make Deadlypoisonpotions - ///
- //
- while counttype 0xf0a '0' 'commoditybox' < 'volume[5]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf88 'any' 'backpack' < 50
- movetype 0xf88 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 36
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 23
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf0a 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Deadly Poison = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make Greatercurepotions - ///
- //
- while counttype 0xf07 '0' 'commoditybox' < 'volume[6]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf84 'any' 'backpack' < 50
- movetype 0xf84 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 43
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 16
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf07 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Greater Cure = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make Greaterexplotionpotions - ///
- //
- while counttype 0xf0d '0' 'commoditybox' < 'volume[7]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf8c 'any' 'backpack' < 50
- movetype 0xf8c 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- replygump 0x38920abd 43
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 50
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 16
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf0d 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Greater Explosion = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make Greaterconflagrationpotions - ///
- //
- while counttype 0xf06 '1161' 'commoditybox' < 'volume[8]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf8f 'any' 'backpack' < 50
- movetype 0xf8f 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- replygump 0x38920abd 43
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 57
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf06 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Greater Conflagration = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
- //
- /// - Make Greaterconfusionblastpotions - ///
- //
- while counttype 0xf06 '1165' 'commoditybox' < 'volume[9]'
- // Fill up on ingots
- if counttype 0x1bf2 'any' 'backpack' < 50
- movetype 0x1bf2 'resourcebag' 'backpack' (0 0 0) 0 100
- endif
- // Make new tinkerkits
- if counttype 0x1eb8 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- pause 1000
- replygump 0x38920abd 8
- pause 500
- replygump 0x38920abd 23
- endfor
- endif
- // Make new alchytools
- if counttype 0xe9b 'any' 'backpack' < 3
- for 5
- usetype 0x1eb8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 8
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 9
- waitforgump 0x38920abd 15000
- endfor
- endif
- // Fill up on Bottles
- if counttype 0xf0e 'any' 'backpack' < 50
- movetype 0xf0e 'resourcebag' 'backpack' (0 0 0) 'any' 50
- endif
- // Fill up on Regs
- if counttype 0xf8a 'any' 'backpack' < 50
- movetype 0xf8a 'resourcebag' 'backpack' (0 0 0) 'any' 1000
- endif
- //Make potion
- usetype 0xe9b
- replygump 0x38920abd 43
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 57
- waitforgump 0x38920abd 15000
- replygump 0x38920abd 23
- waitforgump 0x38920abd 15000
- //Move potion
- movetype 0xf06 'backpack' 'commoditybox'
- pause 500
- endwhile
- msg 'Greater Confusionblast = done!'
- // Move leftover reagents back to storage
- for 0 to reagents
- if findtype 'reagents[]' 'backpack'
- moveitem 'found' 'resourcebag'
- endif
- endfor
Add Comment
Please, Sign In to add comment