Exemple #1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.InRange(this.Location, 2))
            {
                var berry = new LavaBerry(1);
                from.AddToBackpack(berry);
                from.PrivateOverheadMessage(Server.Network.MessageType.Regular, 1154, 1156736, "#1156727", from.NetState);

                Delete();
            }
            else
            {
                from.LocalOverheadMessage(Server.Network.MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
            }
        }
Exemple #2
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.InRange(this.Location, 3))
            {
                var berry = new LavaBerry(Utility.RandomMinMax(1, 5));
                from.AddToBackpack(berry);
                from.PrivateOverheadMessage(Server.Network.MessageType.Regular, 1154, 1156736, "#1156727", from.NetState);

                Delete();
            }
            else
            {
                from.SendLocalizedMessage(500295); // You are too far away to do that.
            }
        }