Skip to content

Instantly share code, notes, and snippets.

@callmephil
Created November 11, 2014 17:50
Show Gist options
  • Save callmephil/9a0e620433bd79921e63 to your computer and use it in GitHub Desktop.
Save callmephil/9a0e620433bd79921e63 to your computer and use it in GitHub Desktop.
Allow Trade etc channel everywhere.
@@ -5525,7 +5534,7 @@ bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, Area
if (channel->flags & CHANNEL_DBC_FLAG_ZONE_DEP && zone->flags & AREA_FLAG_ARENA_INSTANCE)
return false;
- if ((channel->flags & CHANNEL_DBC_FLAG_CITY_ONLY) && (!(zone->flags & AREA_FLAG_SLAVE_CAPITAL)))
+ if ((channel->flags & CHANNEL_DBC_FLAG_CITY_ONLY) && (!(zone->mapid == 0 || zone->mapid == 1 || zone->mapid == 571 || zone->mapid == 530)))
return false;
if ((channel->flags & CHANNEL_DBC_FLAG_GUILD_REQ) && GetGuildId())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment