Jump to content
  • SpellManager.GetFlyMountName


    camelot10
    • Version: All Product: WRobot General Type: Bug Status: Cannot Reproduce

    1. fresh Demon Hunter, Horde, Blood Elf, Male, Blonde.

    2. mounts: http://www.wowhead.com/spell=200175/felsaber

    http://www.wowhead.com/spell=32244/blue-wind-rider

    http://www.wowhead.com/spell=32297/swift-purple-wind-rider

    3. code

            var settings = wManager.wManagerSetting.CurrentSetting;
            settings.GroundMountName = SpellManager.GetGroudMountName();
            settings.FlyingMountName = SpellManager.GetFlyMountName();
            settings.AquaticMountName = SpellManager.GetAquaticMountName();
            Logging.Write("Mounts updated. ground: " + settings.GroundMountName + " flying: " + settings.FlyingMountName + " aquatic: " + settings.AquaticMountName);

    and flying mount choosed as http://www.wowhead.com/spell=32292/swift-purple-gryphon

    if felsaber not randomed - choosed gryphon too for ground mount.

    and vise versa with alliance DH NE Male got randomed mounts as Wind Riders.

     

    Official/EU/RU client

     

    [D] 02:05:45 - [Quester] New step (6): UpdateMounts>Pulse
    02:05:45 - [Questing] Mounts updated. ground: Саблезуб Скверны flying: Стремительный лиловый грифон aquatic: 
    [D] 02:05:46 - [Quester] If[8] (ObjectManager.Me.IsAlliance) | Result: False
    [D] 02:05:46 - [Quester] If[19] (ObjectManager.Me.IsHorde) | Result: True
    [D] 02:05:46 - [Quester] New step (20): AudiencewiththeWarchiefH>PickUp
    02:05:46 - [Mount] Mounting fly mount Стремительный лиловый грифон
    [N] 02:05:47 - [MovementManager] Long Move distance: 198,7587
    02:05:48 - [Mount] Mounting fly mount Стремительный лиловый грифон
    [N] 02:05:49 - [MovementManager] Long Move distance: 198,7587
    02:05:49 - [Mount] Mounting fly mount Стремительный лиловый грифон
    [N] 02:05:50 - [MovementManager] Long Move distance: 198,7587
    02:05:51 - [Mount] Mounting fly mount Стремительный лиловый грифон
    02:05:51 - [Mount] Mounting failed
    [D] 02:05:51 - [StuckResolver] Flying mode.
    [D] 02:05:59 - [StuckResolver] done.
    [N] 02:05:59 - [MovementManager] Long Move distance: 196,7859
    02:05:59 - [Mount] Mounting fly mount Стремительный лиловый грифон
    02:06:00 - [Mount] Mounting failed
    [D] 02:06:00 - [StuckResolver] Flying mode.
    [D] 02:06:04 - [StuckResolver] done.
    [N] 02:06:04 - [MovementManager] Long Move distance: 178,2636
    02:06:04 - [Mount] Mounting fly mount Стремительный лиловый грифон
    02:06:05 - [Mount] Mounting failed
    [D] 02:06:05 - [StuckResolver] Flying mode.
    [D] 02:06:08 - [StuckResolver] done.
    02:06:08 - [Quester] Stopped

     



    User Feedback

    Recommended Comments

    camelot10

    Posted

    sometimes its works. dont know whats. seems like 50/50. 50% horde 50% alliance version

    Droidz

    Posted

    Hello, I am not sure to understand.

    GetFlyMountName() and GetFlyMountName() return random avalable Flying/ground mount name. Seem to works.

            public static string GetGroudMountName()
            {
                try
                {
                    var mountList =
                        GetCompanionInfo()
                            .Where(
                                c =>
                                c.MountFlags == MountFlags.Ground && !string.IsNullOrWhiteSpace(c.Spell.NameInGame)).ToArray();
                    if (mountList.Length > 0)
                    {
                        return mountList[Others.Random(0, mountList.Length - 1)].Spell.NameInGame;
                    }
                }
                catch (Exception exception)
                {
                    Logging.WriteError("GetGroudMountName(): " + exception);
                }
                return "";
            }

     

    Pudge

    Posted

    image.thumb.png.e44f3057b0a6c562dcda8eb044a0fb34.png

     

    SpellManager.GetCompanionInfo () always returns 0;

    On 5/12/2017 at 4:45 PM, Droidz said:

    GetFlyMountName() and GetFlyMountName() return random avalable Flying/ground mount name. Seem to works.

    returns nothing

    3.3.5a

    image.thumb.png.ee7d8a23d489dd71ecbb9dadce70c987.png

    image.thumb.png.ae01fe6da544b8ed5ff97ea086faf31a.png



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...