Banana Lord
Member
I made those changes, and did as you suggested and pasted the macro sections into a new macro to check their syntax, but it still seems to be failing. Same error, same result.
buffer mac; // macro in progress
string macro(string mac) // ASH function for submitting a macro
{
return visit_url("fight.php?action=macro¯otext="+url_encode(mac));
}
// Stasis with scepter if using hobo monkey -- doesn't need to be called because it's inserted already in the correct place
if(my_familiar() == $familiar[hobo monkey])
mac.append('while !match "climbs up and sits" && !pastround 24; use 2678; endwhile;');
// Use summon hobo if you can
if(have_equipped($item[hodgman's porkpie hat]) && have_equipped($item[hodgman's lobsterskin pants]) && have_equipped($item[hodgman's bow tie]))
mac.append(" if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; while !pastround 25; attack; endwhile; ");
// finally, submit the macro
macro(mac);
while !match "climbs up and sits" && !pastround 24; use 2678; endwhile;
if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; while !pastround 25; attack; endwhile;
void main( int rnd, string opp, string text )
{
buffer mac; // macro in progress
string macro(string mac) // ASH function for submitting a macro
{
print( mac );
print( "" );
print( url_encode(mac) );
return visit_url("fight.php?action=macro¯otext="+url_encode(mac));
}
// Stasis with scepter if using hobo monkey -- doesn't need to be called because it's inserted already in the correct place
if(my_familiar() == $familiar[hobo monkey])
mac.append('while !match "climbs up and sits" && !pastround 24; use 2678; endwhile;');
// Use summon hobo if you can
if(have_equipped($item[hodgman's porkpie hat]) && have_equipped($item[hodgman's lobsterskin pants]) && have_equipped($item[hodgman's bow tie]))
mac.append(" if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; while !pastround 25; attack; endwhile; ");
// finally, submit the macro
macro(mac);
}
Visit to Beanstalk: Giant's Castle in progress...
[13026] Giant's Castle
Encounter: Furry Giant
Strategy: D:\dloads\KoLMafia\ccs\test.ccs [default]
Round 0: slyz wins initiative!
while !match "climbs up and sits" && !pastround 24; use 2678; endwhile; if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; while !pastround 25; attack; endwhile;
while+%21match+%22climbs+up+and+sits%22+%26%26+%21pastround+24%3B+use+2678%3B+endwhile%3B+if+hasskill+7052%3B+skill+7052%3B+endif%3B+if+hasskill+7047%3B+skill+7047%3B+endif%3B+if+hasskill+7050%3B+skill+7050%3B+endif%3B+while+%21pastround+25%3B+attack%3B+endwhile%3B+
Round 1: slyz executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
while !match "climbs up and sits" && !pastround 24; use 2678; endwhile; if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; while !pastround 25; attack; endwhile;
while+%21match+%22climbs+up+and+sits%22+%26%26+%21pastround+24%3B+use+2678%3B+endwhile%3B+if+hasskill+7052%3B+skill+7052%3B+endif%3B+if+hasskill+7047%3B+skill+7047%3B+endif%3B+if+hasskill+7050%3B+skill+7050%3B+endif%3B+while+%21pastround+25%3B+attack%3B+endwhile%3B+
Round 2: slyz executes a macro!
KoLmafia thinks it is round 3 but KoL thinks it is round 1
while !match "climbs up and sits" && !pastround 24; use 2678; endwhile; if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; while !pastround 25; attack; endwhile;
while+%21match+%22climbs+up+and+sits%22+%26%26+%21pastround+24%3B+use+2678%3B+endwhile%3B+if+hasskill+7052%3B+skill+7052%3B+endif%3B+if+hasskill+7047%3B+skill+7047%3B+endif%3B+if+hasskill+7050%3B+skill+7050%3B+endif%3B+while+%21pastround+25%3B+attack%3B+endwhile%3B+
Round 3: slyz executes a macro!
[COLOR="#ff0000"]KoLmafia declares world peace.[/COLOR]
KoLmafia thinks it is round 4 but KoL thinks it is round 1
[COLOR="#ff0000"]You're on your own, partner.
[U]Click here to continue in the relay browser.[/U][/COLOR]
visit_url("fight.php?action=macro¯otext="+url_encode(mac));
visit_url("fight.php?action=macro¯otext="+url_encode(mac), true, true);
Invalid macro command encountered:
"+while+%21match+%27climbs+up+and+sits%27+%26%26+%21pastround+24%3B+use+spectre+scepter%3B+endwhile%3B++if+hasskill+summon+hobo+underling%3B+skill+summon+hobo+underling%3B+endif%3B+if+hasskill+ask+the+hobo+for+a+drink%3B+skill+ask+the+hobo+for+a+drink%3B+endif%3B+if+hasskill+ask+the+hobo+to+tell+you+a+joke%3B+skill+ask+the+hobo+to+tell+you+a+joke%3B+endif%3B+while+%21pastround+25%3B+attack%3B+endwhile%3B+"
[19444] Giant's Castle
Encounter: Furry Giant
Strategy: /Users/andrewcurtisblack/Library/Application Support/KoLmafia/ccs/meatfarm.ccs [default]
Round 0: banana lord wins initiative!
You're on your own, partner.
Click here to continue in the relay browser.
while !match "climbs up and sits" && !pastround 24; use 2678; endwhile; if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; while !pastround 25; attack; endwhile;
while+%21match+%22climbs+up+and+sits%22+%26%26+%21pastround+24%3B+use+2678%3B+endwhile%3B+if+hasskill+7052%3B+skill+7052%3B+endif%3B+if+hasskill+7047%3B+skill+7047%3B+endif%3B+if+hasskill+7050%3B+skill+7050%3B+endif%3B+while+%21pastround+25%3B+attack%3B+endwhile%3B+
Round 1: banana lord executes a macro!
Round 1: banana lord uses the spectre scepter!
Round 2: furry giant drops 3 attack power.
Round 2: furry giant drops 1 defense.
Round 2: Mr. Joe climbs up and sits on your shoulder, and hands you some Meat. Huh, where did he find that?
You gain 57 Meat.
Round 2: banana lord casts SUMMON HOBO UNDERLING!
Round 3: banana lord casts ASK THE HOBO FOR A DRINK!
You acquire an item: white lightning
Round 4: banana lord casts ASK THE HOBO TO TELL YOU A JOKE!
Round 5: banana lord attacks!
Round 6: furry giant takes 717 damage.
Round 6: banana lord wins the fight!
After Battle: Mr. Joe sits on your fallen opponent's body, blows a smoke ring, and winks at you.
You gain 874 Meat
You gain 5 Strengthliness
You gain 28 Wizardliness
You gain 8 Chutzpah
void main( int rnd, string opp, string text )
{
buffer mac; // macro in progress
string macro(string mac) // ASH function for submitting a macro
{
print( mac );
print( "" );
print( url_encode(mac) );
return visit_url("fight.php?action=macro¯otext="+url_encode(mac), true, true);
}
// Make sure you're fighting a giant
mac.append(' if !monstername *giant; abort; endif ');
// Stasis with scepter if using hobo monkey - Pickpocket safety-netted in case of meat steal on the first round
if(my_familiar() == $familiar[hobo monkey])
mac.append(' if !match "climbs up and sits"; pickpocket; endif; while !match "climbs up and sits" && !pastround 24; use 2678; endwhile; ');
// Use summon hobo if you can
if(have_equipped($item[hodgman's porkpie hat]) && have_equipped($item[hodgman's lobsterskin pants]) && have_equipped($item[hodgman's bow tie]))
mac.append(" if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; ");
// Finish the fight
mac.append(" while !pastround 25; attack; endwhile; ");
// finally, submit the macro
macro(mac);
}
if (!last_monster().to_string().contains_text(" Giant")) abort("It's not a giant!");
void main( int rnd, string opp, string text )
{
buffer mac; // macro in progress
string macro(string mac) // ASH function for submitting a macro
{
print( mac );
print( "" );
print( url_encode(mac) );
return visit_url("fight.php?action=macro¯otext="+url_encode(mac), true, true);
}
// Make sure you're fighting a giant
if (!last_monster().to_string().contains_text(" Giant"))
abort("It's not a giant!");
// Stasis with scepter if using hobo monkey - Pickpocket safety-netted in case of meat steal on the first round
if(my_familiar() == $familiar[hobo monkey])
mac.append(' if !match "climbs up and sits"; pickpocket; endif; while !match "climbs up and sits" && !pastround 24; use 2678; endwhile; ');
// Use summon hobo if you can
if(have_equipped($item[hodgman's porkpie hat]) && have_equipped($item[hodgman's lobsterskin pants]) && have_equipped($item[hodgman's bow tie]))
mac.append(" if hasskill 7052; skill 7052; endif; if hasskill 7047; skill 7047; endif; if hasskill 7050; skill 7050; endif; ");
// Finish the fight
mac.append(" while !pastround 25; attack; endwhile; ");
// finally, submit the macro
macro(mac);
}