mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-16 07:13:29 -04:00
You can no longer use blueprints inside player buildings.
You can no longer use blueprints on top of player buildings.
This commit is contained in:
Regular → Executable
+15
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user