White citadel available: Difference between revisions
Jump to navigation
Jump to search
imported>Heeheehee Slight modification of code. |
imported>Heeheehee m Description fail. o.O |
||
Line 17: | Line 17: | ||
code1={{CodeSample| | code1={{CodeSample| | ||
title=Code Samples| | title=Code Samples| | ||
description=If the character can access the | description=If the character can access the White Citadel, this code will buy Cherry Cloaca Colas to restore MP to max.| | ||
code= | code= | ||
<syntaxhighlight> | <syntaxhighlight> |
Revision as of 07:09, 10 March 2010
Function Syntax
boolean white_citadel_available()
This function returns true if the logged-in character has completed the White Citadel Quest and unlocked The White Citadel. Otherwise, it returns false.
Code Samples
If the character can access the White Citadel, this code will buy Cherry Cloaca Colas to restore MP to max.
if(white_citadel_available()) {
use((my_maxmp()-my_mp())/8 , $item[Cherry Cloaca Cola]);
}
See Also
Special
When not logged in, this function returns false.