if u dont have it here it is as a freebie but i know people are just gonna modify it and get it down to .2 lines of code hehe
if(playerchats&&strequals(#c,buy beer)&&playerrupees>=5){
playerrupees-=5;
message YOU WERE HEALED!;
//actually doesnt heal them MUAHAHAHAHA
}