Jump to content

Shin Darth

Members
  • Posts

    141
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by Shin Darth

  1. EDIT: In the original patch written by Thorazi for rev 7693, there wasn't the empty white space that was in my old update: ------------------------------ src/game/Group.cpp ------------------------------ index e6e01aa..1e70bc5 100644 @@ -296,6 +296,16 @@ bool Group::AddMember(const uint64 &guid, const char* name) player->SetDifficulty(m_difficulty); player->SendDungeonDifficulty(true); } + // Group Interfactions interactions (test) + if(sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP)) + { + Group *group = player->GetGroup(); + if(Player *leader = objmgr.GetPlayer(group->GetLeaderGUID())) + { + player->setFactionForRace(leader->getRace()); + sLog.outDebug( "WORLD: Group Interfaction Interactions - Faction changed (AddMember)" ); + } + } } player->SetGroupUpdateFlag(GROUP_UPDATE_FULL); UpdatePlayerOutOfRange(player); @@ -340,7 +350,12 @@ uint32 Group::RemoveMember(const uint64 &guid, const uint8 &method) data << uint64(0) << uint64(0) << uint64(0); player->GetSession()->SendPacket(&data); } - + // Restore original faction if needed + if(sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP)) + { + player->setFactionForRace(player->getRace()); + sLog.outDebug( "WORLD: Group Interfaction Interactions - Restore original faction (RemoveMember)" ); + } _homebindIfInstance(player); } @@ -411,6 +411,12 @@ void Group::Disband(bool hideDestroy) player->SetOriginalGroup(NULL); else player->SetGroup(NULL); + // Restore original faction if needed + if(sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP)) + { + player->setFactionForRace(player->getRace()); + sLog.outDebug( "WORLD: Group Interfaction Interactions - Restore original faction (Disband)" ); + } } // quest related GO state dependent from raid membership So this empy line was only my mistake that I have cleaned during the last patch-update. PS: At the moment I haven't my portable with Linux, but I tested the latest patch-update and it works perfect on Windows XP.
  2. Updated for rev 8723+ Diff file updated and cleaned. Regards...
  3. For Necroalbert: are you sure that this is related with this patch?
  4. Yes, done (on the first post of this topic). PS: Sorry, at the moment I'm not able to test the latest update, tell me if there are problems or not.
  5. Can anyone tell me if the patch is ok (after the latest update)? I cannot test it now, tell me if there are problems or not
  6. Ok I have updated it (for 3.2.2, mangos rev 8599+) but I don't still tested it, can anyone test it? Download
  7. I already know the patch needs an update.. I'm working on it
  8. yes for players, but no for the guards. Becouse, yes, they will turned into a Horde player but their reputation will not changed.
  9. No becouse this patch is recommended only for servers with few players, with few players is easy for game masters to check if player abuse with it. Servers with a lot of players don't need it.
  10. I did not say that I made it, I have only taken this patch and I've updated it becouse it seem to me very useful I said: I think this patch is very useful becouse the only file that it modify is Group.cpp and with an only file modified is very easy to update our core.
  11. MaNGOS is a learning project, if you download and run a precompiled repack.. what do you learn? nothing... Thanks to our strong community, we have good tutorials and support both for win and linux.
  12. Thank you but I already know this "bug". Becouse if an horde player invite an ally player, the ally player becomes an horde player and see enemies the other ally players and friendly the others horde players. The same is for guilds, arena, battlegrounds, etc...
  13. I use it since about 1-2 month and there aren't crash related with it...
  14. Yes, you have only to delete your Group.cpp and paste the patched-Group.cpp in the /src/game/ folder. obviously recompile mangos.
  15. Hmm no... The only things are.. for example.. if an ally player invite an horde player, the horde player can use the alliance portals. But if this patch is used only to do instance (and RPG events, why not!) there isn't problems
  16. This is a patch based on the old Thorazi's patch for fix the Grouping/Trade of Alliance and Horde. Current client version supported: 3.3.2 This is the download of the actually latest version of the file Group.cpp patched: Download Patched Group.cpp for rev 9582+ You have only to download this file, and paste it in the /src/game/ folder instead of the original file Group.cpp and recompile MaNGOS. You can also download the Diff file group-trade.patch: diff --git a/src/game/Group.cpp b/src/game/Group.cpp index 4090d91..69f6cb2 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -290,6 +290,16 @@ bool Group::AddMember(const uint64 &guid, const char* name) player->SendRaidDifficulty(true); } } + // Group Interfactions interactions (test) + if(sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_GROUP)) + { + Group *group = player->GetGroup(); + if(Player *leader = sObjectMgr.GetPlayer(group->GetLeaderGUID())) + { + player->setFactionForRace(leader->getRace()); + sLog.outDebug( "WORLD: Group Interfaction Interactions - Faction changed (AddMember)" ); + } + } } player->SetGroupUpdateFlag(GROUP_UPDATE_FULL); UpdatePlayerOutOfRange(player); @@ -335,6 +345,12 @@ uint32 Group::RemoveMember(const uint64 &guid, const uint8 &method) data << uint64(0) << uint32(0) << uint32(0) << uint64(0); player->GetSession()->SendPacket(&data); } + // Restore original faction if needed + if(sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_GROUP)) + { + player->setFactionForRace(player->getRace()); + sLog.outDebug( "WORLD: Group Interfaction Interactions - Restore original faction (RemoveMember)" ); + } _homebindIfInstance(player); } @@ -391,6 +407,12 @@ void Group::Disband(bool hideDestroy) player->SetOriginalGroup(NULL); else player->SetGroup(NULL); + // Restore original faction if needed + if(sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_GROUP)) + { + player->setFactionForRace(player->getRace()); + sLog.outDebug( "WORLD: Group Interfaction Interactions - Restore original faction (Disband)" ); + } } // quest related GO state dependent from raid membership
  17. do you heard this? where?
  18. Please someone help me! With 8052 this patch no longer works, but the latest modify of the file Group.cpp (wich is the only file that the patch modify) was on 7918 and in this rev the patch worked, why now it doesn't work? the file group.cpp was not modified! sorry my english
×
×
  • 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