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; } - - -