From eb4d3d4762f1c3b20689bf0982cc47ad5da534bc Mon Sep 17 00:00:00 2001 From: Tyler Hasman Date: Thu, 22 Feb 2018 20:34:21 +0900 Subject: [PATCH] Fixed the 'no' option not working (#167) --- scripts/npc/1002004.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/npc/1002004.js b/scripts/npc/1002004.js index e7652daba4..f5b2e2918f 100644 --- a/scripts/npc/1002004.js +++ b/scripts/npc/1002004.js @@ -39,10 +39,12 @@ function start() { function action(mode, type, selection) { status++; if (mode == -1){ - if(mode == 0) - cm.sendNext("This town also has a lot to offer. Find us if and when you feel the need to go to the Ant Tunnel Park."); cm.dispose(); return; + }else if(mode == 0) { + cm.sendOk("This town also has a lot to offer. Find us if and when you feel the need to go to the Ant Tunnel Park."); + cm.dispose(); + return; } if (status == 1) { cm.sendYesNo(cm.getJobId() == 0 ? "We have a special 90% discount for beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where the 24 Hr Mobile Store is. Would you like to go there for #b1,000 mesos#k?" : "The regular fee applies for all non-beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where 24 Hr Mobile Store is. Would you like to go there for #b10,000 mesos#k?"); @@ -56,4 +58,4 @@ function action(mode, type, selection) { } cm.dispose(); } -} \ No newline at end of file +}