Jump to content

Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Posted
How and where i have to modify the core to allowe to fly with flying mounts everywhere.

Hive

probably uncomment the map check for flying mounts, but i think it's not a so great idea.

Posted

I think spell check about allowed area is in client side, you can't cast spell if you are on a bad area.

An issue should be create proper item with script on scriptdev2 with direcly cast spell or apply the good auras

Posted

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..

Posted
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...

Posted

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

  • 1 month later...
Posted

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

Posted

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.

Posted

i know how to use search but patches are old and for old core new core have been changed and i dont need flying mount for all players that i just edit the item not some .learn command

thanks

Posted

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

Posted

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.

  • 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