Remove custom NPC script: scroll generator

This commit is contained in:
P0nk
2025-07-22 13:49:32 +02:00
parent 1eeb2483bf
commit 8052814028
2 changed files with 1 additions and 484 deletions

View File

@@ -21,37 +21,6 @@
Default Maple TV
*/
var status;
function start() {
const YamlConfig = Java.type('config.YamlConfig');
if (YamlConfig.config.server.USE_ENABLE_CUSTOM_NPC_SCRIPT) {
cm.dispose();
cm.openNpc(9201088, "scroll_generator");
return;
}
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
// do nothing
cm.dispose();
}
}
cm.dispose();
}