From dcdb80f8ff639aa9bb685983f35d3d0260a46d77 Mon Sep 17 00:00:00 2001 From: Elour Date: Sat, 30 Mar 2019 10:39:11 -0700 Subject: [PATCH] Prevents picking up storyteller objects placed in houses Players were able to pick up storyteller objects, which broke the timer and prevented them from being automatically destroyed. This prevents the initial pickup. --- .../game/script/systems/storyteller/prop_controller.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/systems/storyteller/prop_controller.java b/sku.0/sys.server/compiled/game/script/systems/storyteller/prop_controller.java index 7f39faa15..79ac6a6d6 100755 --- a/sku.0/sys.server/compiled/game/script/systems/storyteller/prop_controller.java +++ b/sku.0/sys.server/compiled/game/script/systems/storyteller/prop_controller.java @@ -23,6 +23,14 @@ public class prop_controller extends script.base_script messageTo(self, "handleStorytellerPropInitialize", null, 5, false); return SCRIPT_CONTINUE; } + public int OnAboutToBeTransferred(obj_id self, obj_id destContainer, obj_id transferer) throws InterruptedException + { + if (isPlayer(getContainedBy(destContainer))) + { + return SCRIPT_OVERRIDE; + } + return SCRIPT_CONTINUE; + } public int handleStorytellerPropInitialize(obj_id self, dictionary params) throws InterruptedException { if (!hasObjVar(self, "eventTeamCleaupOverride") && !utils.hasScriptVar(self, "storytellerOnAttachFired"))