예제 #1
0
        public Packets(short opcode, Readers Ler, User here, byte[] buffer)
        {
            switch (opcode)
            {
            case 0:
            {
                heartbeat.HeartBeatNot(here);
                break;
            }

            case 2:
            {
                player.logar(here, Ler);
                break;
            }

            case 17:
            {
                Guidebook.GuideBookList(here);
                break;
            }

            case 23:
            {
                loadImages.LoadList(here);
                break;
            }

            case 25:
            {
                ping.ping(here);
                break;
            }

            case 27:
            {
                SHAFile.NamesList(here);
                break;
            }

            default:
            {
                log.Hex("Recebido, OpCode {" + opcode + "} Payload: ", buffer, 1);
                break;
            }
            }
        }
예제 #2
0
        public Packets(short opcode, Readers Ler, User here, byte[] buffer, PlayerInfo pInfo)
        {
            switch (opcode)
            {
            case 0:
            {
                heartbeat.HeartBeatNot(here);
                break;
            }

            case 2:
            {
                player.logar(here, pInfo, charsInfo, Ler);
                break;
            }

            case 24:
            {
                canal.CriarSala(here, pInfo, Ler, charsInfo);
                break;
            }

            case 16:
            {
                canal.Salas(here, Ler);
                break;
            }


            case 423:
            {
                spInfo.fullspInfo(here);
                break;
            }

            case 1555:
            {
                joinchar.CharSelectJoin(here);
                break;
            }

            case 871:
            {
                cost_rate.cost_rate(here);
                break;
            }

            case 1106:
            {
                agitmap.map(here);
                break;
            }

            case 1184:
            {
                fairytreelvtable.lvtable(here);
                break;
            }

            case 1340:
            {
                depotInfo.Info(here);
                break;
            }

            case 1012:
            {
                Choicebox.list(here);
                channellist.ChannelList(here);
                break;
            }

            case 12:
            {
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 14:
            {
                channellist.ChannelList(here);
                break;
            }

            case 33:
            {
                SairdaSala.leaveroom(here);
                break;
            }

            case 36:
            {
                playgame.rungame(here);
                break;
            }

            case 39:
            {
                Loading.LoadCompleteNot(here);
                break;
            }

            case 927:
            {
                stageLoading.stageLoadComplete(here);
                break;
            }

            case 20:
            {
                join.enterRoom(here, Ler, charsInfo);
                break;
            }

            case 26:
            {
                exit0.SairDoCanal(here);
                break;
            }

            case 6:
            {
                getChat.chat(here, Ler);
                break;
            }

            case 18:
            {
                playerlist.userlist(here);
                break;
            }

            case 886:
            {
                HeroItemC.Lista_De_Item(here);
                break;
            }

            case 889:
            {
                HeroItemM.Item_Material(here);
                break;
            }

            case 806:
            {
                ManuF.Manu(here);
                break;
            }

            case 804:
            {
                ManuC.Manu(here);
                break;
            }

            case 1465:
            {
                SpecItemB.SpecificItemB(here);
                break;
            }

            default:
            {
                log.Hex("Recebido, OpCode {" + opcode + "} Payload: ", buffer);
                break;
            }
            }
        }
예제 #3
0
        public Packets(short opcode, Readers Ler, User here, byte[] buffer, PlayerInfo pInfo)
        {
            switch (opcode)
            {
            case 0:
            {
                heartbeat.HeartBeatNot(here);
                break;
            }

            case 2:
            {
                player.logar(here, pInfo, charsInfo, Ler);
                break;
            }

            case 24:
            {
                canal.CriarSala(here, pInfo, Ler, charsInfo);
                break;
            }

            case 423:
            {
                spInfo.fullspInfo(here);
                break;
            }

            case 1555:
            {
                joinchar.CharSelectJoin(here);
                break;
            }

            case 871:
            {
                cost_rate.cost_rate(here);
                break;
            }

            case 1106:
            {
                agitmap.map(here);
                break;
            }

            case 1184:
            {
                fairytreelvtable.lvtable(here);
                break;
            }

            case 1340:
            {
                depotInfo.Info(here);
                break;
            }

            case 1012:
            {
                Choicebox.list(here);
                channellist.ChannelList(here);
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 12:
            {
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 14:
            {
                channellist.ChannelList(here);
                enterChannel.enterchannel(here, Ler);
                break;
            }

            case 33:
            {
                SairdaSala.leaveroom(here);
                break;
            }

            case 36:
            {
                playgame.rungame(here);
                break;
            }

            case 39:
            {
                Loading.LoadCompleteNot(here);
                break;
            }

            case 927:
            {
                stageLoading.stageLoadComplete(here);
                break;
            }

            default:
            {
                log.Hex("Recebido, OpCode {" + opcode + "} Payload: ", buffer, 1);
                break;
            }
            }
        }