Galaktik cures discounted: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle Created page with '{{ #vardefine:name|galaktik_cures_discounted}}{{ #vardefine:return_type|boolean}}{{ FunctionPage| name={{#var:name}}| function_category=Your Character| function1={{Function| na…' |
imported>Eliteofdelete No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 15: | 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. | ||
}} | }} | ||
[[Category:Your Character]] |
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.