Why are you giving him a bunch of confusing methods, the kid's trying to learn how to script, not asking the best way to script his system.
Try this, Gulthex:
PHP Code:
triggeraction(x + 0.5, y + 0.5, "buy", null);
Also, here you are mixing GS1 with GS2 again... do this:
PHP Code:
function onCreated() {
setshape(1, 32, 32);
}
function onActionbuy() {
if (player.rupees >= 100) {
addweapon("Event/Headbob");
player.rupees -= 100;
}
}