Azerothcore-wotlk: [Config] Crossfaction trading doesn't work (and never worked)

Created on 27 Nov 2016  Â·  24Comments  Â·  Source: azerothcore/azerothcore-wotlk

Description: In worldserver.conf:
AllowTwoSide.Trade = 1

Doesn't work entirely.
This affects all the emulators for atleast 3 years (trinitycore, mangos etc), so fixing it on AzerothCore would be quite nice.

Current behaviour: When you enable this parameter (gametype doesn't affect it), you can't trade with the opposite faction's player unless you are grouped with him. It displays "Target is unfriendly."

Expected behaviour: We should be able to trade with the opposite faction even if not in a group.

Steps to reproduce the problem:

  1. Set AllowTwoSide.Trade = 1 in worldserver.conf
  2. Create 1 alliance character on an account, and 1 horde character on another account
  3. Meet together and you can't trade (type /trade) unless you're in a group.

Branch(es): All

Operating system: Debian 8 jessie / windows 7 (useless info)

Modules: No.

Other Customizations: None

Most helpful comment

I think I had this fixed, i'll see when I get internet and post the fix

All 24 comments

There is no problem Please re confirm the team

what?

AllowTwoSide.Interaction.Chat = 1
AllowTwoSide.Interaction.Group = 1
AllowTwoSide.Trade = 1

Set the above and then try to test

It's already set to this (I enabled all AllowTwoSide) and it doesn't make sense anyway, you should try the issue before suggesting this!

image

image

Yes, its bugged, confirmed.

Thanks Sucofog.
I tried to check if there was something related to this in TradeHandler.cpp but there was not, it was missing (there are 2 lines of code but it's not about this particular issue).

I don't think there's related to TradeHandler.cpp, its more related to config:

World.cpp
World.h

Let me check, missing config

image

Change AllowTwoSide.Trade = 1 for AllowTwoSide.trade = 1

Did you try it? Because I just tried by changing the conf line to AllowTwoSide.trade = 1 and it didn't change anything.

Update: It doesn't work even on a normal realm where characters are not in pvp state (their name is in blue)

Update 2: The AllowTwoSide.trade config is handled in TradeHandler if I'm not mistaking and the code here doesn't do anything for this issue!

if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_TRADE) && pOther->GetTeamId() != _player->GetTeamId()) { SendTradeStatus(TRADE_STATUS_WRONG_FACTION); return; }

The only part about this issue is above.

_Bonus: Found this_

void LFGMgr::SetTeam(uint64 guid, TeamId teamId)
{
    if (sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP))
        teamId = TEAM_ALLIANCE; // @Not Sure About That TeamId is supposed to be uint8 Team = 0(@TrinityCore)

    PlayersStore[guid].SetTeam(teamId);
}

_So everybody is considered alliance? Just asking_

f m no 6wkqhl1f a3eg
j5inrsh4 3h2ux kc zs8r

Why?

I will be opposed?

#

PLAYER INTERACTION

#

AllowTwoSide.Accounts

Description: Allow creating characters of both factions on the same account.

Default: 1 - (Enabled)

0 - (Disabled)

AllowTwoSide.Accounts = 1

#

AllowTwoSide.Interaction.Chat

Description: Allow say chat between factions.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.Interaction.Chat = 1

#

AllowTwoSide.Interaction.Channel

Description: Allow channel chat between factions.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.Interaction.Channel = 1

#

AllowTwoSide.Interaction.Group

Description: Allow group joining between factions.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.Interaction.Group = 1

#

AllowTwoSide.Interaction.Guild

Description: Allow guild joining between factions.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.Interaction.Guild = 0

#

AllowTwoSide.Interaction.Auction

Description: Allow auctions between factions.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.Interaction.Auction = 1

#

AllowTwoSide.Interaction.Mail

Description: Allow sending mails between factions.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.Interaction.Mail = 1

#

AllowTwoSide.AddFriend

Description: Allow adding friends from other faction the friends list.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.AddFriend = 1

#

AllowTwoSide.Trade

Description: Allow trading between factions.

Default: 0 - (Disabled)

1 - (Enabled)

AllowTwoSide.Trade = 1

#

TalentsInspecting

Description: Allow inspecting characters from the opposing faction.

Doesn't affect characters in gamemaster mode.

Default: 1 - (Enabled)

0 - (Disabled)

TalentsInspecting = 1

#

#

Ok boom8866, thank you for trying to help us but I already stated this in the issue. Try it WITHOUT A GROUP, or just wait for someone with real knowledge to answer, please.

I think I had this fixed, i'll see when I get internet and post the fix

It would be nice @Blumfield ! :)

@Blumfield did you get internet back? :P

wowscrnshot_031017_133109
wowscrnshot_031017_133112
All is ok man i don't know why it not work for you

@Viste Try that without being in a group, that is what should be right, trading with opposite faction without being in a group/band

@sucofog ok i try later

without party don't work

Its corret i think, party make faction 3 and make other factions in one

Looked alot through the source code didn't find anything, most likely client bug?

Somewhere it checks if players are same faction before trading.
If you do .gm on on both chars it sets their faction to 35 and the trade works.

It's probably a client limitation since the client is able to check
factions before server (improving performances)

Il 22 Ott 2017 5:02 AM, "lineagedr" notifications@github.com ha scritto:

Looked alot through the source code didn't find anything, most likely
client bug?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/azerothcore/azerothcore-wotlk/issues/266#issuecomment-338447528,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI-lP51mG0-Cgo_jWhVa1wOqME8FPjyks5surBegaJpZM4K9MA3
.

Yeah I think we can close down this issue as this is the same on TC - you need to be in a party to see the invite selection.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wampirr picture wampirr  Â·  3Comments

FrancescoBorzi picture FrancescoBorzi  Â·  3Comments

lineagedr picture lineagedr  Â·  3Comments

wowissues picture wowissues  Â·  3Comments

fragcamp picture fragcamp  Â·  4Comments