The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FEATURES AND A FEW QUESTIONS
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #7
RE: FEATURES AND A FEW QUESTIONS
I never checked how this gargoyle "fly" hability works, but as I know it's a mount (pet) replacement

maybe a great suggestion to customize the fly/land behavior is a new trigger @GargoyleFly, working like @Mount

I found this code on RunUO and it seems to have some interesting things to use on this trigger (hitpoints check, bola ball recovery, etc)
Code:
        public override void ToggleFlying()
        {
            if (Race != Race.Gargoyle)
            {
                return;
            }
            else if (Flying)
            {
                Freeze(TimeSpan.FromSeconds(1));
                Animate(61, 10, 1, true, false, 0);
                Flying = false;
                BuffInfo.RemoveBuff(this, BuffIcon.Fly);
                SendMessage("You have landed.");

                BaseMount.Dismount(this);
                return;
            }

            BlockMountType type = MountBlockReason;

            if (!Alive)
            {
                SendLocalizedMessage(1113082); // You may not fly while dead.
            }
            else if (IsBodyMod && !(BodyMod == 666 || BodyMod == 667))
            {
                SendLocalizedMessage(1112453); // You can't fly in your current form!
            }
            else if (type != BlockMountType.None)
            {
                switch (type)
                {
                    case BlockMountType.Dazed:
                        SendLocalizedMessage(1112457);
                        break; // You are still too dazed to fly.
                    case BlockMountType.BolaRecovery:
                        SendLocalizedMessage(1112455);
                        break; // You cannot fly while recovering from a bola throw.
                    case BlockMountType.DismountRecovery:
                        SendLocalizedMessage(1112456);
                        break; // You cannot fly while recovering from a dismount maneuver.
                }
                return;
            }
            else if (Hits < 25) // TODO confirm
            {
                SendLocalizedMessage(1112454); // You must heal before flying.
            }
            else
            {
                if (!Flying)
                {
                    // No message?
                    if (Spell is FlySpell)
                    {
                        FlySpell spell = (FlySpell)Spell;
                        spell.Stop();
                    }
                    new FlySpell(this).Cast();
                }
                else
                {
                    Flying = false;
                    BuffInfo.RemoveBuff(this, BuffIcon.Fly);
                }
            }
        }
08-19-2014 01:42 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Messages In This Thread
FEATURES AND A FEW QUESTIONS - kn4tseb - 08-18-2014, 12:20 PM
RE: FEATURES AND A FEW QUESTIONS - Extreme - 08-18-2014, 01:14 PM
RE: FEATURES AND A FEW QUESTIONS - kn4tseb - 08-18-2014, 01:58 PM
RE: FEATURES AND A FEW QUESTIONS - XuN - 08-18-2014, 04:48 PM
RE: FEATURES AND A FEW QUESTIONS - kn4tseb - 08-19-2014, 01:43 AM
RE: FEATURES AND A FEW QUESTIONS - MrX - 08-18-2014, 11:54 PM
RE: FEATURES AND A FEW QUESTIONS - kn4tseb - 08-19-2014, 01:21 AM
RE: FEATURES AND A FEW QUESTIONS - Coruja - 08-19-2014 01:42 AM
RE: FEATURES AND A FEW QUESTIONS - kn4tseb - 08-19-2014, 03:02 AM
RE: FEATURES AND A FEW QUESTIONS - kn4tseb - 08-19-2014, 05:08 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)