Guild store available
Jump to navigation
Jump to search
Function Syntax
boolean guild_store_available()
This function returns true if the logged-in character has unlocked their guild store. Otherwise, it returns false.
Simple Example
This function will return true if it makes sense for your character to buy seltzers from the Knob Goblin Laboratory. If you are a spellcaster or a high level Accordion Thief and have unlocked your guild store, then you should be buying Magical Mystery Juice to restore your MP. If not, then seltzers are a good idea if and only if you have the outfit that allows you to access the Laboratory store.
boolean can_and_should_use_seltzer () {
if(guild_store_available()){
if ( my_primestat() == $stat[ mysticality ] )
return false;
if ( my_class() == $class[ accordion thief ] && my_level() >= 9 )
return false;
}
return have_outfit( "knob goblin elite guard uniform" );
}
See Also
Special
When not logged in, this function returns false.