Exemplo n.º 1
0
        public void FellowshipRecruit(Player newPlayer)
        {
            if (newPlayer == null)
            {
                return;
            }

            // An Olthoi player cannot join a fellowship
            if (newPlayer.IsOlthoiPlayer)
            {
                Session.Network.EnqueueSend(new GameMessageSystemChat("The Olthoi's hunger for destruction is too great to understand a request for fellowship.", ChatMessageType.Broadcast));
                SendWeenieError(WeenieError.None);
                return;
            }

            if (newPlayer.GetCharacterOption(CharacterOption.IgnoreFellowshipRequests))
            {
                Session.Network.EnqueueSend(new GameMessageSystemChat($"{newPlayer.Name} is not accepting fellowship requests.", ChatMessageType.Fellowship));
                Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.FellowshipIgnoringRequests));
            }
            else if (Fellowship != null)
            {
                if (Guid.Full == Fellowship.FellowshipLeaderGuid || Fellowship.Open)
                {
                    Fellowship.AddFellowshipMember(this, newPlayer);
                }
                else
                {
                    Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.YouMustBeLeaderOfFellowship));
                }
            }
        }
Exemplo n.º 2
0
 public void FellowshipRecruit(Player newPlayer)
 {
     if (newPlayer.GetCharacterOption(CharacterOption.IgnoreFellowshipRequests))
     {
         Session.Network.EnqueueSend(new GameMessageSystemChat($"{newPlayer.Name} is not accepting fellowing requests.", ChatMessageType.Fellowship));
     }
     else if (Fellowship != null)
     {
         if (Guid.Full == Fellowship.FellowshipLeaderGuid || Fellowship.Open)
         {
             Fellowship.AddFellowshipMember(this, newPlayer);
         }
         else
         {
             Session.Network.EnqueueSend(new GameMessageSystemChat("You are not the fellowship leader.", ChatMessageType.Fellowship));
         }
     }
 }
Exemplo n.º 3
0
        public void FellowshipRecruit(Player newPlayer)
        {
            if (newPlayer == null)
            {
                return;
            }

            if (newPlayer.GetCharacterOption(CharacterOption.IgnoreFellowshipRequests))
            {
                Session.Network.EnqueueSend(new GameMessageSystemChat($"{newPlayer.Name} is not accepting fellowship requests.", ChatMessageType.Fellowship));
                Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.FellowshipIgnoringRequests));
            }
            else if (Fellowship != null)
            {
                if (Guid.Full == Fellowship.FellowshipLeaderGuid || Fellowship.Open)
                {
                    Fellowship.AddFellowshipMember(this, newPlayer);
                }
                else
                {
                    Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.YouMustBeLeaderOfFellowship));
                }
            }
        }