Difference between revisions of "Can faxbot"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(r14605)
 
 
Line 13: Line 13:
 
}}|
 
}}|
  
function_description=Checks to see if {{Pspan|mob}} can be faxed by any of the faxbots known to KoLmafia which are currently online. If a given faxbot is not currently online, then their faxable monsters are not checked.|
+
function_description=Checks to see if {{Pspan|mob}} can be faxed by any of the faxbots known to KoLmafia. This does not check if the faxbot(s) are online.<ref>https://sourceforge.net/p/kolmafia/code/20614/tree/src/net/sourceforge/kolmafia/textui/RuntimeLibrary.java#l4753</ref>|
  
 
code1={{CodeSample|
 
code1={{CodeSample|
Line 26: Line 26:
 
see_also={{SeeAlso|faxbot|is_online}}|
 
see_also={{SeeAlso|faxbot|is_online}}|
 
}}
 
}}
 +
==References==
 +
<references/>
  
 
[[Category:Miscellaneous Functions]]
 
[[Category:Miscellaneous Functions]]

Latest revision as of 23:53, 24 January 2021

Function Syntax

boolean can_faxbot(monster mob )

  • mob is the monster for which to check.

Checks to see if mob can be faxed by any of the faxbots known to KoLmafia. This does not check if the faxbot(s) are online.[1]

Code Samples

This will acquire a copy of a scary pirate if you can get one.

if( get_property("_photocopyUsed")=="false" && can_faxbot($monster[scary pirate]) )
 faxbot($monster[scary pirate]);

See Also

faxbot() | is_online()


References