aboutsummaryrefslogtreecommitdiff
path: root/src/querymanager.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-10-23 04:26:11 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-10-23 04:26:11 -0300
commit27a0df43b33b712462ab5be65462162b9e4bcd29 (patch)
treee9170746ecae5c8689e16750e6ffa5c6e339d25d /src/querymanager.hh
parent0ff6217227ce551d6c91524c8e7fd37352e20490 (diff)
downloadquerymanager-27a0df43b33b712462ab5be65462162b9e4bcd29.tar.gz
querymanager-27a0df43b33b712462ab5be65462162b9e4bcd29.zip
change how guild data is stored
Diffstat (limited to 'src/querymanager.hh')
-rw-r--r--src/querymanager.hh18
1 files changed, 12 insertions, 6 deletions
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<THouseAuction> *Auctions);
bool FinishHouseTransfers(TDatabase *Database, int WorldID, DynamicArray<THouseTransfer> *Transfers);