Results 1 to 6 of 6

Thread: How to script getting a semi-rare?

  1. #1

    Default How to script getting a semi-rare?

    Hi, whenever I try something like

    Code:
    adventure( 2, $location[The Sleazy Back Alley] );
    in my script, it exits with the words:

    Code:
    "Fortune Cookie counter expired. Last semirare found 178 turns ago (on turn 3482) in The Sleazy Back Alley".
    How do I get a semi-rare without exiting my script?

  2. #2
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    996

    Default

    while (!adventure(1,$location[The Sleazy Back Alley])) {
    print("Skipping counter warning and adventuring once.");
    }

    I think that would do it, but I haven't tried it.

    On the 1st attempt, adventure will return false and print the message (when it encounters the counter warning) and on the 2nd attempt it should adventure once at the location and complete the while loop (ie return true).

  3. #3
    Developer
    Join Date
    Apr 2006
    Posts
    941

    Default

    Usually you'd run a counter script like CounterChecker.

  4. #4
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    923

    Default

    Maybe this works:
    set dontStopForCounter=true

    (full disclosure, I am not positive what the property "dontStopForCounter" does, but I am guessing it sets Mafia to NOT stop for counters)

  5. #5

    Default

    This worked! Thanks.

  6. #6
    Developer
    Join Date
    Apr 2010
    Posts
    5,134

    Default

    Maybe this works:
    set dontStopForCounter=true

    (full disclosure, I am not positive what the property "dontStopForCounter" does, but I am guessing it sets Mafia to NOT stop for counters)
    Originally Posted by ckb View Post
    Our code obfuscation skills are poor.

Posting Permissions

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