public void REQ_INVITE_FRIEND() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; int limitFriendCount = BASE_FRIENDCOUNTLIMIT_DATA.GetLimitFriendCount((short)kMyCharInfo.GetLevel()); if (kMyCharInfo.m_kFriendInfo.GetFriendCount() >= limitFriendCount) { return; } if (Friend_InvitePersonManager.Get_Instance().IsAble_InvitePerson(kMyCharInfo.GetLevel(), kMyCharInfo.m_kFriendInfo.GetFriendCount())) { GS_GUIDE_INVITE_FRIEND_REQ gS_GUIDE_INVITE_FRIEND_REQ = new GS_GUIDE_INVITE_FRIEND_REQ(); gS_GUIDE_INVITE_FRIEND_REQ.ui8ReqType = 0; SendPacket.GetInstance().SendObject(912, gS_GUIDE_INVITE_FRIEND_REQ); } }
public void BtClickRecommend(IUIObject obj) { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; int limitFriendCount = BASE_FRIENDCOUNTLIMIT_DATA.GetLimitFriendCount((short)kMyCharInfo.GetLevel()); if (kMyCharInfo.m_kFriendInfo.GetFriendCount() >= limitFriendCount) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("630"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } this.fStartTime_InviteFriend = Time.realtimeSinceStartup; this.m_bInviteFriend = true; this.m_btFriendRecommend.SetEnabled(false); GS_GUIDE_INVITE_FRIEND_REQ gS_GUIDE_INVITE_FRIEND_REQ = new GS_GUIDE_INVITE_FRIEND_REQ(); gS_GUIDE_INVITE_FRIEND_REQ.ui8ReqType = 1; SendPacket.GetInstance().SendObject(912, gS_GUIDE_INVITE_FRIEND_REQ); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.COMMUNITY_DLG); this.Close(); }