public uint Execute(PacketDistributed ipacket)
        {
            CG_PRELIMINARY_APPLYGUILDWAR packet = (CG_PRELIMINARY_APPLYGUILDWAR )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Exemple #2
0
    void ClickEnterPreliminaryGuildWar()
    {
        Obj_MainPlayer _mainPlayer = Singleton <ObjManager> .GetInstance().MainPlayer;

        if (_mainPlayer)
        {
            CG_PRELIMINARY_APPLYGUILDWAR ApplyPak = (CG_PRELIMINARY_APPLYGUILDWAR)PacketDistributed.CreatePacket(MessageID.PACKET_CG_PRELIMINARY_APPLYGUILDWAR);
            ApplyPak.SetObjid(_mainPlayer.ServerID);
            ApplyPak.SendPacket();
        }
    }