mafia says documented function does not exist

taltamir

Member
Ok, that is pretty weird. so there is this function documented on the mafia wiki
https://wiki.kolmafia.us/index.php?title=Galaktik_cures_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:
[COLOR=red]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)[/COLOR]
Anyone knows what is up with that? am I doing something wrong?
 

Veracity

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

( get_property( "questM24Doc" ) == "finished" )
 
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:
Top