Not sure if there's one floating around somewhere but, i'm needing somewhere to store my Pet Powerscrolls. This is what I go so far.
It loads with no errors but when I go to add a PetPS Wrestling 105 and a 120 it says: that quanity cannot fit in this. Help please.
C#:
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Solaris.ItemStore;                            //for connection to resource store data objects
using Server.Engines.BulkOrders;


namespace Server.Items
{
    //item inherited from BaseResourceKey
    [Flipable(0x9A95,0x9AA7)]
    public class PetPSKey : BaseStoreKey
    {
        public override int DisplayColumns { get { return 1; } }

        public override List<StoreEntry> EntryStructure
        {
            get
            {
                List<StoreEntry> entry = base.EntryStructure;

                string[] skillnames = Enum.GetNames(typeof(SkillName));
                                                          
                entry.Add(new ListEntry(typeof(PetPowerScroll),typeof(PowerScrollListEntry),"Pet Power Scrolls"));
                return entry;
            }
        }

        [Constructable]
        public PetPSKey() : base(100)      // hue 1153
        {
            ItemID = 0x9AA7;
            Name = "a PetPS Book";
        }

        //this loads properties specific to the store, like the gump label, and whether it's a dynamic storage device
        protected override ItemStore GenerateItemStore()
        {
            //load the basic store info
            ItemStore store = base.GenerateItemStore();

            //properties of this storage device
            store.Label = "PetPS Storage";

            store.Dynamic = false;
            store.OfferDeeds = false;
            return store;
        }

        //serial constructor
        public PetPSKey(Serial serial) : base(serial)
        {
        }
        //events

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0);

        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }
}
 
Back