public void CreateAlliance(string allianceName, string allianceTag, Stump.DofusProtocol.Types.GuildEmblem emblem) { var result = Singleton <AllianceManager> .Instance.CreateAlliance(this.Character, allianceName, allianceTag, emblem); AllianceHandler.SendAllianceCreationResultMessage(this.Character.Client, result); if (result == SocialGroupCreationResultEnum.SOCIAL_GROUP_CREATE_OK) { this.Close(); } }
// METHODS public void Open() { if (this.Character.Guild == null || this.Character.Guild.Alliance != null || this.Character.Guild.Boss.Character != this.Character) { AllianceHandler.SendAllianceCreationResultMessage(this.Character.Client, SocialGroupCreationResultEnum.SOCIAL_GROUP_CREATE_ERROR_REQUIREMENT_UNMET); } else { this.Character.SetDialog(this); AllianceHandler.SendAllianceCreationStartedMessage(this.Character.Client); } }