mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Rules] Remove Guild Bank Zone ID Rule (#3156)
# notes - This rule is useless as guild bank zone ID is hard-coded into the client.
This commit is contained in:
@@ -867,7 +867,7 @@ void Client::CompleteConnect()
|
||||
CalcItemScale();
|
||||
DoItemEnterZone();
|
||||
|
||||
if (zone->GetZoneID() == RuleI(World, GuildBankZoneID) && GuildBanks)
|
||||
if (zone->GetZoneID() == Zones::GUILDHALL && GuildBanks)
|
||||
GuildBanks->SendGuildBank(this);
|
||||
|
||||
if (ClientVersion() >= EQ::versions::ClientVersion::SoD)
|
||||
@@ -1426,7 +1426,7 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
|
||||
}
|
||||
}
|
||||
m_pp.guildrank = rank;
|
||||
if (zone->GetZoneID() == RuleI(World, GuildBankZoneID))
|
||||
if (zone->GetZoneID() == Zones::GUILDHALL)
|
||||
GuildBanker = (guild_mgr.IsGuildLeader(GuildID(), CharacterID()) || guild_mgr.GetBankerFlag(CharacterID()));
|
||||
}
|
||||
m_pp.guildbanker = GuildBanker;
|
||||
@@ -7446,7 +7446,7 @@ void Client::Handle_OP_GuildBank(const EQApplicationPacket *app)
|
||||
if (!GuildBanks)
|
||||
return;
|
||||
|
||||
if ((int)zone->GetZoneID() != RuleI(World, GuildBankZoneID))
|
||||
if (zone->GetZoneID() != Zones::GUILDHALL)
|
||||
{
|
||||
Message(Chat::Red, "The Guild Bank is not available in this zone.");
|
||||
|
||||
@@ -7796,7 +7796,7 @@ void Client::Handle_OP_GuildCreate(const EQApplicationPacket *app)
|
||||
{
|
||||
Message(Chat::Yellow, "You are now the leader of %s", GuildName);
|
||||
|
||||
if (zone->GetZoneID() == RuleI(World, GuildBankZoneID) && GuildBanks)
|
||||
if (zone->GetZoneID() == Zones::GUILDHALL && GuildBanks)
|
||||
GuildBanks->SendGuildBank(this);
|
||||
SendGuildRanks();
|
||||
}
|
||||
@@ -8126,7 +8126,7 @@ void Client::Handle_OP_GuildInviteAccept(const EQApplicationPacket *app)
|
||||
Message(Chat::Red, "There was an error during the invite, DB may now be inconsistent.");
|
||||
return;
|
||||
}
|
||||
if (zone->GetZoneID() == RuleI(World, GuildBankZoneID) && GuildBanks)
|
||||
if (zone->GetZoneID() == Zones::GUILDHALL && GuildBanks)
|
||||
GuildBanks->SendGuildBank(this);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -236,7 +236,7 @@ void Client::RefreshGuildInfo()
|
||||
guild_id = info.guild_id;
|
||||
GuildBanker = info.banker || guild_mgr.IsGuildLeader(GuildID(), CharacterID());
|
||||
|
||||
if(((int)zone->GetZoneID() == RuleI(World, GuildBankZoneID)))
|
||||
if(zone->GetZoneID() == Zones::GUILDHALL)
|
||||
{
|
||||
if(WasBanker != GuildBanker)
|
||||
{
|
||||
|
||||
+1
-1
@@ -1059,7 +1059,7 @@ Zone::Zone(uint32 in_zoneid, uint32 in_instanceid, const char* in_short_name)
|
||||
did_adventure_actions = false;
|
||||
database.QGlobalPurge();
|
||||
|
||||
if(zoneid == RuleI(World, GuildBankZoneID))
|
||||
if(zoneid == Zones::GUILDHALL)
|
||||
GuildBanks = new GuildBankManager;
|
||||
else
|
||||
GuildBanks = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user