I noticed some weird results in my login script that I finally tracked down. Winnowing things down to where my error was, the following code:
always returns false whether or not you've actually consumed a Drac & Tan. I finally realized why after a bit, it's because to_string returns the name as "Drac & Tan". This:
works properly, while this:
does not.
Code:
contains_text(visit_url("showconsumption.php"), to_string($item[drac & tan]))
Code:
contains_text(visit_url("showconsumption.php"), "Drac & Tan")
Code:
contains_text(visit_url("showconsumption.php"), "Drac & Tan")