parent
096d39609e
commit
8e9221bb5a
400 changed files with 3688 additions and 5969 deletions
|
|
@ -54,7 +54,7 @@ namespace Server.Items
|
|||
{
|
||||
BaseHouse house = BaseHouse.FindHouseAt(from);
|
||||
|
||||
if (house == null || !house.IsOwner(from))
|
||||
if (house?.IsOwner(from) != true)
|
||||
{
|
||||
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, false,
|
||||
"You are not the full owner of this house.");
|
||||
|
|
@ -90,4 +90,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ namespace Server.Items
|
|||
|
||||
BaseHouse house = BaseHouse.FindHouseAt(loc, map, 20);
|
||||
|
||||
if (house == null || !house.IsFriend(from))
|
||||
if (house?.IsFriend(from) != true)
|
||||
{
|
||||
from.SendLocalizedMessage(1005701); // The holiday tree can only be placed in your house.
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ namespace Server.Items
|
|||
|
||||
BaseHouse house = BaseHouse.FindHouseAt(from);
|
||||
|
||||
if (house == null || !house.IsOwner(from))
|
||||
if (house?.IsOwner(from) != true)
|
||||
{
|
||||
from.SendLocalizedMessage(
|
||||
1062333); // You must be standing inside of a house that you own to make use of this contract.
|
||||
|
|
@ -258,7 +258,7 @@ namespace Server.Items
|
|||
|
||||
BaseHouse house = BaseHouse.FindHouseAt(pLocation, map, 0);
|
||||
|
||||
if (house == null || !house.IsOwner(from))
|
||||
if (house?.IsOwner(from) != true)
|
||||
{
|
||||
from.SendLocalizedMessage(1062338); // The location being rented out must be inside of your house.
|
||||
}
|
||||
|
|
@ -340,4 +340,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue