Difference between revisions of "Faxbot"

From Kolmafia
Jump to navigation Jump to search
imported>Vorzer
(Created page with "{{ #vardefine:name|faxbot}}{{ #vardefine:return_type|boolean}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| return_type={{#var:return_type}}...")
 
imported>Bale
(add navigation)
Line 25: Line 25:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
}}|
 
}}|
 +
see_also={{SeeAlso|can_faxbot|is_online}}|
 
special=The chat must be open for this function to successfully work, just as for other mafia fax interfaces.
 
special=The chat must be open for this function to successfully work, just as for other mafia fax interfaces.
 
}}
 
}}
 +
 +
[[Category:Miscellaneous Functions]]

Revision as of 07:37, 11 November 2014

Function Syntax

boolean faxbot(monster m )

  • m is the monster to request a fax of.

Requests the specified monster from FaxBot, returning true if the fax is successful and false if it fails. As of revision 14139, it also checks FaustBot and Easyfax and uses the first one that's online and has the monster.

Code Samples

This will acquire a copy of a scary pirate if you're able to get a fax.

if ((get_property("_photocopyUsed")=="false")&&(item_amount($item[photocopied monster])==0)) {
 faxbot($monster[scary pirate]);
}

See Also

can_faxbot() | is_online()

Special

The chat must be open for this function to successfully work, just as for other mafia fax interfaces.