Difference between revisions of "White citadel available"

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
(Slight modification of code.)
imported>Bale
m
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Your Character|
 
  
 
function1={{Function|
 
function1={{Function|
Line 17: Line 16:
 
code1={{CodeSample|
 
code1={{CodeSample|
 
title=Code Samples|
 
title=Code Samples|
description=If the character can access the Black Market, this code will buy black cherry sodas to restore MP to max.|
+
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>
Line 29: Line 28:
 
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 21:41, 21 May 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

black_market_available() | guild_store_available() | hippy_store_available()

Special

When not logged in, this function returns false.