39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using ModernUO.Serialization;
|
|
|
|
namespace Server.Items;
|
|
|
|
[SerializationGenerator(0, false)]
|
|
public partial class SnowPile : Item
|
|
{
|
|
[Constructible]
|
|
public SnowPile() : base(0x913)
|
|
{
|
|
Hue = 0x481;
|
|
LootType = LootType.Blessed;
|
|
}
|
|
|
|
public override double DefaultWeight => 1.0;
|
|
|
|
public override int LabelNumber => 1005578; // a pile of snow
|
|
|
|
public override void OnDoubleClick(Mobile from)
|
|
{
|
|
if (!IsChildOf(from.Backpack))
|
|
{
|
|
from.SendLocalizedMessage(1042010); // You must have the object in your backpack to use it.
|
|
}
|
|
else if (from.Mounted)
|
|
{
|
|
from.SendLocalizedMessage(1010097); // You cannot use this while mounted.
|
|
}
|
|
else if (from.CanBeginAction<SnowPile>())
|
|
{
|
|
from.SendLocalizedMessage(1005575); // You carefully pack the snow into a ball...
|
|
from.Target = new SnowTarget();
|
|
}
|
|
else
|
|
{
|
|
from.SendLocalizedMessage(1005574); // The snow is not ready to be packed yet. Keep trying.
|
|
}
|
|
}
|
|
}
|