I wanted a way to automatically create items from Nash Crosby's Still when I logout, and couldn't find a complete script on this site. So, in my first public attempt at mafia scripting, I came up with the attached. The script simply attempts to make as many distilled items and liquors as possible. There's no intelligence as to what it makes, but I separated out the functions in such a way that if someone else wants to make it smarter, it shouldn't be too difficult. You can call this from your logout script and it'll use whatever distillations you haven't used during the day.
As this is my first real attempt at KoL scripting, and I haven't done any professional programming in ten years, it's likely not the most efficient means to do the job. I endeavored to make it easy to read and hopefully easy to adapt for your own uses.
The script requires zlib. Place it into your scripts directly and call it for its default behavior, which is, as I mentioned, not intelligent in the way it chooses what to create.
Now, someone will probably tell me the script is already built into mafia, and I just didn't know the function call...

As this is my first real attempt at KoL scripting, and I haven't done any professional programming in ten years, it's likely not the most efficient means to do the job. I endeavored to make it easy to read and hopefully easy to adapt for your own uses.
The script requires zlib. Place it into your scripts directly and call it for its default behavior, which is, as I mentioned, not intelligent in the way it chooses what to create.
Now, someone will probably tell me the script is already built into mafia, and I just didn't know the function call...

Attachments
Last edited: