Reformat and clean up npc scripts

This commit is contained in:
P0nk
2021-09-09 23:35:02 +02:00
parent 0c1545f81d
commit d893309b4f
665 changed files with 19932 additions and 19046 deletions

View File

@@ -1,11 +1,11 @@
/**
Author: xQuasar
NPC: Kyrin - Pirate Job Advancer
Inside Test Room
**/
Author: xQuasar
NPC: Kyrin - Pirate Job Advancer
Inside Test Room
**/
var status;
function start() {
status = -1;
action(1, 0, 0);
@@ -19,21 +19,22 @@ function action(mode, type, selection) {
cm.dispose();
return;
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if(status == 0) {
if (status == 0) {
if (cm.getMapId() == 108000502) {
if (!(cm.haveItem(4031856,15))) {
if (!(cm.haveItem(4031856, 15))) {
cm.sendSimple("You haven't brought me all the crystals yet. I'm looking forward for your progress, mate! \r\n#b#L1#I would like to leave#l");
} else {
status++;
cm.sendNext("Wow, you have brought me 15 #b#t4031856##k! Congratulations. Let me warp you out now.");
}
} else if (cm.getMapId() == 108000501) {
if (!(cm.haveItem(4031857,15))) {
if (!(cm.haveItem(4031857, 15))) {
cm.sendSimple("You haven't brought me all the crystals yet. I'm looking forward for your progress, mate! \r\n#b#L1#I would like to leave#l");
} else {
status++;
@@ -46,10 +47,10 @@ function action(mode, type, selection) {
} else if (status == 1) { // thanks Lame for noticing players getting stuck in area in certain scenarios
cm.removeAll(4031856);
cm.removeAll(4031857);
cm.warp(120000101,0);
cm.warp(120000101, 0);
cm.dispose();
} else if (status == 2) {
cm.warp(120000101,0);
cm.warp(120000101, 0);
cm.dispose();
}
}