Deathless Assassin
Member
Code:
if( !is_online( "faxbot" ) ) abort( "Faxbot is dead!" );
chat_private ("faxbot", "chieftain");
wait (40);
if (item_amount($item[photocopied monster]) == 0)
cli_execute ("fax get");
string chief = "C. H. U. M. chieftain";
if (item_amount($item[photocopied monster]) > 0 && contains_text(chief,visit_url("desc_item.php?whichitem=835898159")))
cli_execute ("try; use photocopied monster");
else
abort ("Fax doesn't have a chieftain");
I want mafia to fight the chieftain (that comes in via faxbot) if it's there, and abort if it's not. When I tried it, a chieftain was successfully faxed in, my script just wasn't able to figure that out, and I got the abort message. Edit: experimentally I tried something else (a clod hopper), and it also was not properly identified.
Also, how do I get printed message to also display in the progress bar, not just the CLI?