Mount abilities and New tags for DFN

If Wishes were UOX Coders, we'd be done by now ;P Post your wishes/suggestions for UOX3 changes/improvements here.
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Mount abilities and New tags for DFN

Post by dragon slayer »

like to see tag for AllowFemaleRider and AllowFemaleTamer


AllowFemaleTamer if 0 the npc can not be tamed by a female if 1 female can tame it.
AllowMaleTamer same as female just blocks male chars
AllowRaceTamer same as the other two but checks the race
AllowFemaleRider if 0 female can not ride it. if 1 a female can ride it.
AllowMaleRider same as female just blocks male char
AllowRaceRider

also here is the msg for the mount
public override TimeSpan MountAbilityDelay { get { return TimeSpan.FromHours( 1.0 ); } }
        public override void OnDisallowedRider( Mobile m )
        {
            m.SendLocalizedMessage( 1042319 ); // The Ki-Rin refuses your attempts to mount it.
        }


Mount abilities runuo has
public override bool DoMountAbility( int damage, Mobile attacker )
        {
            if( Rider == null || attacker == null ) //sanity
                return false;

            if( (Rider.Hits - damage) < 30 && Rider.Map == attacker.Map && Rider.InRange( attacker, 18 ) )  //Range and map checked here instead of other base fuction because of abiliites that don't need to check this
            {
                attacker.BoltEffect( 0 );
                // 35~100 damage, unresistable, by the Ki-rin.
                attacker.Damage( Utility.RandomMinMax( 35, 100 ), this, false );    //Don't inform mount about this damage, Still unsure wether or not it's flagged as the mount doing damage or the player.  If changed to player, without the extra bool it'd be an infinite loop

                Rider.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1042534 );  // Your mount calls down the forces of nature on your opponent.
                Rider.FixedParticles( 0, 0, 0, 0x13A7, EffectLayer.Waist );
                Rider.PlaySound( 0xA9 );    // Ki-rin's whinny.
                return true;
            }

            return false;
        }

Here some links to the ki-rin
https://uo.stratics.com/database/view.p ... ers&id=221
https://www.uo-cah.com/bestiary/Ki-Rin <---------------------------- More accurate Guide
https://www.uoguide.com/Ki-Rin

This abilities should be added maybe to js so we can make custom mounts with abilities

function onMountAbilitie(damage , user)
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

For the mounting "rules", I think those could potentially easily be handled via JS at this point, especially considering we can have multiple scripts attached to each character. So it should be pretty straight-forward to do a script with an onCharDoubleClick( pUser, targChar ) event where you check the gender of the character clicking the mount, and then allow it/disallow it depending on the ID of the mount. Attach script to all relevant mounts. For ethereal mounts, a similar thing can be done in a script with an onUseChecked/onUseUnChecked event. So for this, I don't think it's necessary to add additional DFN tags.

For the mount abilities - how does a player trigger those in regular UO (or RunUO)?
-= Ho Eyo He Hum =-
Post Reply