Difference between pages "Gnomads available" and "Knoll available"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
(Less copy/paste and more thought. O.O;;)
 
imported>Bale
(r9308)
 
Line 1: Line 1:
 
{{
 
{{
#vardefine:name|gnomads_available}}{{
+
#vardefine:name|knoll_available}}{{
 
#vardefine:return_type|boolean}}{{
 
#vardefine:return_type|boolean}}{{
  
Line 11: Line 11:
 
}}|
 
}}|
  
function_description=This function returns true if the logged-in character has has access to the Gnomish Gnomad Camp.|
+
function_description=This function returns true if the logged-in character has has access to the inside of Degrassi Knoll.|
  
 
code1={{CodeSample|
 
code1={{CodeSample|
 
title=Code Samples|
 
title=Code Samples|
description=This example will adventure in the Thugnderdome if you are able.|
+
description=This will purchase a detuned radio if you can.|
 
code=
 
code=
 
<syntaxhighlight>
 
<syntaxhighlight>
if(gnomads_available() && my_adventures() > 0) {
+
if(item_amount($item[detuned radio]) < 1 && knoll_available() && my_meat() >= 300)
   adventure(my_adventures() , $location[thugnderdome]);
+
   buy(1, $item[detuned radio]);
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 
}}|
 
}}|
  
see_also={{SeeAlso|knoll_available|canadia_available}}|
+
see_also={{SeeAlso|gnomads_available|canadia_available}}|
 
special=When not logged in, this function returns false.
 
special=When not logged in, this function returns false.
 
}}
 
}}
  
 
[[Category:Your Character]]
 
[[Category:Your Character]]

Latest revision as of 08:12, 19 May 2011

Function Syntax

boolean knoll_available()

This function returns true if the logged-in character has has access to the inside of Degrassi Knoll.

Code Samples

This will purchase a detuned radio if you can.

if(item_amount($item[detuned radio]) < 1 && knoll_available() && my_meat() >= 300)
   buy(1, $item[detuned radio]);

See Also

gnomads_available() | canadia_available()

Special

When not logged in, this function returns false.