From 256f25fefc934bd89d1385fc4a84905d1bfa499b Mon Sep 17 00:00:00 2001 From: Redacted by Stellabellum INC Date: Sun, 12 Oct 2014 00:58:26 -0700 Subject: [PATCH] You can no longer use blueprints inside player buildings. You can no longer use blueprints on top of player buildings. --- .../systems/storyteller/blueprint_blank.script | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/systems/storyteller/blueprint_blank.script diff --git a/sku.0/sys.server/compiled/game/script/systems/storyteller/blueprint_blank.script b/sku.0/sys.server/compiled/game/script/systems/storyteller/blueprint_blank.script old mode 100644 new mode 100755 index d02acd297..0de24f049 --- a/sku.0/sys.server/compiled/game/script/systems/storyteller/blueprint_blank.script +++ b/sku.0/sys.server/compiled/game/script/systems/storyteller/blueprint_blank.script @@ -1,3 +1,4 @@ +include library.player_structure; include library.utils; include library.storyteller; include library.trial; @@ -30,6 +31,20 @@ trigger OnObjectMenuSelect(obj_id player, int item) sendSystemMessage(player, new string_id("storyteller", "blueprint_no_trial_accounts")); return SCRIPT_CONTINUE; } + // UPDATE 9/14/14: Can no longer use blueprints inside player building + location yourLoc = getLocation(player); + if(isIdValid(yourLoc.cell)) + { + sendSystemMessage(player, new string_id("storyteller", "blueprint_not_inside")); + return SCRIPT_CONTINUE; + } + // UPDATE 9/14/14: Can no longer use blueprints on top of player building + obj_id whatAmIStandingOn = getStandingOn(player); + if( isIdValid(whatAmIStandingOn) && player_structure.isBuilding(whatAmIStandingOn)) + { + sendSystemMessage(player, new string_id("storyteller", "blueprint_not_on_buildings")); + return SCRIPT_CONTINUE; + } if (item == menu_info_types.ITEM_USE) { @@ -84,6 +99,3 @@ boolean createBlueprint(obj_id blueprint, obj_id player) sendSystemMessage(player, new string_id("storyteller", "blueprint_saved")); return true; } - - -