mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-01 11:22:28 +00:00
GetCharacterInfoForLogin removed, unused, unsupported
This commit is contained in:
parent
8441ffda31
commit
351a7a52fe
@ -785,39 +785,6 @@ void ZoneDatabase::UpdateBuyLine(uint32 CharID, uint32 BuySlot, uint32 Quantity)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ZoneDatabase::GetCharacterInfoForLogin(const char* name, uint32* character_id,
|
|
||||||
char* current_zone, PlayerProfile_Struct* pp, Inventory* inv, ExtendedProfile_Struct *ext,
|
|
||||||
uint32* pplen, uint32* guilddbid, uint8* guildrank,
|
|
||||||
uint8 *class_, uint8 *level, bool *LFP, bool *LFG, uint8 *NumXTargets, uint8 *firstlogon) {
|
|
||||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
|
||||||
char *query = 0;
|
|
||||||
uint32 querylen;
|
|
||||||
MYSQL_RES *result;
|
|
||||||
|
|
||||||
bool ret = false;
|
|
||||||
|
|
||||||
//DO NOT FORGET TO EDIT Client::Handle_Connect_OP_ZoneEntry if you change this.
|
|
||||||
|
|
||||||
if (character_id && *character_id) {
|
|
||||||
// searching by ID should be a lil bit faster
|
|
||||||
querylen = MakeAnyLenString(&query, "SELECT id,profile,zonename,x,y,z,guild_id,rank,extprofile,class,level,lfp,lfg,instanceid,xtargets,firstlogon FROM character_ LEFT JOIN guild_members ON id=char_id WHERE id=%i", *character_id);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
querylen = MakeAnyLenString(&query, "SELECT id,profile,zonename,x,y,z,guild_id,rank,extprofile,class,level,lfp,lfg,instanceid,xtargets,firstlogon FROM character_ LEFT JOIN guild_members ON id=char_id WHERE name='%s'", name);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (RunQuery(query, querylen, errbuf, &result)) {
|
|
||||||
ret = GetCharacterInfoForLogin_result(result, character_id, current_zone, pp, inv, ext, pplen, guilddbid, guildrank, class_, level, LFP, LFG, NumXTargets, firstlogon);
|
|
||||||
mysql_free_result(result);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
LogFile->write(EQEMuLog::Error, "GetCharacterInfoForLogin query '%s' %s", query, errbuf);
|
|
||||||
}
|
|
||||||
|
|
||||||
safe_delete_array(query);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define StructDist(in, f1, f2) (uint32(&in->f2)-uint32(&in->f1))
|
#define StructDist(in, f1, f2) (uint32(&in->f2)-uint32(&in->f1))
|
||||||
|
|
||||||
// Process results of GetCharacterInfoForLogin()
|
// Process results of GetCharacterInfoForLogin()
|
||||||
|
|||||||
@ -253,10 +253,6 @@ public:
|
|||||||
PlayerProfile_Struct* pp = 0, Inventory* inv = 0, ExtendedProfile_Struct *ext = 0, uint32* pplen = 0,
|
PlayerProfile_Struct* pp = 0, Inventory* inv = 0, ExtendedProfile_Struct *ext = 0, uint32* pplen = 0,
|
||||||
uint32* guilddbid = 0, uint8* guildrank = 0, uint8 *class_= 0, uint8 *level = 0, bool *LFP = 0,
|
uint32* guilddbid = 0, uint8* guildrank = 0, uint8 *class_= 0, uint8 *level = 0, bool *LFP = 0,
|
||||||
bool *LFG = 0, uint8 *NumXTargets = 0, uint8* firstlogon = 0);
|
bool *LFG = 0, uint8 *NumXTargets = 0, uint8* firstlogon = 0);
|
||||||
bool GetCharacterInfoForLogin(const char* name, uint32* character_id = 0, char* current_zone = 0,
|
|
||||||
PlayerProfile_Struct* pp = 0, Inventory* inv = 0, ExtendedProfile_Struct *ext = 0, uint32* pplen = 0,
|
|
||||||
uint32* guilddbid = 0, uint8* guildrank = 0, uint8 *class_ = 0, uint8 *level = 0, bool *LFP = 0,
|
|
||||||
bool *LFG = 0, uint8 *NumXTargets = 0, uint8* firstlogon = 0);
|
|
||||||
void SaveBuffs(Client *c);
|
void SaveBuffs(Client *c);
|
||||||
void LoadBuffs(Client *c);
|
void LoadBuffs(Client *c);
|
||||||
void LoadPetInfo(Client *c);
|
void LoadPetInfo(Client *c);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user