My closet meat

From Kolmafia
Revision as of 20:47, 23 May 2009 by 24.141.158.0 (talk) (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);...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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());