User:Bumcheekcity

From Kolmafia
Jump to navigation Jump to search

Changing your Tattoo to a Random One

The below code is an ASH script. Save it as "breakfast.ash" and set it to run at breakfast using Mafia's breakfast settings.

matcher m = create_matcher("<input type=radio name=newsigil value=\"([a-zA-Z0-9]+)\">", visit_url("account_tattoos.php"));int i=0;string[int] zomg;while(find(m)){zomg[i]=group(m,1);i=i+1;}i = random(i);visit_url("account_tattoos.php?newsigil="+zomg[i]+"&pwd="+my_hash());print("Tattoo changed to "+zomg[i]+".gif");