StDoodle
Minion
My frustration over this has certainly come to a middle. Suppose you have this KoL combat macro:
How would one submit this from a fight.php override? I don't care which version of visit_url() is used, I don't care what encoding / decoding functions are used (built-in or custom), I just want to use that macro in a script*. I will pay 1 million meat to the first person to offer a solution. Note: solutions that involve a patch to KoLmafia's source are considered to be submitted when the patch is incorporated into KoLmafia according to the SVN log. To anyone interested, I have found a few ways that appear to work, but actually ignore the second macro predicate following any "&&"; so I'll be checking.
Additional notes: while I can't imagine why it would matter, it must be possible to have the macro text saved as a string or buffer. Again, can't see that it should happen, but any solution which breaks upon using a variable in visit_url() to hold all or part of the submitted url will not be considered complete.
Thanks, and good luck.
*Well, not actually that macro, but it's a very useful test-case.
P.S. Special thanks to zarqon for the "standard" of using mu (μ) as the meat-currency symbol.
Code:
abort hppercentbelow 20
if hasskill entangling noodles
skill entangling noodles
endif
while mppercentbelow 99 && !pastround 10
use seal tooth
endwhile
while !pastround 15 && !hppercentbelow 60
use spices
endwhile
skill shieldbutt
repeat
Additional notes: while I can't imagine why it would matter, it must be possible to have the macro text saved as a string or buffer. Again, can't see that it should happen, but any solution which breaks upon using a variable in visit_url() to hold all or part of the submitted url will not be considered complete.
Thanks, and good luck.
*Well, not actually that macro, but it's a very useful test-case.
P.S. Special thanks to zarqon for the "standard" of using mu (μ) as the meat-currency symbol.
Last edited: