- Joined
- Jan 19, 2009
- Messages
- 612
- Reaction score
- 96
----------------------------
Maple Coin Item Exchanger
----------------------------
+1 Thanks if you like it
Maple Coin Item Exchanger
----------------------------
Code:
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hey there #b#hh##k i am the #rMaple Coin Item Exchanger#k.\r\n#L1# 15 #rMaple Coins#k for #b1 Billion Mesos#k!#l \r\n#L2# 1 #rMaple Coin#k for #b60% Glove Attack Scroll#k#l \r\n#L3# 5 #rMaple Coins#k for #bRat Mouth#k#l \r\n#L4# 100 #rMaple Coins#k for #bWizet Hat#k \r\n\#L5# 2 #rMaple Coins#k for #bBalenced Furry#k#l \r\n\#L6# 6 #rMaple Coins#k for #bOstrich Mount#k#l ");
} else if (status == 1) {
if (selection == 1) {
if (cm.haveItem(4001129, 15)) {
cm.gainMeso(+1000000000);
cm.gainItem(4001129, -15);
cm.sendOk("You have gained #b1 Billion Mesos#k.");
} else {
cm.sendOk("Sorry #b#hh##k you dont have 15 #rMaple Coins#k.");
}
cm.dispose();
} else if (selection == 2) {
if (cm.haveItem(4001129, 1)) {
cm.gainItem(2040804, 1);
cm.gainItem(4001129, -1);
cm.sendOk("You have gained #b60% Scroll for Gloves for ATT#k.");
}
cm.dispose();
} else if (selection == 3) {
if (cm.haveItem(4001129, 5)) {
cm.gainItem(1012088, 1);
cm.gainItem(4001129, -5);
cm.sendOk("You have gained your #bRat Mouth#k.");
} else {
cm.sendOk("You have gained your #bRat Mouth#k.");
}
cm.dispose();
} else if (selection == 4) {
if(cm.haveItem(4001129, 100)) {
cm.gainItem(1002140, 1);
cm.gainItem(4001129, -100);
cm.sendOk("You have gained your #bWizet Hat#k.");
} else {
cm.sendOk("You have gained your #bWizet Hat#k.");
}
cm.dispose();
} else if (selection == 5) {
if(cm.haveItem(4001129, 2)) {
cm.gainItem(2070018, 500);
cm.gainItem(4001129, -2);
cm.sendOk("You have gained your #bBalanced Furys#k.");
} else {
cm.sendOk("You have gained your #bBalanced Furys#k.");
}
cm.dispose();
} else if (selection == 6) {
if(cm.haveItem(4001129, 6)) {
cm.gainItem(1902009, 1);
cm.gainItem(1912004 , 1);
cm.gainItem(4001129, -6);
cm.sendOk("You have gained your #bOstrich Mount Kit#k.");
} else {
cm.sendOk("You have gained your #bOstrich Mount Kit#k.");
}
cm.dispose();
}
else{
cm.sendOk("See you later #hh#.");
}
}
}
}

+1 Thanks if you like it
