Various House Raffle fixes - http://jira.runuo.com/browse/RUNUO-94
Pet friends should have access to pack animals' backpacks - http://jira.runuo.com/browse/RUNUO-95 Animal Lore wrong GM skill perk - http://jira.runuo.com/browse/RUNUO-92
This commit is contained in:
parent
216824a9b4
commit
44a4693fda
8 changed files with 193 additions and 21 deletions
|
|
@ -4,6 +4,7 @@ using System.Collections;
|
|||
using Server.Multis;
|
||||
using Server.Targeting;
|
||||
using Server.Items;
|
||||
using Server.Regions;
|
||||
|
||||
namespace Server.Multis.Deeds
|
||||
{
|
||||
|
|
@ -33,6 +34,8 @@ namespace Server.Multis.Deeds
|
|||
m_Deed.OnPlacement( from, p );
|
||||
else if ( reg.IsPartOf( typeof( TreasureRegion ) ) )
|
||||
from.SendLocalizedMessage( 1043287 ); // The house could not be created here. Either something is blocking the house, or the house would not be on valid terrain.
|
||||
else if ( reg.IsPartOf( typeof( HouseRaffleRegion ) ) )
|
||||
from.SendLocalizedMessage( 1150493 ); // You must have a deed for this plot of land in order to build here.
|
||||
else
|
||||
from.SendLocalizedMessage( 501265 ); // Housing can not be created in this area.
|
||||
}
|
||||
|
|
@ -205,6 +208,11 @@ namespace Server.Multis.Deeds
|
|||
from.SendLocalizedMessage( 501270 ); //Lord British has decreed a 'no build' period, thus you cannot build this house at this time.
|
||||
break;
|
||||
}
|
||||
case HousePlacementResult.BadRegionRaffle:
|
||||
{
|
||||
from.SendLocalizedMessage( 1150493 ); // You must have a deed for this plot of land in order to build here.
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ namespace Server.Multis
|
|||
BadRegionHidden,
|
||||
BadRegionTemp,
|
||||
InvalidCastleKeep,
|
||||
BadRegionRaffle
|
||||
}
|
||||
|
||||
public class HousePlacement
|
||||
|
|
@ -114,6 +115,9 @@ namespace Server.Multis
|
|||
if ( reg.IsPartOf( typeof( TreasureRegion ) ) )
|
||||
return HousePlacementResult.BadRegionHidden;
|
||||
|
||||
if ( reg.IsPartOf( typeof( HouseRaffleRegion ) ) )
|
||||
return HousePlacementResult.BadRegionRaffle;
|
||||
|
||||
return HousePlacementResult.BadRegion;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using Server;
|
|||
using Server.Gumps;
|
||||
using Server.Multis;
|
||||
using Server.Mobiles;
|
||||
using Server.Regions;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Items
|
||||
|
|
@ -249,6 +250,8 @@ namespace Server.Items
|
|||
m_Placed = m_Entry.OnPlacement( from, p );
|
||||
else if ( reg.IsPartOf( typeof( TreasureRegion ) ) )
|
||||
from.SendLocalizedMessage( 1043287 ); // The house could not be created here. Either something is blocking the house, or the house would not be on valid terrain.
|
||||
else if ( reg.IsPartOf( typeof( HouseRaffleRegion ) ) )
|
||||
from.SendLocalizedMessage( 1150493 ); // You must have a deed for this plot of land in order to build here.
|
||||
else
|
||||
from.SendLocalizedMessage( 501265 ); // Housing can not be created in this area.
|
||||
}
|
||||
|
|
@ -428,6 +431,11 @@ namespace Server.Items
|
|||
from.SendLocalizedMessage( 501270 ); // Lord British has decreed a 'no build' period, thus you cannot build this house at this time.
|
||||
break;
|
||||
}
|
||||
case HousePlacementResult.BadRegionRaffle:
|
||||
{
|
||||
from.SendLocalizedMessage( 1150493 ); // You must have a deed for this plot of land in order to build here.
|
||||
break;
|
||||
}
|
||||
case HousePlacementResult.InvalidCastleKeep:
|
||||
{
|
||||
from.SendLocalizedMessage( 1061122 ); // Castles and keeps cannot be created here.
|
||||
|
|
@ -526,6 +534,11 @@ namespace Server.Items
|
|||
from.SendLocalizedMessage( 501270 ); //Lord British has decreed a 'no build' period, thus you cannot build this house at this time.
|
||||
break;
|
||||
}
|
||||
case HousePlacementResult.BadRegionRaffle:
|
||||
{
|
||||
from.SendLocalizedMessage( 1150493 ); // You must have a deed for this plot of land in order to build here.
|
||||
break;
|
||||
}
|
||||
case HousePlacementResult.InvalidCastleKeep:
|
||||
{
|
||||
from.SendLocalizedMessage( 1061122 ); // Castles and keeps cannot be created here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue