Results 1 to 5 of 5

Thread: Choice adventures do not work reliable

  1. #1
    Junior Member
    Join Date
    Oct 2017
    Posts
    22

    Default Choice adventures do not work reliable

    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?

  2. #2

    Default

    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.

  3. #3
    Junior Member
    Join Date
    Oct 2017
    Posts
    22

    Default

    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.

  4. #4

    Default

    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.

  5. #5
    Junior Member
    Join Date
    Oct 2017
    Posts
    22

    Default

    Thank you so much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •