Choice adventures do not work reliable

Timbatim

New member
Hey guys,

together with a clannie, we put together our own script for SCCS-runs, but it is not reliable.
In different versions, we have those as example (n is an int between 1 and 11, depending on the choice we want):

Code:
visit_url("choice.php?whichchoice=1089&option=11&pwd");
visit_url("choice.php?whichchoice=1089&option=" + n);

When one of those lines is activated in the complete script, nothing happens.


When one of those lines is activated in a seperate test-script
Code:
void main() {visit_url("choice.php?whichchoice=1089&option=11&pwd");}
it works just fine, we tried pauses before and after, but to no success.

Why doesn't it work and how can we fix it?
 

lostcalpolydude

Developer
Staff member
Visiting choice.php should NEVER be done without first visiting another URL to enter the choice. The difference you are seeing is most likely from loading the choice in the relay browser or something first, then running the script to do something in the choice.

If you log in and immediately load choice.php, KoL will reject it every time. Unless you were forced into a choice to start with because you logged out while in a choice that KoL doesn't let you just walk away from.
 

Timbatim

New member
Thank you for your answer.

What should we do instead?
council(); before every choice or visiting the url twice each time?

I have no idea how to get to the choice without using visit_url.
 

lostcalpolydude

Developer
Staff member
Looks like visit_url( "council.php" ) is the way to go there. Using council() does the same thing, except it also shows the council text in the CLI, and you probably don't care about that.
 
Top