Mikthebug

Member
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!
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 151 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 98 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 91 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 79 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 48 Online
    • 85 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 22 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 20 Online
    • 172 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 16 Online
    • 32 Peak
  • Arth
    Custom (Modern)
    • Players
    • 15 Online
    • 34 Peak
  • Heritage
    New Legacy
    • Players
    • 14 Online
    • 41 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back