Galaktik cures discounted: Difference between revisions
Jump to navigation
Jump to search
imported>Bale mNo edit summary |
imported>Eliteofdelete No edit summary |
||
Line 14: | Line 14: | ||
code1={{CodeSample| | |||
title=Code Samples| | |||
description=The example lets you know how much the tap currently costs for you.| | |||
code= | |||
<syntaxhighlight> | |||
int Nos; | |||
int Ton; | |||
if (galaktik_cures_discounted()) { | |||
Nos = 6; | |||
Ton = 12; | |||
} | |||
else { | |||
Nos = 10; | |||
Ton = 17; | |||
} | |||
print("The current price for Curative Nostrum is "+Nos+" meat per HP. Fizzy Invigorating Tonic is "+Ton+" meat per MP.", "blue"); | |||
</syntaxhighlight>| | |||
}}| | |||
special=When not logged in, this function returns false. | special=When not logged in, this function returns false. |
Latest revision as of 03:34, 14 January 2015
Function Syntax
boolean galaktik_cures_discounted()
This function returns true if the logged-in character has completed Doc Galaktik's Quest for Herbs this ascension. Otherwise, it returns false.
Code Samples
The example lets you know how much the tap currently costs for you.
int Nos;
int Ton;
if (galaktik_cures_discounted()) {
Nos = 6;
Ton = 12;
}
else {
Nos = 10;
Ton = 17;
}
print("The current price for Curative Nostrum is "+Nos+" meat per HP. Fizzy Invigorating Tonic is "+Ton+" meat per MP.", "blue");
Special
When not logged in, this function returns false.