From 5791480ab6064092d856c78c1edaf45a7bc47fd5 Mon Sep 17 00:00:00 2001 From: PaperChonChon <40238280+PaperChonChon@users.noreply.github.com> Date: Wed, 24 Apr 2024 02:50:52 +0000 Subject: [PATCH 1/2] Update 2040022.js NPC removing items even if player does not have all materials to craft it --- scripts/npc/2040022.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/npc/2040022.js b/scripts/npc/2040022.js index f33665c8f1..b76610d4b8 100644 --- a/scripts/npc/2040022.js +++ b/scripts/npc/2040022.js @@ -198,20 +198,12 @@ function action(mode, type, selection) { } else { if (mats instanceof Array) { for (var i = 0; complete && i < mats.length; i++) { - if (matQty[i] * selection == 1) { - if (!cm.haveItem(mats[i])) { + if (!cm.haveItem(mats[i], matQty[i])) { complete = false; - } - } else { - if (!cm.haveItem(mats[i], matQty[i] * selection)) { - complete = false; - } } } } else { - if (!cm.haveItem(mats, matQty * selection)) { - complete = false; - } + complete = false; } } @@ -250,4 +242,4 @@ function action(mode, type, selection) { } cm.dispose(); } -} \ No newline at end of file +} From 8e6ee6f5f31b665bfa4b75652653fbbcd0ac147a Mon Sep 17 00:00:00 2001 From: PaperChonChon <40238280+PaperChonChon@users.noreply.github.com> Date: Wed, 24 Apr 2024 02:58:52 +0000 Subject: [PATCH 2/2] Map is unpassable as the top layer spears will not hit mobs Change the passing requirement to a combo of lever state --- scripts/portal/party3_jailin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/portal/party3_jailin.js b/scripts/portal/party3_jailin.js index efb79f69f7..6e666a03c4 100644 --- a/scripts/portal/party3_jailin.js +++ b/scripts/portal/party3_jailin.js @@ -1,4 +1,4 @@ -var leverSequenceExit = false; +var leverSequenceExit = true; function enterLeverSequence(pi) { var map = pi.getMap(); @@ -72,4 +72,4 @@ function enter(pi) { } return ret; -} \ No newline at end of file +}