Results 1 to 4 of 4

Thread: mafia says documented function does not exist

  1. #1
    Senior Member
    Join Date
    Oct 2017
    Posts
    523

    Default mafia says documented function does not exist

    Ok, that is pretty weird. so there is this function documented on the mafia wiki
    https://wiki.kolmafia.us/index.php?t...res_discounted

    when I try to use it in a script as
    Code:
    if (galaktik_cures_discounted())
    {
        meatpermp = min(6,meatpermp);
    }
    I get the error
    Code:
    Function 'galaktik_cures_discounted( )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (tt_test.ash, line 48)
    Anyone knows what is up with that? am I doing something wrong?

  2. #2
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    13,167

    Default

    I guess it was removed. Probably when we added quest tracking, since the following is the equivalent:

    ( get_property( "questM24Doc" ) == "finished" )

  3. #3
    Senior Member
    Join Date
    Jun 2016
    Posts
    405

    Default

    Since I can't find it using the ashref cli command, and based on the example on that wiki page (which mentioned Curative Nostrum), I would guess that the function has been retired after the Doc Galaktik revamp in 2015.
    I would recommend using npc_price($item[Doc Galaktik's Invigorating Tonic]) instead, or you could manually check the value of the questM24Doc property.
    Last edited by the dictator; 03-05-2020 at 10:17 PM. Reason: Right, the other mp item

  4. #4
    Senior Member
    Join Date
    Oct 2017
    Posts
    523

    Default

    Thank you for clarifying.

Posting Permissions

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