/* * Ascent MMORPG Server * Copyright (C) 2005-2007 Ascent Team * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef _GUILD_H #define _GUILD_H struct PlayerInfo; #define MAX_GUILD_RANKS 10 enum PETITION_TURNIN_ERRORS { ERR_PETITION_OK, ERR_PETITION_ALREADY_SIGNED, ERR_PETITION_IN_GUILD, ERR_PETITION_CREATOR, ERR_PETITION_NOT_ENOUGH_SIGNATURES, //PETITION_YOU_ALREADY_IN_A_GUILD = 0x02, //PETITION_YOU_NEED_MORE_SIGNS = 0x04, //ERR_PET_SPELL_DEAD //ERR_PETITION_DECLINED_S //ERR_PETITION_SIGNED_S //ERR_PETITION_SIGNED //ERR_PETITION_OFFERED }; enum GUILDEMBLEM_ERRORS { ERR_GUILDEMBLEM_SUCCESS, ERR_GUILDEMBLEM_INVALID_TABARD_COLORS, ERR_GUILDEMBLEM_NOGUILD, ERR_GUILDEMBLEM_NOTGUILDMASTER, ERR_GUILDEMBLEM_NOTENOUGHMONEY, ERR_GUILDEMBLEM_INVALIDVENDOR, }; enum GuildMessageTypes { G_MSGTYPE_ALL, G_MSGTYPE_ALLBUTONE, G_MSGTYPE_PUBLICCHAT, G_MSGTYPE_OFFICERCHAT, }; struct RankInfo { uint32 rankid; std::string name; uint32 rights; }; enum GuildRank { GUILDRANK_GUILD_MASTER = 0, GUILDRANK_OFFICER = 1, GUILDRANK_VETERAN = 2, GUILDRANK_MEMBER = 3, GUILDRANK_INITIATE = 4, GUILDRANK_LOWEST = 9, }; enum CommandErrors { GUILD_U_HAVE_INVITED = 0x00, GUILD_INTERNAL = 0x01, GUILD_ALREADY_IN_GUILD = 0x02, ALREADY_IN_GUILD = 0x03, INVITED_TO_GUILD = 0x04, ALREADY_INVITED_TO_GUILD = 0x05, GUILD_NAME_INVALID = 0x06, GUILD_NAME_EXISTS = 0x07, GUILD_LEADER_LEAVE = 0x08, GUILD_PERMISSIONS = 0x08, GUILD_PLAYER_NOT_IN_GUILD = 0x09, GUILD_PLAYER_NOT_IN_GUILD_S = 0x0A, GUILD_PLAYER_NOT_FOUND = 0x0B, GUILD_NOT_ALLIED = 0x0C, }; //for uint32(0)< m_guildMembers; std::list m_rankList; uint32 m_guildId; std::string m_guildName; uint32 m_emblemStyle; uint32 m_emblemColor; uint32 m_borderStyle; uint32 m_borderColor; uint32 m_backgroundColor; uint64 m_leaderGuid; std::string m_motd; std::string m_guildInfo; uint32 m_createdYear; uint32 m_createdMonth; uint32 m_createdDay; }; #endif /*0,1->guild created 2->you are already in guild 3->selection is already in guild 4->you have been already invited to guild 5->selection is already invited to guild 6->guildname contains invalid characters pls rename 7->there is an already guild named "name" 8->you dont have permission to do that 9->you are not in guild 10->selection isnot in your guild 11->"name" not found 12->you cannot invite players from opposite alliance 13->"name"'s rank is too high 14->"name" is already at lowest rank*/