Exemplo n.º 1
0
        public void DeleteRank(ref WorldSession session, uint rankId)
        {
            if (GetRankSize() <= Guild.MinRanks || rankId >= GetRankSize())
            {
                return;
            }

            //todo: Delete bank rights for rank

            DB.Characters.Execute("DELETE FROM guild_ranks WHERE RankId = {0} && GuildGuid = {1}", rankId, Guid);

            RankList.RemoveAll(r => r.RankId == rankId);

            SendQuery(ref session);
            SendRoster();
        }