Jump to content

Flying mounts everywhere


Guest Hive

Recommended Posts

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

The code is no longer in player.cpp? anyone know where it went?

Link to comment
Share on other sites

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Additionnal informations :

This is a very ugly hack...

if someone have idea to optimize and clean this patch I open to your ideas.

It's a personnal challenge (thank to woweur & TOM_RUS) don't view this post as insult :)

I think all is supported except druid flying form

Direct link : Flying Everywhere patch

Please test the patch and report any crashes/malfunctions. Thanks.

Link to comment
Share on other sites

  • 3 months later...

mabye you can fix latest rev problem

2>..\\..\\src\\game\\Player.cpp(11239) : error C2065: 'objmgr' : undeclared identifier

2>..\\..\\src\\game\\Player.cpp(11239) : error C2228: left of '.GetItemPrototype' must have class/struct/union

2> type is ''unknown-type''

2>..\\..\\src\\game\\Player.cpp(21487) : error C2065: 'objmgr' : undeclared identifier

2>..\\..\\src\\game\\Player.cpp(21487) : error C2228: left of '.GetItemPrototype' must have class/struct/union

2> type is ''unknown-type''

2>..\\..\\src\\game\\Player.cpp(21524) : error C2065: 'objmgr' : undeclared identifier

2>..\\..\\src\\game\\Player.cpp(21524) : error C2228: left of '.GetItemPrototype' must have class/struct/union

2> type is ''unknown-type''

2>..\\..\\src\\game\\Player.cpp(21558) : error C2065: 'objmgr' : undeclared identifier

2>..\\..\\src\\game\\Player.cpp(21558) : error C2228: left of '.GetItemPrototype' must have class/struct/union

2> type is ''unknown-type''

Link to comment
Share on other sites

google trad, sorry ...

I had to remove the patch for various reasons, including players bored etc. ...

I recompiled without the patch and since druids have no form of fly, I put the mangos db new,

but I do not know what to do about characters, the solution to unlearn / learn because the characters can not even

relearn the spells themselves.

by cons I would rather fix the base rather than me typing commands to all the druids ...

--------------------------------------------

J'ai du supprimer le patch pour diverses raisons, notamment des joueurs plus qu'embétés par d'autres etc...

J'ai recompilé sans le patch et depuis les druides n'ont plus leur forme de vol, j'ai remis la bdd mangos à neuf,

mais je ne sais pas quoi faire sur characters, une solution avec unlearn/learn car les persos ne peuvent meme pas

réapprendre ces sorts d'eux meme.

par contre je préfèrerai corriger la base plutot que de me taper les commandes pour tous les druides ...

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

anyone nice enough to reply where to change the player.ccp now that its been changed? spell.ccp is kinda same but rest aint, what has changed that needs to be done, i dont run newest rev so i gotta do it manualy and when i check commit TONS of stuff has been changed in the flying patch on github.... so much i dont even know what parts of it is for flying and whats for rest

yad dont reply on pm nor mail... anyone? or if u got, i need the patch for 3.2.2a (rev 9134)

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

If you don't care about possible repercussions, you can simply comment out the continent check in SpellMgr.cpp.

//comment out 
   if ((spellInfo->AttributesEx4 & SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND) && !(player && player->isGameMaster()))
   {
     uint32 v_map = GetVirtualMapForMapAndZone(map_id, zone_id);
       MapEntry const* mapEntry = sMapStore.LookupEntry(v_map);
      if (!mapEntry || mapEntry->addon < 1 || !mapEntry->IsContinent())
          return SPELL_FAILED_INCORRECT_AREA;
   }

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks 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