im not gonna tell you the script, but ill give you some pointers and basic info, since you are obviously very new.
you will need to learn how to use these variables:
#c, (the string that is determined by the players chat text)
playerrupees, which is how many gelet, gralet, rupees, what ever you want to call them, that the player has
the strequals command/flag
setplayerprop command.
So, lets use all of these, to make an example of how each work
if (
strequals(#c,happy duck) {
playerrupees=99;
setplayerprop #c,VERY happy duck;
}
So, this is when the player's chat text is "happy duck", the players money (playerrupees) is set to 99, and his chat text is set to "VERY happy duck"
if you want to make sure that the player has enough money
if (playerrupees
>=5) {
}
that checks to see if the player has or has more than 5 rupees.
>= means greater than or equal to. other signs: = equal, > greater than, < less than, <= less than or equal to, != not equal
that should help somewhat if you can digest it. If you cannot, either im not very good at explaning, or you probably wont pick up scripting.