I decided to help further by making you a GUI shopping system in which you can purchase bombs and arrows:

PHP Code:
function onActionServerSide(action) {
switch (action) {
case "DecRup":
player.rupees -= params[1];
break;
}
}
//#CLIENTSIDE
function onCreated() {
new GuiWindowCtrl("Bomb_Window") {
clientextent = "300,200";
profile = GuiBlueWindowProfile;
x = screenwidth/2-150;
y = screenheight/2-100;
visible = true;
text = "Get your bombs and arrows!";
canmove = true;
canresize = false;
canmaximize = false;
new GuiShowImgCtrl("Bomb_Img") {
x = 55;
y = 80;
width = 32;
height = 32;
this.image = "bomb.png";
}
new GuiShowImgCtrl("Bomb_Img2") {
x = 210;
y = 80;
width = 32;
height = 32;
this.image = "arrow.png";
}
new GuiMLTextCtrl("Bomb_Text") {
profile = GuiBlueMLTextProfile;
x = 30;
y = 35;
width = 430;
height = 50;
text = "<font size=28><font color=white><b>Bombs:</b></font></font>";
}
new GuiMLTextCtrl("Bomb_Text2") {
profile = GuiBlueMLTextProfile;
x = 10;
y = 130;
width = 430;
height = 50;
text = "<font size=13.5><font color=white><b>10 Bombs for 10 Gralats.</b></font></font>";
}
new GuiMLTextCtrl("Bomb_Text3") {
profile = GuiBlueMLTextProfile;
x = 170;
y = 35;
width = 430;
height = 50;
text = "<font size=28><font color=white><b>Arrows:</b></font></font>";
}
new GuiMLTextCtrl("Bomb_Text4") {
profile = GuiBlueMLTextProfile;
x = 160;
y = 130;
width = 430;
height = 50;
text = "<font size=13.5><font color=white><b>20 Arrows for 10 Gralats.</b></font></font>";
}
new GuiButtonCtrl("Bomb_Button1") {
profile = GuiBlueButtonProfile;
x = 20;
y = 155;
width = 100;
height = 30;
text = "Purchase";
}
new GuiButtonCtrl("Bomb_Button2") {
profile = GuiBlueButtonProfile;
x = 170;
y = 155;
width = 100;
height = 30;
text = "Purchase";
}
}
}
function Bomb_Button1.onAction() {
//Button "Purchase"
if (player.rupees >= 9) {
triggerserver("gui",this.name,"DecRup",10);
player.bombs += 10;
}else
player.chat = "Insufficient Funds";
}
function Bomb_Button2.onAction() {
//Button "Purchase"
if (player.rupees >= 9) {
triggerserver("gui",this.name,"DecRup",10);
player.darts += 20;
}else
player.chat = "Insufficient Funds";
}
I've also included a .txt file.