diff --git a/scripts/npc/2111026.js b/scripts/npc/2111026.js index 2a9297dda3..76ce5ef8ea 100644 --- a/scripts/npc/2111026.js +++ b/scripts/npc/2111026.js @@ -24,7 +24,34 @@ Incomplete Magic Square */ +var status; + function start() { - cm.sendNext("This chalkboard has some hard-founded studies annotated on it..."); - cm.dispose(); + status = -1; + action(1, 0, 0); +} + +function action(mode, type, selection) { + if (mode == -1) { + cm.dispose(); + } else { + if (mode == 0 && status == 0) { + cm.dispose(); + return; + } + if (mode == 1) { + status++; + } else { + status--; + } + + if (status == 0) { + cm.sendAcceptDecline("This Magic Pentagram is incomplete. Would you like to finish off the drawing of the Magic Pentagram?"); + return; + } else if (status == 1) { + cm.weakenAreaBoss(8090000, "The Magic Pentagram has been completed. The spell to eliminate Deet and Roi has been summoned."); + } + + cm.dispose(); + } } \ No newline at end of file