Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Question] AllowTwoSide.Interaction.Group + Trade #1297

Closed
ulfgebhardt opened this issue Feb 18, 2017 · 11 comments
Closed

[Feature][Question] AllowTwoSide.Interaction.Group + Trade #1297

ulfgebhardt opened this issue Feb 18, 2017 · 11 comments

Comments

@ulfgebhardt
Copy link
Contributor

If you AllowTwoSide.Interaction.Group = 1 you get the Option "Trade" in the Playermenu - u cant trade with the traditionally opposing faction tho - it tells you "Target is unfriendly".

Changing if the coresponding check in https://github.com/cmangos/mangos-tbc/blob/21644add3a3293e9c256463f2d65868113a8237c/src/game/TradeHandler.cpp#L636 for TRADE_STATUS_WRONG_FACTION so it does not check the faction,

if (false && pOther->GetTeam() != _player->GetTeam())
{
        info.Status = TRADE_STATUS_WRONG_FACTION;
        SendTradeStatus(info);
        return;
}

does not change the error message.

Question: is this clientside?

Note: This same behaviour appears if you have ".gm on".

Current behavior:

Playermenu shows trade option, on clicking it or /trade you get the error message "Target is unfriendly".
The client shows the other Player as friendly when in group (green circle, green name).

Expected behavior:

Trade should be possible.

Steps to reproduce:

  1. AllowTwoSide.Interaction.Group = 1
  2. Group with opposing faction member
  3. Trade with opposing faction member
  4. "Target is unfriendly"

Client version:
2.4.3

Commit hash:
latest tbc

Database version:
latest tbc

In WOTLK it must be possible since this screenshot exists:

start trade

do trade

Source: azerothcore/azerothcore-wotlk#266

@evil-at-wow
Copy link

Yes, this is client side. I remember it was possible to trade with players from the other faction back in the days - 2007 and early 2008 - where the core was still MaNGOS and required older patches (like 2.2.3). I don't remember if it was 2.3 or 2.4 that broke this trading, but all of a sudden the code stopped working with a newer client.

It's the same with WoTLK clients. In fact, the WoTLK client is even worse: with a 2.4.3 client you can still have mixed parties and they can cast on each other (say a horde priest healing an alliance tank). The WoTLK client doesn't even want to do that...

That doesn't mean the screenshot is fake of course. No doubt the client uses the factions of the players involved to allow/disallow certain actions. What that core you've linked to has done is no doubt a workaround with factions to trick the client into believing the other player is friendly...

@ulfgebhardt
Copy link
Contributor Author

ulfgebhardt commented Feb 18, 2017

If what you say is true, there is several solutions to the problem

Possible Solutions

  1. ignore
  2. remove the trade (and follow) option from the playermenu for crossfaction members of your party if possible
  3. finally make an open source client <- prefered

Ty for the feedback.

@Viste
Copy link

Viste commented Mar 10, 2017

in wotlk all is ok you can go to inst in group of 2 faction but some inst bugs when you do that. YO CAN TRADE BUFF Etc need only evil-at-wow say shit. I'm(shkura blood elf, all other is Drenei and Human)
wowscrnshot_031017_133109
wowscrnshot_031017_133112

@ulfgebhardt
Copy link
Contributor Author

Question is: is it possible to do so on TBC or does the Client itself prohibits this?

@Viste
Copy link

Viste commented Mar 12, 2017

in trinity and ascent in old days works fine

@ulfgebhardt
Copy link
Contributor Author

on 2.4.3? or on other clients? @Viste

@Viste
Copy link

Viste commented Mar 12, 2017

on 2.4.3

@Viste
Copy link

Viste commented Mar 12, 2017

only 1 thing trade anvible only if you in party

@cyberium
Copy link
Member

#596 (comment)

Warlockbugs added a commit to cmangos/mangos-classic that referenced this issue May 2, 2019
Loosely inspired by similar feature present in TrinityCore project.

Improvements:
- Allows xfaction group members to inspect each other
- Allows xfaction group members to follow each other
- Allows xfaction group members to trade with each other
- Xfaction group members nameplates are displayed correctly
- No more issues with so called "TAB-targeting" (closest target selection)

Related issues:
cmangos/issues#596
cmangos/issues#1297
Warlockbugs added a commit to cmangos/mangos-tbc that referenced this issue May 2, 2019
Loosely inspired by similar feature present in TrinityCore project.

Improvements:
- Allows xfaction group members to inspect each other
- Allows xfaction group members to follow each other
- Allows xfaction group members to trade with each other
- Xfaction group members nameplates are displayed correctly
- No more issues with so called "TAB-targeting" (closest target selection)

Related issues:
cmangos/issues#596
cmangos/issues#1297
Warlockbugs added a commit to cmangos/mangos-wotlk that referenced this issue May 2, 2019
Loosely inspired by similar feature present in TrinityCore project.

Improvements:
- Allows xfaction group members to inspect each other
- Allows xfaction group members to follow each other
- Allows xfaction group members to trade with each other
- Xfaction group members nameplates are displayed correctly
- No more issues with so called "TAB-targeting" (closest target selection)

Related issues:
cmangos/issues#596
cmangos/issues#1297
@Warlockbugs
Copy link
Member

This issue for crossfaction groups should be revisited as it was fixed with related patches above for all branches.

@SilvioDoMine
Copy link

@Warlockbugs Should GM be allowed to have channel crossfaction and trade crossfaction even if AllowTwoSide is off? To help in support

Warlockbugs added a commit to Warlockbugs/cmangos-authserver that referenced this issue Jun 1, 2021
Loosely inspired by similar feature present in TrinityCore project.

Improvements:
- Allows xfaction group members to inspect each other
- Allows xfaction group members to follow each other
- Allows xfaction group members to trade with each other
- Xfaction group members nameplates are displayed correctly
- No more issues with so called "TAB-targeting" (closest target selection)

Related issues:
cmangos/issues#596
cmangos/issues#1297
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants