Im use MoopleDev rev 116.
and i dont know, what wrong with my script.
or that for v62. :(
PHP 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){
cm.dispose();
return;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hello. I am the AP Reseter NPC! Would you like to Reset your AP?\r\n\#L0#Yes#l\r\n\#L1#No#l");
} else if (selection == 0) {
cm.resetStats();
cm.sendOk("Your AP has been reseted!");
cm.dispose();
} else if (selection == 1) {
cm.sendOk("Alright, see ya! Come back if you want to have your AP reseted! :)");
cm.dispose();
}
}
}
that make a reset but have a prob with this script, not give all ap back.
have maybe new script?