mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
make it compile
This commit is contained in:
parent
2a34cff008
commit
09bd4e9089
@ -4641,7 +4641,7 @@ void GameMessages::SendDisplayGuildCreateBox(const LWOOBJID& objectID, bool bSho
|
||||
CBITSTREAM;
|
||||
CMSGHEADER;
|
||||
|
||||
bitStream.Write(GAME_MSG_DISPLAY_GUILD_CREATE_BOX);
|
||||
bitStream.Write(eGameMessageType::DISPLAY_GUILD_CREATE_BOX);
|
||||
bitStream.Write(objectID);
|
||||
bitStream.Write((unsigned char)bShow);
|
||||
|
||||
|
@ -4,9 +4,6 @@
|
||||
#include "dCommonVars.h"
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include "dMessageIdentifiers.h"
|
||||
#include "AMFFormat.h"
|
||||
#include "AMFFormat_BitStream.h"
|
||||
#include "NiQuaternion.h"
|
||||
#include "PropertySelectQueryProperty.h"
|
||||
#include "TradingManager.h"
|
||||
|
@ -499,10 +499,10 @@ void ClientPackets::HandleGuildCreation(const SystemAddress& sysAddr, Packet* pa
|
||||
void ClientPackets::SendGuildCreateResponse(const SystemAddress& sysAddr, eGuildCreationResponse guildResponse, LWOOBJID guildID, std::u16string& guildName) {
|
||||
CBITSTREAM;
|
||||
CMSGHEADER;
|
||||
bitStream.Write(MSG_CLIENT_GUILD_CREATE_RESPONSE);
|
||||
bitStream.Write(eClientMessageType::GUILD_CREATE_RESPONSE);
|
||||
bitStream.Write(guildResponse);
|
||||
bitStream.Write(guildID);
|
||||
PacketUtils::WriteWString(bitStream, guildName, 33);
|
||||
bitStream.Write(LUWString(guildName));
|
||||
SEND_PACKET;
|
||||
}
|
||||
|
||||
|
@ -1,14 +1,12 @@
|
||||
#include "FvGuildCreate.h"
|
||||
#include "GameMessages.h"
|
||||
#include "Amf3.h"
|
||||
|
||||
// Server script for Guild Master NPC in FV area.
|
||||
// This NPC will react to a user interaction and display
|
||||
// the guild creation screen.
|
||||
|
||||
void FvGuildCreate::OnUse(Entity* self, Entity* user) {
|
||||
AMFStringValue* value = new AMFStringValue();
|
||||
value->SetStringValue("ToggleGuildCreate");
|
||||
AMFArrayValue args;
|
||||
GameMessages::SendUIMessageServerToSingleClient(user, user->GetSystemAddress(), value->GetStringValue(), &args);
|
||||
delete value;
|
||||
AMFArrayValue args;
|
||||
GameMessages::SendUIMessageServerToSingleClient(user, user->GetSystemAddress(), "ToggleGuildCreate", args);
|
||||
}
|
||||
|
@ -1297,7 +1297,7 @@ void HandlePacket(Packet* packet) {
|
||||
break;
|
||||
}
|
||||
|
||||
case MSG_WORLD_CLIENT_TMP_GUILD_CREATE: {
|
||||
case eWorldMessageType::TMP_GUILD_CREATE: {
|
||||
Game::logger->Log("WorldServer", "create a guild");
|
||||
ClientPackets::HandleGuildCreation(packet->systemAddress, packet);
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS guilds (
|
||||
name VARCHAR(35) NOT NULL,
|
||||
owner_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,
|
||||
motd TEXT,
|
||||
uscore INT NOT NULL DEFAULT 0,
|
||||
reputation INT NOT NULL DEFAULT 0,
|
||||
created BIGINT UNSIGNED NOT NULL DEFAULT 0
|
||||
);
|
||||
|
||||
@ -12,4 +12,5 @@ CREATE TABLE IF NOT EXISTS guild_members (
|
||||
character_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,
|
||||
rank INT NOT NULL DEFAULT 4,
|
||||
joined BIGINT UNSIGNED NOT NULL DEFAULT 0
|
||||
PRIMARY KEY (guild_id, character_id)
|
||||
);
|
Loading…
Reference in New Issue
Block a user