mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Merge branch 'guild_temp' of https://github.com/DarkflameUniverse/DarkflameServer into guild_temp
This commit is contained in:
commit
0d668aefcf
@ -271,12 +271,10 @@ void CharacterComponent::LoadFromXml(tinyxml2::XMLDocument* doc) {
|
||||
if (gid != 0) {
|
||||
auto guild = Database::Get()->GetGuild(gid);
|
||||
if (guild && Database::Get()->CheckIsInGuild(guild->id, m_Parent->GetCharacter()->GetID())) {
|
||||
LOG("Found Guild %i name %s", guild->id, guild->name.c_str());
|
||||
m_GuildName = GeneralUtils::UTF8ToUTF16(guild->name);
|
||||
m_GuildID = gid;
|
||||
m_DirtySocialInfo = true;
|
||||
} else {
|
||||
LOG("Unalbe to find Guild %i name %s", guild->id, guild->name.c_str());
|
||||
SetGuild(0, u"");
|
||||
}
|
||||
}
|
||||
|
@ -444,8 +444,8 @@ void ClientPackets::HandleGuildCreation(Packet* packet) {
|
||||
characterComp->SetGuild(newGuild->id, guildName.string);
|
||||
SendGuildCreateResponse(packet->systemAddress, eGuildCreationResponse::CREATED, newGuild->id, guildName.string);
|
||||
AMFArrayValue data;
|
||||
data.Insert("bOn", true);
|
||||
GameMessages::SendUIMessageServerToSingleClient(entity, packet->systemAddress, "ToggleGuildUI", data);
|
||||
data.Insert("bDisplay", true);
|
||||
GameMessages::SendUIMessageServerToSingleClient(entity, packet->systemAddress, "EnableGuild", data);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user