From 27a0df43b33b712462ab5be65462162b9e4bcd29 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 23 Oct 2025 04:26:11 -0300 Subject: change how guild data is stored --- src/querymanager.hh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/querymanager.hh') diff --git a/src/querymanager.hh b/src/querymanager.hh index b652e74..c9ab96b 100644 --- a/src/querymanager.hh +++ b/src/querymanager.hh @@ -884,19 +884,22 @@ struct TCharacterLoginData{ int AccountID; char Name[30]; int Sex; - char Guild[30]; - char Rank[30]; - char Title[30]; bool Deleted; }; +struct TCharacterGuildData{ + int GuildID; + int Rank; + char GuildName[30]; + char RankName[30]; + char Title[30]; +}; + struct TCharacterProfile{ + int CharacterID; char Name[30]; char World[30]; int Sex; - char Guild[30]; - char Rank[30]; - char Title[30]; int Level; char Profession[30]; char Residence[30]; @@ -1048,6 +1051,9 @@ bool InsertLoginAttempt(TDatabase *Database, int AccountID, int IPAddress, bool bool GetAccountFailedLoginAttempts(TDatabase *Database, int AccountID, int TimeWindow, int *FailedAttempts); bool GetIPAddressFailedLoginAttempts(TDatabase *Database, int IPAddress, int TimeWindow, int *FailedAttempts); +// NOTE(fusion): Guild Tables +bool GetCharacterGuildData(TDatabase *Database, int CharacterID, TCharacterGuildData *GuildData); + // NOTE(fusion): House Tables bool FinishHouseAuctions(TDatabase *Database, int WorldID, DynamicArray *Auctions); bool FinishHouseTransfers(TDatabase *Database, int WorldID, DynamicArray *Transfers); -- cgit v1.2.3