public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); mate = reader.ReadItem() as LinkedBag; }
public override void OnDoubleClick(Mobile from) { if (Items.Count == 0 && from.AccessLevel >= AccessLevel.Player) { LinkedBag bagA = new LinkedBag(); LinkedBag bagB = new LinkedBag(); bagA.Mate = bagB; bagB.Mate = bagA; bagA.Name = string.Format("{0}'s Linked Bag", from.Name); bagB.Name = string.Format("{0}'s Linked Bag", from.Name); DropItem(bagA); DropItem(bagB); } base.OnDoubleClick(from); }
public override void OnDoubleClick(Mobile from) { if (Items.Count == 0 && from.AccessLevel >= AccessLevel.Counselor) { LinkedBag bagA = new LinkedBag(); LinkedBag bagB = new LinkedBag(); bagA.Mate = bagB; bagB.Mate = bagA; bagA.Name = string.Format("{0}'s Linked Bag", from.Name); bagB.Name = string.Format("{0}'s Linked Bag", from.Name); DropItem(bagA); DropItem(bagB); } base.OnDoubleClick(from); }
public override void OnDoubleClick(Mobile from) { if (m_IsRewardItem && !RewardSystem.CheckIsUsableBy(from, this, null)) { from.SendMessage("This does not belong to you!!"); return; } LinkedBag bagA = new LinkedBag(); LinkedBag bagB = new LinkedBag(); bagA.Mate = bagB; bagB.Mate = bagA; bagA.Name = string.Format("{0}'s Linked Bag", from.Name); bagB.Name = string.Format("{0}'s Linked Bag", from.Name); from.AddToBackpack(bagA); from.AddToBackpack(bagB); this.Delete(); }