So i want to make another skill check for taming creatures.


C#:
            Tamable = true;
            ControlSlots = 2;
            MinTameSkill = 84.3;

But im not really sure how to do that?
Insted of just taming skill i want some monsters to require magery or necromancy as well.
Any help or ideas would be great!
 
You will need to add the checks in AnimalTaming.cs. You'll find this existing check for CuSidhe:
Code:
                        else if (creature is CuSidhe && from.Race != Race.Elf)
                        {
                            creature.PrivateOverheadMessage(MessageType.Regular, 0x3B2, 502801, from.NetState); // You can't tame that!
                        }

Add your check right after that so that you've already cleared the prior "if" statements before your skill check happens. This example is still for a CuSidhe but just replace that with your desired mobile and the skill name and value with the restrictions you want to implement.

Code:
                        else if (creature is CuSidhe && from.Skills[SkillName.Magery].Value <= 79.9)
                        {
                            creature.PrivateOverheadMessage(MessageType.Regular, 0x3B2, 502801, from.NetState); // You can't tame that!
                        }

With this code, anything less than 80 magery skill and you can't attempt to tame the Cu. Adapt it to your needs and you're set!
 
Back