First off sorry for all of these questions I've been asking recently just trying to improve upon myself and clean up some of my scripts I have.
I've recently found a work around thanks to posting about a different thing I wanted to do but I decided to post this here just to get an answer.
I have a script to attack a slime 1 time to get the coated in slime effect and then use a tattered scrap of paper to leave. This doesnt take an adventure so I used visiturl() but when I got the engulfed NC it wouldn't know what to do and it would quit working.. I asked someone and they gave me the following code to plug in the following while statement.
slimepage = visit_url("adventure.php?snarfblat=203");
while(contains_text(slimePage,"choice.php" ))
{
int numStart = index_of(slimePage, "whichchoice value=")+18;
int numEnd = index_of(slimepage, "><input",numStart);
string adventureNum = substring(slimepage ,numStart,numEnd);
slimepage = visit_url(" choice.php?pwd& whichchoice=" +
adventureNum + "&option=3");
slimePage = visit_url("adventure.php?snarfblat=203");
}
so that if I got the choice adventure it would plug in the decision but it doesnt seem to work.
I've recently found a work around thanks to posting about a different thing I wanted to do but I decided to post this here just to get an answer.
I have a script to attack a slime 1 time to get the coated in slime effect and then use a tattered scrap of paper to leave. This doesnt take an adventure so I used visiturl() but when I got the engulfed NC it wouldn't know what to do and it would quit working.. I asked someone and they gave me the following code to plug in the following while statement.
slimepage = visit_url("adventure.php?snarfblat=203");
while(contains_text(slimePage,"choice.php" ))
{
int numStart = index_of(slimePage, "whichchoice value=")+18;
int numEnd = index_of(slimepage, "><input",numStart);
string adventureNum = substring(slimepage ,numStart,numEnd);
slimepage = visit_url(" choice.php?pwd& whichchoice=" +
adventureNum + "&option=3");
slimePage = visit_url("adventure.php?snarfblat=203");
}
so that if I got the choice adventure it would plug in the decision but it doesnt seem to work.