My closet meat: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
New page: int my_closet_meat() { string closet = visit_url('closet.php'); string closetmeat = substring(closet, index_of(closet,"contains "), index_of(closet," meat")); return to_int(closetmeat);...
 
imported>Grotfang
No edit summary
Line 1: Line 1:
int my_closet_meat() {
<code>
  int my_closet_meat() {
string closet = visit_url('closet.php');
string closet = visit_url('closet.php');
string closetmeat = substring(closet, index_of(closet,"contains "), index_of(closet," meat"));
string closetmeat = substring(closet, index_of(closet,"contains "), index_of(closet," meat"));
return to_int(closetmeat);
return to_int(closetmeat);
}
  }
  print("my_meat --> " + my_meat());
  print("my_closet_meat --> " + my_closet_meat());
</code>


print("my_meat --> " + my_meat());
[[Category:Your Character | My Closet Meat()]]
print("my_closet_meat --> " + my_closet_meat());
[[Category:Ash Functions | My Closet Meat()]]

Revision as of 15:18, 22 February 2010

 int my_closet_meat() {

string closet = visit_url('closet.php'); string closetmeat = substring(closet, index_of(closet,"contains "), index_of(closet," meat")); return to_int(closetmeat);

 }
 print("my_meat --> " + my_meat());
 print("my_closet_meat --> " + my_closet_meat());