aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-03-29 12:19:38 +0200
committerShauren <shauren.trinity@gmail.com>2020-03-29 12:19:38 +0200
commit2c1c04a8f643d61bf29185f96d16fe4614e8e3ce (patch)
tree5726499d2f72158a012c2cf5c4ea0b753806b7b4
parent886d5c00c1fd7b7ce7d5f69da8af87a8448395de (diff)
Core/AuctionHouse: Set default AllowTwoSide.Interaction.Auction to enabled
-rw-r--r--src/server/game/AuctionHouse/AuctionHouseMgr.cpp25
-rw-r--r--src/server/game/World/World.cpp2
-rw-r--r--src/server/worldserver/worldserver.conf.dist6
3 files changed, 13 insertions, 20 deletions
diff --git a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp
index 1a3eb5ecd49..11dc23134d2 100644
--- a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp
+++ b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp
@@ -536,7 +536,7 @@ void AuctionHouseMgr::Update()
AuctionHouseEntry const* AuctionHouseMgr::GetAuctionHouseEntry(uint32 factionTemplateId, uint32* houseId)
{
- uint32 houseid = 7; // goblin auction house
+ uint32 houseid = 1; // Auction House
if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION))
{
@@ -545,27 +545,20 @@ AuctionHouseEntry const* AuctionHouseMgr::GetAuctionHouseEntry(uint32 factionTem
// but no easy way convert creature faction to player race faction for specific city
switch (factionTemplateId)
{
- case 12: houseid = 1; break; // human
- case 29: houseid = 6; break; // orc, and generic for horde
- case 55: houseid = 2; break; // dwarf, and generic for alliance
- case 68: houseid = 4; break; // undead
- case 80: houseid = 3; break; // n-elf
- case 104: houseid = 5; break; // trolls
- case 120: houseid = 7; break; // booty bay, neutral
- case 474: houseid = 7; break; // gadgetzan, neutral
- case 855: houseid = 7; break; // everlook, neutral
- case 1604: houseid = 6; break; // b-elfs,
- default: // for unknown case
+ case 120: houseid = 7; break; // booty bay, Blackwater Auction House
+ case 474: houseid = 7; break; // gadgetzan, Blackwater Auction House
+ case 855: houseid = 7; break; // everlook, Blackwater Auction House
+ default: // default
{
FactionTemplateEntry const* u_entry = sFactionTemplateStore.LookupEntry(factionTemplateId);
if (!u_entry)
- houseid = 7; // goblin auction house
+ houseid = 1; // Auction House
else if (u_entry->FactionGroup & FACTION_MASK_ALLIANCE)
- houseid = 1; // human auction house
+ houseid = 2; // Alliance Auction House
else if (u_entry->FactionGroup & FACTION_MASK_HORDE)
- houseid = 6; // orc auction house
+ houseid = 6; // Horde Auction House
else
- houseid = 7; // goblin auction house
+ houseid = 1; // Auction House
break;
}
}
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp
index 596da1db913..d470c4746a1 100644
--- a/src/server/game/World/World.cpp
+++ b/src/server/game/World/World.cpp
@@ -774,7 +774,7 @@ void World::LoadConfigSettings(bool reload)
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL] = sConfigMgr->GetBoolDefault("AllowTwoSide.Interaction.Channel", false);
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP] = sConfigMgr->GetBoolDefault("AllowTwoSide.Interaction.Group", false);
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD] = sConfigMgr->GetBoolDefault("AllowTwoSide.Interaction.Guild", false);
- m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION] = sConfigMgr->GetBoolDefault("AllowTwoSide.Interaction.Auction", false);
+ m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION] = sConfigMgr->GetBoolDefault("AllowTwoSide.Interaction.Auction", true);
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_TRADE] = sConfigMgr->GetBoolDefault("AllowTwoSide.Trade", false);
m_int_configs[CONFIG_STRICT_PLAYER_NAMES] = sConfigMgr->GetIntDefault ("StrictPlayerNames", 0);
m_int_configs[CONFIG_STRICT_CHARTER_NAMES] = sConfigMgr->GetIntDefault ("StrictCharterNames", 0);
diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist
index 3b959d62cca..3432e0c0e75 100644
--- a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -1526,10 +1526,10 @@ AllowTwoSide.Interaction.Guild = 0
#
# AllowTwoSide.Interaction.Auction
# Description: Allow auctions between factions.
-# Default: 0 - (Disabled)
-# 1 - (Enabled)
+# Default: 1 - (Enabled)
+# 0 - (Disabled)
-AllowTwoSide.Interaction.Auction = 0
+AllowTwoSide.Interaction.Auction = 1
#
# AllowTwoSide.Trade