Difference between revisions of "Gnomads available"
Jump to navigation
Jump to search
imported>Bale (copied code example from old in_moxie_sign() page) |
imported>Bale (Less copy/paste and more thought. O.O;;) |
||
Line 18: | Line 18: | ||
code= | code= | ||
<syntaxhighlight> | <syntaxhighlight> | ||
− | if( | + | if(gnomads_available() && my_adventures() > 0) { |
adventure(my_adventures() , $location[thugnderdome]); | adventure(my_adventures() , $location[thugnderdome]); | ||
} | } |
Latest revision as of 10:15, 19 May 2011
Function Syntax
boolean gnomads_available()
This function returns true if the logged-in character has has access to the Gnomish Gnomad Camp.
Code Samples
This example will adventure in the Thugnderdome if you are able.
if(gnomads_available() && my_adventures() > 0) {
adventure(my_adventures() , $location[thugnderdome]);
}
See Also
Special
When not logged in, this function returns false.