Faxbot

From Kolmafia
Revision as of 16:27, 29 June 2014 by 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}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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]);
}

Special

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