[Commands] Remove #guildapprove, #guildcreate, and #guildlist Commands (#2775)

# Notes
- Removes `#guildapprove`, `#guildcreate`, and `#guildlist`.
- Removes associated functions, classes, etc. that were only used in these commands.
- These commands are unused and/or covered by the general `#guild` command.
- Approvals don't really seem to be a thing anymore and the variable itself doesn't exist in stock PEQ database anyway.
This commit is contained in:
Alex King
2023-01-22 12:56:42 -05:00
committed by GitHub
parent 35c3778baf
commit d0edb93d62
7 changed files with 0 additions and 291 deletions
-28
View File
@@ -47,36 +47,10 @@ enum { GuildBankDepositArea = 0, GuildBankMainArea = 1 };
enum { GuildBankBankerOnly = 0, GuildBankSingleMember = 1, GuildBankPublicIfUsable = 2, GuildBankPublic = 3 };
class GuildApproval
{
public:
GuildApproval(const char* guildname,Client* owner,uint32 id);
~GuildApproval();
bool ProcessApproval();
bool AddMemberApproval(Client* addition);
uint32 GetID() { return refid; }
Client* GetOwner() { return owner; }
void GuildApproved();
void ApprovedMembers(Client* requestee);
private:
Timer* deletion_timer;
char guild[16];
Client* owner;
Client* members[6];
uint32 refid;
};
class ZoneGuildManager : public BaseGuildManager {
public:
~ZoneGuildManager(void);
void AddGuildApproval(const char* guildname, Client* owner);
void AddMemberApproval(uint32 refid,Client* name);
void ClearGuildsApproval();
GuildApproval* FindGuildByIDApproval(uint32 refid);
GuildApproval* FindGuildByOwnerApproval(Client* owner);
void ProcessApproval();
uint32 GetFreeID() { return id+1; }
//called by worldserver when it receives a message from world.
void ProcessWorldPacket(ServerPacket *pack);
@@ -103,9 +77,7 @@ protected:
std::map<uint32, std::pair<uint32, uint8> > m_inviteQueue; //map from char ID to guild,rank
private:
LinkedList<GuildApproval*> list;
uint32 id;
};