NPC Code:
if (playerchats) {
if (strequals(#c,buy beer))
if (!visible) {
if (playerrupees>=1) {
playerrupees-=1;
showlocal;
}
else say2 You don't have enough money!;
}
else say2 You already have a beer;
}
}
if (playertouchsme) {
playerhearts+=0.5;
hidelocal;
}