Пример #1
0
        private void AddNecroSpell(int spell, int mana, double minSkill, Type type, params Type[] regs)
        {
            int index = AddCraft(type, 1061677, 1060509 + spell, minSkill, minSkill + 1.0, regs[0], CraftItem.LabelNumber(regs[0]), 1, 501627);                 //Yes, on OSI it's only 1.0 skill diff'.  Don't blame me, blame OSI.

            for (int i = 1; i < regs.Length; ++i)
            {
                AddRes(index, regs[i], CraftItem.LabelNumber(regs[0]), 1, 501627);
            }

            AddRes(index, typeof(BlankScroll), 1044377, 1, 1044378);
            SetManaReq(index, mana);
        }
Пример #2
0
        private void AddMysticismSpell(int spell, int mana, double minSkill, double maxSkill, Type type, params Type[] regs)
        {
            int index = AddCraft(type, 1111671, 1031678 + spell, minSkill, maxSkill, regs[0], CraftItem.LabelNumber(regs[0]), 1, 501627);

            for (int i = 1; i < regs.Length; ++i)
            {
                AddRes(index, regs[i], CraftItem.LabelNumber(regs[i]), 1, 501627);
            }

            AddRes(index, typeof(BlankScroll), 1044377, 1, 1044378);
            SetManaReq(index, mana);
        }
Пример #3
0
        private void AddNecroSpell(int index, int spell, int mana, double minSkill, Type type, params Type[] regs)
        {
            CraftItem craft = AddCraft(index, type, 1061677, 1060509 + spell, minSkill, minSkill + 1.0, regs[0], CraftItem.LabelNumber(regs[0]), 1, 501627);

            for (int i = 1; i < regs.Length; ++i)
            {
                craft.AddRes(regs[i], CraftItem.LabelNumber(regs[i]), 1, 501627);
            }

            craft.AddRes(typeof(BlankScroll), 1044377, 1, 1044378);
            craft.Mana = mana;
        }