Jump to content

Flying mounts everywhere


Guest Hive

Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

I don't know where the check is to let you cast it, but there's a check in Player.cpp that checks when you enter a new zone if you're on a flying mount and dismounts you if you're not allowed to... (UpdateZoneDependentAuras)

    if( !IsAllowUseFlyMountsHere() )
   {
       RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
       RemoveSpellsCausingAura(SPELL_AURA_FLY);
   }

Also, I think there's something on the SD2 forums about this..

Link to comment
Share on other sites

I don't know where the check is to let you cast it, but there's a check in Player.cpp that checks when you enter a new zone if you're on a flying mount and dismounts you if you're not allowed to... (UpdateZoneDependentAuras)

    if( !IsAllowUseFlyMountsHere() )
   {
       RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
       RemoveSpellsCausingAura(SPELL_AURA_FLY);
   }

Also, I think there's something on the SD2 forums about this..

This code just remove aura in case you are teleported etc...

Link to comment
Share on other sites

go to function bool Player::IsAllowUseFlyMountsHere() const

change there

 bool Player::IsAllowUseFlyMountsHere() const
{
-    if (isGameMaster())
+    //if (isGameMaster())
        return true;

    uint32 v_map = GetVirtualMapForMapAndZone(GetMapId(), GetZoneId());
    return v_map == 530 || v_map == 571 && HasSpell(54197);
}

Link to comment
Share on other sites

  • 1 month later...

hy i just wanted to ask if core is changed this way isint working anymore

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;

// remove new continent flight forms

//if( !isGameMaster() &&

//GetVirtualMapForMapAndZone(GetMapId(),newZone) != 530)

//{

//RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);

//RemoveSpellsCausingAura(SPELL_AURA_FLY);

//}

is there any other way to add flying mounts in azeroth?

thanks

Link to comment
Share on other sites

find return v_map == 530 || v_map == 571 && HasSpell(54197);

change to

return v_map == 530 || v_map == 0 || v_map ==1 && v_map == 571;

That will allow it on maps 0 and 1 plus take away the requirement of cold weather flying in Northrend.. Azeroth is very ugly from a flying prospective though, the map cuts are very hacky and ugly.

Link to comment
Share on other sites

In Player.cpp, add the comments here:

void Player::UpdateZoneDependentAuras( uint32 newZone )
{
   // remove new continent flight forms
   /*
   if( !isGameMaster() &&
       GetVirtualMapForMapAndZone(GetMapId(),newZone) != 530)
   {
       RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
       RemoveSpellsCausingAura(SPELL_AURA_FLY);
   }
   */

In Spell.cpp add the comments here:

           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;
           }

Link to comment
Share on other sites

There is client check that prevents casting mounts, but it doesnt check spells cast from Equip effects.

Make a custom item like this shirt with a equip with spell ID of your mount:

Code: http://paste2.org/p/393173

Preview of shirt : http://tinyurl.com/mt7s4p

Now, this will work as long you are in GM mode, because otherwise mangos limitations will not allow you to cast the spell if you are not a GM. >This patch< remove Outland limitation (Making it available to non-GMs players) on spells and works with latest. You still need Cold Weather Flying and the appropriate riding skill levels to ride mounts.

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use