Wrong section, but, you would need to do a triggeraction to the control-npc which adds or subracts money from the player:
NPC Code:
Give player 3 Gralats
if (something) {
triggeraction 0,0,serverGralat,#a,3;
}
Take away 3 Gralats from player
if (something) {
triggeraction 0,0,serverGralat,#a,-3;
}
Control-NPC:
if (actionserverGralat) {
with (getplayer(#p(0))) {
playerrupees+=strtofloat(#p(1));
}
}