Yes, i know... i'm shit... but i literally can't find anything wrong with this script
PHP Code:
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1) {
status++;
}else{
status--;
}
if (status == 0) {
cm.sendSimple("Hello and welcome to MapleTaste! \r\n Would you like to trade ONE Karma for 10000 NX Cash?\r\n #L0# Yes \r\n #L1# No);
} else if (status == 2) {
if (selection == 0) {
cm.gainKarma(-1);
cm.gainNX(10000);
cm.sendOk("Have a nice day!");
cm.dispose();
} else if (selection == 1) {
cm.sendOk("Okay then! Have a nice day!");
cm.dispose();
}
}
}