예제 #1
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_CHANGENAME packet = (GC_CHANGENAME)ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            ChangeNameLogic.ShowChangeName((ChangeNameLogic.ChangeNameType)packet.Nametype);
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
예제 #2
0
    //改名对话相关
    void OnChangeNameForCombineServer()
    {
        if (!Singleton <ObjManager> .GetInstance().MainPlayer)
        {
            return;
        }

        if (Singleton <ObjManager> .GetInstance().MainPlayer.IsNameWithCombineServerSign())
        {
            ChangeNameLogic.ShowChangeName(ChangeNameLogic.ChangeNameType.ChangeNameType_PlayerName_CombineServer);
        }
        else
        {
            Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{3341}");
        }
    }