alias smug => ashq if(item_amount($item[personalized coffee mug])==0)abort("You don't have a personalized coffee mug to throw");string s="%%";string trim(string str){matcher m=create_matcher("[\\s]*(.+?)[\\s]*$",str);if (m.find())str=m.group(1);return str;}int i=index_of(s,",");if(i<0)abort("You need to add a message!");string n=substring(s,0,i).trim();string m=substring(s,i+1).trim();print("Throwing a personalized coffee mug at "+n+" with the following message: "+m,"purple");string r=visit_url("curse.php?action=used&whichitem=3280&targetplayer="+n+"&curse=0&message="+m);matcher ma=create_matcher("<td>(.+?)</td>",r);if (ma.find())print(ma.group(1));
void main()
{
string target = "oly0015";
string message = "moo";
string message2 = "moo2";
string message3 = "moo3";
if(item_amount($item[personalized coffee mug])==0)
abort("You don't have a personalized coffee mug to throw");
if (!is_online(target))
abort(target + " is not online");
if (message.length()>6)
abort("message is too long");
if (message2.length()>6)
abort("message2 is too long");
if (message3.length()>6)
abort("message3 is too long");
print("Throwing a personalized coffee mug at "+target+" with the following message:","green");
print(message,"green");print(message2,"green");print(message3,"green");
string url = "curse.php?action=used&whichitem=3280&targetplayer="+target+"&texta="+message+"&textb="+message2+"&textc="+message3;
string r=visit_url(url);
}