From a67666af6204801481f18a503a5a8796229acd48 Mon Sep 17 00:00:00 2001 From: Charlie Unfricht Date: Fri, 26 Aug 2022 01:27:12 -0400 Subject: [PATCH] Set Mechanical Parts as event exclusive item for removal on exit --- scripts/event/q3239.js | 1 + scripts/npc/2040003.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/event/q3239.js b/scripts/event/q3239.js index 0546019093..dd3d4096d9 100644 --- a/scripts/event/q3239.js +++ b/scripts/event/q3239.js @@ -10,6 +10,7 @@ function init() { function setup(level, lobbyid) { var eim = em.newInstance("q3239_" + lobbyid); + eim.setExclusiveItems([4031092]); return eim; } diff --git a/scripts/npc/2040003.js b/scripts/npc/2040003.js index 8d7f1b34dc..6853be750b 100644 --- a/scripts/npc/2040003.js +++ b/scripts/npc/2040003.js @@ -36,7 +36,7 @@ function action(mode, type, selection) { } if (eim == null) { // Not in instance, ready to enter - cm.removeAll(4031092); // This doesn't belong here - these should be removed on exit, handled by portal script + cm.removeAll(4031092); // This handling is done in the portal script and in the event end, just for legacy purposes here if (!em.startInstance(cm.getPlayer())) { cm.sendOk("Someone else is already gathering some parts for me. Please wait until the area is cleared."); }