[GUIDE]  Allow players to use a custom flying mount in Azeroth.  REQ Source Edits menu

User Tag List

Results 1 to 10 of 10
  1. #1
    saevic's Avatar Active Member
    Reputation
    17
    Join Date
    May 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [GUIDE] Allow players to use a custom flying mount in Azeroth. REQ Source Edits

    First things first. It is not possible, even with the latest core of MaNGOS to be able to use the current Outland flying mounts in Azeroth. You can however make your own mount, or edit an existing one that will. Also the mounts can not be summoned like a traditional mount, they have to be equipped like an item. The best way I've found is to make it a trinket.

    That's the purpose of this guide, to show you how to add the custom Azeroth-capable mount to your server and what needs to be edited in the MaNGOS source code to make the custom Azeroth-capable mount work.

    Okay so MaNGOS first. All these steps are the same for all the latest MaNGOS cores so unless you havn't updated it in a long time (4-5 months) these are the changes you need to make:

    Go to Player.cpp and find the following segment of code:
    Code:
    // remove new continent flight forms
    if( !isGameMaster() &&
    GetVirtualMapForMapAndZone(GetMapId(),newZone) != 530)
    {
      RemoveSpellsCausingAura(SPELL_AURA_MOD_SPEED_MOUNTED_FLIGHT);
      RemoveSpellsCausingAura(SPELL_AURA_FLY);
    }
    change it like so:
    Code:
    // remove new continent flight forms
    // if( !isGameMaster() &&
    // GetVirtualMapForMapAndZone(GetMapId(),newZone) != 530)
    // {
    //   RemoveSpellsCausingAura(SPELL_AURA_MOD_SPEED_MOUNTED_FLIGHT);
    //   RemoveSpellsCausingAura(SPELL_AURA_FLY);
    // }
    Now go to Spell.cpp and look for this segment of code:
    Code:
                
    case SPELL_AURA_FLY:
    {
      // not allow cast fly spells at old maps by players (all spells is self target)
      if(m_caster->GetTypeId()==TYPEID_PLAYER)
      {
        if( !((Player*)m_caster)->isGameMaster() && 
          GetVirtualMapForMapAndZone(m_caster->GetMapId(),m_caster->GetZoneId()) != 530)
          return SPELL_FAILED_NOT_HERE;
      }
    };break;
    default:break;
    and change it like so:
    Code:
                
    case SPELL_AURA_FLY:
    //{
    //  not allow cast fly spells at old maps by players (all spells is self target)
    //  if(m_caster->GetTypeId()==TYPEID_PLAYER)
    //  {
    //    if( !((Player*)m_caster)->isGameMaster() && 
    //      GetVirtualMapForMapAndZone(m_caster->GetMapId(),m_caster->GetZoneId()) != 530)
    //      return SPELL_FAILED_NOT_HERE;
    //  }
    //};break;
    default:break;
    Now the only thing to do is either edit an existing mount so the players can use it in a trinket spot or add your own. Keep in mind if you add your own it will show up in the players backpack as a question mark due to changes Blizzard made to the client in 2.4.

    To edit an existing mount make the following changes to the item in the item_template table. To find the item id for the mount you are changing either look the mount up in-game on a gm account (.lookup item) or look it up on thottbot whichever you prefer.

    Class = 4
    Flags = 64
    Inventory = 12 (so it will be equippable in the trinket slot)
    RequiredSkill = 0 (so players don't have to have the riding skill to use it)
    RequiredSkillRank = 0 (so players don't have to have a certain rank of riding skill to use it)
    spelltrigger_1 = 1 (make the mount active on equip)
    spellcategory_1 = 0
    spellcategorycooldown_1 = -1

    Or you can add a new item to the item_template file just take an existing mount, and add it as a new item then make the changes above. Or you can go here ( hxxp://filebeam.com/506f5d57f390c803ce9d764c09529bbf ) and download the .sql file where I've done that for you; just run the query inside the file. It will add the new mount with item id 99999.

    I've also gone ahead and compiled the latest MaNGOS core with the source code revisions already in them. You can find that here hxxp://filebeam.com/e09c94ccf71d29deaf80ddd43d88e491



    I would personally recommend that you only give this item out to players who deserve it. Due to the nature of the mount being equippable the movement speed increase will stack with normal mounts. Also since Blizzard has not redone the Azeroth maps you'll find that if you go too high in a city for example the textures will disappear.

    If there are any questions or problems I will do my best to address them in a timely manner. Enjoy!
    Last edited by saevic; 05-30-2008 at 02:28 PM. Reason: found a few typos

    [GUIDE]  Allow players to use a custom flying mount in Azeroth.  REQ Source Edits
  2. #2
    davechaos's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok done this but only GM's can use flying mounts! so how do we get our normal players flying?

  3. #3
    hotandsekc's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    101
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Go to Player.cpp and find the following segment of code:"
    where do i find this?...

  4. #4
    plokami's Avatar Member
    Reputation
    14
    Join Date
    May 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanx for help

  5. #5
    Pascal257's Avatar Member
    Reputation
    2
    Join Date
    Sep 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh thanks! I only found some tutorials regarding flying mounts for ascent. Finally flying mounts in the "old world"

  6. #6
    dominick1233's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    115
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty its very useful

  7. #7
    iamunk's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the most useful thing I have seen yet. I encountered an initial bug where the mount would constantly roar when flying, but zoning from Silvermoon/Ghostlands to the Plaguelands seemed to have fixed this.

    Thanks!

    Edit:

    I managed to reproduce this issue. It seems to occur in areas added to Azeroth in Burning Crusade any time I use the item in these zones.
    Last edited by iamunk; 09-23-2008 at 12:32 AM.

  8. #8
    stevamirkovic's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    re

    hmm, its good

  9. #9
    Nick_Da_Maco's Avatar Member
    Reputation
    13
    Join Date
    Jun 2008
    Posts
    104
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nicee i was looking for something like this now i can make it like a gm item

  10. #10
    lordm0's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where do I find Player.cpp
    (I'm using 711's repack if you need to know)

Similar Threads

  1. How to make Custom Flying Mount in Azeroth
    By arandd in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 10-07-2008, 04:42 PM
  2. Custom Flying Mounts
    By GPUseless in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 08-24-2008, 06:25 PM
  3. [Exploit]Use Flying mount within Azeroth
    By noes in forum World of Warcraft Exploits
    Replies: 171
    Last Post: 08-24-2008, 10:53 AM
  4. [Guide] How to make Flying mounts for azeroth.
    By Swordfish999 in forum WoW EMU Guides & Tutorials
    Replies: 7
    Last Post: 01-16-2008, 09:26 PM
  5. Noob guide to adding flying mounts in azeroth
    By L'Lawliet in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 12-27-2007, 11:10 AM
All times are GMT -5. The time now is 05:42 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search