So i discovered an issue with this script.. it does not half the stats of the pet when used.. in some cases this is pretty OP. Not sure how to fix it.. just wanted to say something just in case anyone else is using it, as i have been using it for a month now, and just found out.
 

Attachments

  • InstaTameDeed.cs
    4.4 KB · Views: 8
Update the OnTarget with the following to fix the OP Tame, this will cut in half the 3 primary stats and the Hits, not sure if anything else needed to be reduced, let me know!


Code:
        protected override void OnTarget(Mobile from, object target)
        {
            if (target is BaseCreature)
            {
                BaseCreature t = (BaseCreature)target;

                if (t.ControlMaster != null)
                {
                    from.SendMessage("That pet belongs to someone else!");
                }
                else if (t.Tamable == false)
                {
                    from.SendMessage("That creature cannot be tamed!");
                }
                else
                {
                    t.RawStr = t.Str = t.RawStr / 2;
                    t.RawInt = t.Int = t.RawInt / 2;
                    t.RawDex = t.Dex = t.RawDex / 2;
                    t.HitsMaxSeed = t.Hits = t.HitsMaxSeed / 2; 

                    t.Controlled = true;
                    t.ControlMaster = from;
                    from.SendMessage("You have instantly tamed your target.");

                    if (m_Deed != null)
                    {
                        m_Deed.Delete(); // Delete the deed
                    }
                    if (Obey == true)
                    {
                        t.MinTameSkill = 0.00;
                    }
                }

            }
            else
            {
                from.SendMessage("That is not a valid target.");
            }
        }
 
Last edited by a moderator:
Thanks! I tried this, but it only half worked. Had to add another line

1578855832620.png


Ive tagged the working file in the message. For anyone else who may be using it!
 

Attachments

  • InstaTameDeed.cs
    4.6 KB · Views: 10
I was thinking I forgot something with Hits, just couldn't remember the base for it, to simplify the line, change it to t.HitsMaxSeed = t.Hits = t.HitsMaxSeed / 2;
 
Back