Black market available: Difference between revisions
Jump to navigation
Jump to search
imported>Heeheehee m Added a floor() just in case. |
imported>Bale mNo edit summary |
||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 28: | Line 27: | ||
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:40, 21 May 2010
Function Syntax
boolean black_market_available()
This function returns true if the logged-in character has unlocked the Black Market. Otherwise, it returns false.
Code Samples
If the character can access the Black Market, this code will buy black cherry sodas to restore MP to max.
if(black_market_available()) {
use(floor((my_maxmp() - my_mp()) / 10) , $item[black cherry soda]);
}
See Also
Special
When not logged in, this function returns false.