Exemplo n.º 1
0
        protected override void _loadDb()
        {
            Attached["NumberOfAttributesToGuess"] = 18;
            DbDebugItem <int> debug = new DbDebugItem <int>(this);

            if (debug.Load(ServerDbs.Skills))
            {
                DbLoaderMethods.DbCommaLoader(debug, this);
            }
            if (debug.Load(ServerDbs.SkillsNoDex))
            {
                DbLoaderMethods.DbCommaRange(debug, AttributeList, ServerSkillAttributes.Cast.Index, 2);
            }

            if (AllLoaders.GetServerType() == ServerType.RAthena)
            {
                if (debug.Load(ServerDbs.SkillsNoCast))
                {
                    DbLoaderMethods.DbCommaNoCast(debug, AttributeList, ServerSkillAttributes.Flag.Index, 1);
                }
            }

            if (debug.Load(ServerDbs.SkillsCast))
            {
                DbLoaderMethods.DbCommaRange(debug, AttributeList, ServerSkillAttributes.Cast.Index + 2, 6);
            }
        }
Exemplo n.º 2
0
        protected override void _loadDb()
        {
            base._loadDb();

            if (AllLoaders.GetServerType() == ServerType.RAthena)
            {
                DbDebugItem <int> debug = new DbDebugItem <int>(this);
                // These are all being read twice and assigned to their respective table
                if (debug.Load(ServerDbs.ItemsAvail))
                {
                    DbLoaderMethods.DbCommaRange(debug, AttributeList, ServerItemAttributes.Sprite.Index, 1, false);
                }
                if (debug.Load(ServerDbs.ItemsDelay))
                {
                    DbLoaderMethods.DbCommaRange(debug, AttributeList, ServerItemAttributes.Delay.Index, 1, false);
                }
                if (debug.Load(ServerDbs.ItemsNoUse))
                {
                    DbLoaderMethods.DbCommaLoader(debug, AttributeList, DbLoaderMethods.DbItemsNouseFunction, false);
                }
                if (debug.Load(ServerDbs.ItemsStack))
                {
                    DbLoaderMethods.DbCommaLoader(debug, AttributeList, DbLoaderMethods.DbItemsStackFunction, false);
                }
                if (debug.Load(ServerDbs.ItemsTrade))
                {
                    DbLoaderMethods.DbCommaLoader(debug, AttributeList, DbLoaderMethods.DbItemsTradeFunction, false);
                }
                if (debug.Load(ServerDbs.ItemsBuyingStore))
                {
                    DbLoaderMethods.DbCommaLoader(debug, AttributeList, DbLoaderMethods.DbItemsBuyingStoreFunction, false);
                }
            }
        }