NoobieGuy Moderator
Posts : 54 Join date : 2010-06-24 Age : 28 Location : California
| Subject: Golden Maple leaf system Mon Jun 28, 2010 3:46 pm | |
| Ok this system trades 1b for a golden leaf and 100m for a maple leaf. - Code:
-
var status = 0;
function start() { status = -1; action(1, 0, 0); }
function action(mode, type, selection) { if (mode == -1) { cm.dispose(); } else { if (status >= 0 && mode == 0) { cm.dispose(); return; } if (mode == 1) status++; else status--; if(status == 0) { cm.sendSimple("Hello, I am the #v4000313# and #v4001126# exchanger." +"#k\r\n#L1#Trade 1 Billion Mesos For A #v4000313#" +"#k\r\n#L2#Trade A #v4000313# For 1 Billion Mesos" +"#k\r\n#L3#Trade 100 Million Mesos For A #v4001126#" +"#k\r\n#L4#Trade A #v4001126# For 100 Million Mesos"); } else if (selection == 1) { if(cm.getMeso() >= 1000000000){ cm.gainItem(4000313, 1); cm.gainMeso(-1000000000); cm.sendOk("Thanks, here is your #v4000313#."); } else { cm.sendOk("You don't have enough mesos!"); } } else if (selection == 2) { if(cm.haveItem(4000313, 1)) { cm.gainItem(4000313, -1); cm.gainMeso(1000000000); cm.sendOk("Thanks, here are your mesos."); } else { cm.sendOk("You don't have a #v4000313#!"); } } else if (selection == 3) { if(cm.getMeso() >= 100000000) { cm.gainItem(4001126, 1); cm.gainMeso(-100000000); cm.sendOk("Thanks, here is your #v4001126#."); } else { cm.sendOk("You don't have enough mesos!"); } } else if (selection == 4) { if(cm.haveItem(4001126, 1)) { cm.gainItem(4001126, -1); cm.gainMeso(100000000); cm.sendOk("Thanks, here are your mesos."); } else { cm.sendOk("You don't have a #v4001126#!"); } } } }
| |
|