Results 1 to 3 of 3

Thread: check standard restrictions out of run

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    906

    Default check standard restrictions out of run

    Is there a way in mafia to check if an item is available in standard, when you are not in a run?
    If you are in run, is_unrestricted() works... but once you are out of run, everything is unrestricted.

    Also,
    visit_url("standard.php?date=2017-01-02")
    seems to return a page with no items on it (same as standard.php with no arguments)

  2. #2

    Default

    Is there a way in mafia to check if an item is available in standard, when you are not in a run?
    If you are in run, is_unrestricted() works... but once you are out of run, everything is unrestricted.
    Originally Posted by ckb View Post
    There is not. It looks like your next statement means you were trying to check indirectly anyway...

    Also,
    visit_url("standard.php?date=2017-01-02")
    seems to return a page with no items on it (same as standard.php with no arguments)
    It needs to be GET instead of POST.
    Code:
    visit_url("standard.php?date=2017-01-02",false)
    will do that.

  3. #3
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    906

    Default

    It needs to be GET instead of POST.
    Originally Posted by lostcalpolydude View Post
    Thanks - that solves my immediate problem. I made a feature request because it loks like Mafia kind of already does this and it would likely save a bunch of server hits to not do a bunch of visit_url() calls.

Posting Permissions

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