I'm trying to write a script to automate five witchess piece fights per day, but I'm having trouble making it work. First, some info about the choice adventures:
witchess set from campground:
campground.php?action=witchess
Witchess set:
choice.php?whichchoice=1181&option=1 Examine the shrink ray (fight witchess pieces)
choice.php?whichchoice=1181&option=2 Play Witchess (coming soon)
choice.php?whichchoice=1181&option=3 Flip through the book of puzzles
choice.php?whichchoice=1181&option=4 Leave
Play against the Witchess Pieces:
choice.php?whichchoice=1182&option=1&piece=1935 Pawn
choice.php?whichchoice=1182&option=1&piece=1936 Knight
choice.php?whichchoice=1182&option=1&piece=1942 Bishop
choice.php?whichchoice=1182&option=1&piece=1938 Rook
choice.php?whichchoice=1182&option=1&piece=1937 Ox
choice.php?whichchoice=1182&option=1&piece=1940 ing
choice.php?whichchoice=1182&option=1&piece=1941 Witch
choice.php?whichchoice=1182&option=1&piece=1939 Queen
choice.php?whichchoice=1182&option=2 Back to the Witchess Set
The options are actually arranged like "choice.php?option=1&pwd&whichchoice=1182&piece=1936", but I can't tell if that ordering actually matters.
My attempted script follows:
Code:
if(get_property("_witchess")=="") {
set_property("_witchess",0);
}
while(get_property("_witchess")<1) {
visit_url("campground.php?action=witchess");
visit_url("choice.php?whichchoice=1181&option=1");
visit_url("choice.php?option=1&pwd&whichchoice=1182&piece=1936");
wait(2);
visit_url("choice.php?whichchoice=1182&option=2");
visit_url("choice.php?whichchoice=1181&option=4");
set_property("_witchess",to_int(get_property("_witchess"))+1);
}
Its output:
Code:
Encounter: Play against the Witchess Pieces
Encounter: Play against the Witchess Pieces
Encounter: Play against the Witchess Pieces
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
Encounter: Witchess Set
Encounter: Witchess Set
Encounter: Play against the Witchess Pieces
It seems to get to the picking a piece page, but not interact with that page properly to actually initiate a fight. The number of available witchess piece fights never changes.