darkcodelagsniper
Member
ZapWizard 0.91
When called, ZapWizard determines the most profitable item for zapping. Pending your confirmation, it then acquires the item, zaps it, and places the transmogrified item into your mall store.
REQUIREMENTS
This script uses ZLib.ash
If you don't have it already you can get it from here: Zarqon's Useful Function Library
There's a few ZLib variables to play around with, shown here with their default values.
Change them from the Mafia CLI, like this:
or use a Relay zlib editor like Heeheehee's one.
The variables are pretty self-explanatory, but I'll explain what each of them does anyway:
numberofrecommendations = 1
Can be increased up to 10 to show a greater number of recommendations, in order of profitability. ZapWizard will only offer to autozap its top recommendation.
volumechecking = true
minvolume = 700
This checks the amount sold of the most expensive group member over the last week, using data from http://kol.coldfront.net
The request to coldfront is only made after all other conditions for recommendation have been met.
If the amount sold over this period is less than minvolume then the group will not be recommended.
minmargin = .2
The minimum profit margin, set to 20% by default. If the margin is lower than this, then ZapWizard will not recommend it. To remove this limit, set to 0.
capitalthreshold = 10000
The maximum meat cost of the cheapest group member, set to 10k meat by default. If the cheapest item in a group is worth more than this amount, then ZapWizard will not recommend it. If you want to completely remove this limit, set to -1. You probably don't want to do that though.
autozap = true
If set to false then ZapWizard won't offer to autozap, and will only give recommendations.
confirmautozap = true
If set to false then zaps top recommendation without requiring user confirmation.
overheat = false
Set to true to stop ZapWizard aborting when your wand is warm.
blowupwand = false
If set to true then ZapWizard will keep zapping until your wand explodes, then automatically set this variable back to false.
This overrides your usual setting for overheat.
completeoutfits = true
If true, attempts to complete aftercore outfits - Hobopolis/SlimeTube/Cursed Pirate - before zapping for profit. Thanks to Zarqon/Sorguon for the help here
priceupdateperiod = 7
How many days to wait before rechecking item prices, by default only once every week.
Version History
0.1 Added version checking, Use ZLib verbosity settings, Improved wand heat checking, Added volume check, Removed option to ignore equipment, Removed tiny plastic commons
0.2 Script was saving a junk zlib variable - "ZapWiz_dumpresults". Removed
0.3 Use "data\mallvolumes.txt" to save historical volumes, and only update if older than 3 days, Improved recommendation algorithm, Switch to using Zlib variables.
0.4 Automised mall pricing, Customisable price update period, Auto outfit completion.
0.5 Parse zapgroups and untradeable zappable outfits from kolmafia data files.
0.6 Option to run without user confirmation. Removed wierd message when zapping to complete outfits.
0.7 Easy wand exploding, better reporting when zapping untradeables.
0.8 Fix typo preventing confirmautozap from working properly
0.9 Fix error that would request multiple zaps even if blowupwand was false. New zapwizard() function for easier importing.
Finally, thank you to Bale - I stole/learnt a lot from your awesome scripts
When called, ZapWizard determines the most profitable item for zapping. Pending your confirmation, it then acquires the item, zaps it, and places the transmogrified item into your mall store.
REQUIREMENTS
This script uses ZLib.ash
If you don't have it already you can get it from here: Zarqon's Useful Function Library
There's a few ZLib variables to play around with, shown here with their default values.
Change them from the Mafia CLI, like this:
Code:
zlib zapwizard_numberofrecommendations = 3
The variables are pretty self-explanatory, but I'll explain what each of them does anyway:
numberofrecommendations = 1
Can be increased up to 10 to show a greater number of recommendations, in order of profitability. ZapWizard will only offer to autozap its top recommendation.
volumechecking = true
minvolume = 700
This checks the amount sold of the most expensive group member over the last week, using data from http://kol.coldfront.net
The request to coldfront is only made after all other conditions for recommendation have been met.
If the amount sold over this period is less than minvolume then the group will not be recommended.
minmargin = .2
The minimum profit margin, set to 20% by default. If the margin is lower than this, then ZapWizard will not recommend it. To remove this limit, set to 0.
capitalthreshold = 10000
The maximum meat cost of the cheapest group member, set to 10k meat by default. If the cheapest item in a group is worth more than this amount, then ZapWizard will not recommend it. If you want to completely remove this limit, set to -1. You probably don't want to do that though.
autozap = true
If set to false then ZapWizard won't offer to autozap, and will only give recommendations.
confirmautozap = true
If set to false then zaps top recommendation without requiring user confirmation.
overheat = false
Set to true to stop ZapWizard aborting when your wand is warm.
blowupwand = false
If set to true then ZapWizard will keep zapping until your wand explodes, then automatically set this variable back to false.
This overrides your usual setting for overheat.
completeoutfits = true
If true, attempts to complete aftercore outfits - Hobopolis/SlimeTube/Cursed Pirate - before zapping for profit. Thanks to Zarqon/Sorguon for the help here

priceupdateperiod = 7
How many days to wait before rechecking item prices, by default only once every week.
Version History
0.1 Added version checking, Use ZLib verbosity settings, Improved wand heat checking, Added volume check, Removed option to ignore equipment, Removed tiny plastic commons
0.2 Script was saving a junk zlib variable - "ZapWiz_dumpresults". Removed
0.3 Use "data\mallvolumes.txt" to save historical volumes, and only update if older than 3 days, Improved recommendation algorithm, Switch to using Zlib variables.
0.4 Automised mall pricing, Customisable price update period, Auto outfit completion.
0.5 Parse zapgroups and untradeable zappable outfits from kolmafia data files.
0.6 Option to run without user confirmation. Removed wierd message when zapping to complete outfits.
0.7 Easy wand exploding, better reporting when zapping untradeables.
0.8 Fix typo preventing confirmautozap from working properly
0.9 Fix error that would request multiple zaps even if blowupwand was false. New zapwizard() function for easier importing.
Finally, thank you to Bale - I stole/learnt a lot from your awesome scripts

Attachments
Last edited: