EDIT: partial credits to me partial credits to arscon of ncdb.mmoforge.org (for solving the last part)
Firstly, you need to download the ascent svn before doing any of this.
( http://mmoforge.org/svn/ascent/trunk username: anonymous no password)
Then, go into (folder it's in)/src/game and Open Unit.cpp
Find
About two lines above that it will have something likeCode:// Can't use flying auras in non-outlands. if(aur->GetSpellProto()->EffectApplyAuraName[i] == 208 || aur->GetSpellProto()->EffectApplyAuraName[i] == 207) { delete aur; return; } } }Code:{ if(m_mapId != (some mapid is here)) { for(uint32 i = 0; i < 3; ++i) {
now change the if(m_mapId != part to
Then in SpellAuras.cpp you will need to search for void Aura::SpellAuraEnableFlight(bool apply)Code:if(m_mapId != 580)
Replace the else with if(!apply) which should look like this:
Code:void Aura::SpellAuraEnableFlight(bool apply) { if(m_target->IsPlayer()) { static_cast<Player*>(m_target)->FlyCheat = apply; static_cast<Player*>(m_target)->flying_aura = m_spellProto->Id; } if(apply) { m_target->EnableFlight(true); m_target->m_flyspeedModifier += mod->m_amount; m_target->UpdateSpeed(true); } if (!apply) //replaced else with: if(!apply) to allow flying mounts in the old lands { m_target->DisableFlight(true); m_target->m_flyspeedModifier -= mod->m_amount; m_target->UpdateSpeed(true); } }
Then comple ascent and you have flying mounts working! (if you did it right)
I'm not going to post how to compile ascent but there is a guide around here for it.
Have fun
Another edit: you need to make new flying mounts for it to work, here is an example:
above code doesn't work. Updating.Code:INSERT INTO `items` VALUES ('90002',' 4',' 0',' -1','Insignia of the Gryphon Rider','Insignia of the Gryphon Rider','Insignia of the Gryphon Rider','Insignia of the Gryphon Rider',' 31481',' 1',' 0',' 0',' 0',' 12',' -1',' -1',' 128',' 1',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 1',' 1',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 5',' 0',' 0',' 0',' 0',' 0',' 32292',' 1',' 0',' 0',' 0',' 0',' 13669',' 1',' 0',' 0',' 0',' 0',' 22564',' 0',' 0',' 0',' 1091',' 120000',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 1','0',' 0',' 0',' 0',' 0',' 0',' -1',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' 0',' -1',' 0','0');
Make sure spell 1 ID is for flying mount, and its trigger is 1 for immediate.
Also make sure it is a trinket, with flags of 4