public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_REWARD_QUEST + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutInt(unk4);
            message.PutInt(unk5);
            message.PutInt(unk6);
            message.PutInt(unk7);
            message.PutInt(unk8);
            message.PutInt(unk9);
            message.PutShort(unk10);
            message.PutInt(sp);     // eax, [esi+37h]
            message.PutInt(exp);    // edx, [esi+3Bh]
            message.PutInt(rupees); // ecx, [esi+3Fh]
            message.PutInt(coins);  //  eax, [esi+43h]
            message.PutInt(unk11);  //  edx, [esi+47h]
            message.PutInt(unk12);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(AuthServerEnums.TM_SC_SELECT_SERVER + 1);

            message.PutByte((byte)status);

            return(MessageManager.Build(message, false));
        }
Exemple #3
0
        public override byte[] Pack()
        {
            var message = new Message(LobbyServerEnums.BM_SC_END_GAME + 1);

            message.PutString(successCmd);

            return(MessageManager.Build(message, true));
        }
Exemple #4
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.MM_SC_FRIEND_REQUEST + 1);

            message.PutString(successCmd);

            return(MessageManager.Build(message, true));
        }
Exemple #5
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_SELECT_CHARACTER + 1);

            message.PutString(successCmd);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(LobbyServerEnums.BM_SC_UNKNOW_INFO + 1);

            message.PutString(charName.PadRight(40, '\0'));

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_LEAVE_INVENTORY + 1);

            message.PutString(successCmd);

            return(MessageManager.Build(message, true));
        }
Exemple #8
0
        public override byte[] Pack()
        {
            var message = new Message(LobbyServerEnums.BM_SC_MAP_INFO + 1);

            message.PutShort(mapId);

            return(MessageManager.Build(message, true));
        }
Exemple #9
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_EXCHANGE_MONEY + 1);

            message.PutString(successCmd);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message((UInt16)RelayServerEnums.NM_SC_GET_SERVER_TICK);

            message.PutString(successCmd);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BS_SC_EXPAND_SLOT + 1);

            message.PutString(result);

            return(MessageManager.Build(message, true));
        }
Exemple #12
0
        public override byte[] Pack()
        {
            var message = new Message(RelayServerEnums.NM_SC_PLAYER_INFO + 1);

            message.PutString(successCmd);

            return(MessageManager.Build(message, true));
        }
Exemple #13
0
        public override byte[] Pack()
        {
            var message = new Message(LobbyServerEnums.BM_SC_CREATE_ROOM + 1);

            message.PutString(successCmd);
            message.PutShort(mapId);

            return(MessageManager.Build(message, true));
        }
Exemple #14
0
        public override byte[] Pack()
        {
            var message = new Message((UInt16)AuthServerEnums.TM_SC_RESULT);

            message.PutByte(unk0);
            message.PutByte(resultId);

            return(MessageManager.Build(message, false));
        }
Exemple #15
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_CREATE_CLAN + 1);

            message.PutString(resultCmd);
            message.PutInt(unk0);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_UPDATE_MYMATEINFO + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(LobbyServerEnums.BM_SC_ENTER_ROOM + 1);

            message.PutString(resultCmd);
            message.PutInt(unk0);

            return(MessageManager.Build(message, true));
        }
Exemple #18
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_MINIGAME_START + 1);

            message.PutInt(1);
            message.PutInt(41505);
            message.PutString(charName.PadRight(40, '\0'));
            message.PutInt(41505);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_PLAYER_CHARACTER_INFO + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutString(charName.PadRight(40, '\0'));
            message.PutInt(unk4);
            message.PutInt(unk5);
            message.PutByte((byte)unk6);
            message.PutByte((byte)charType);
            message.PutByte((byte)unk7);
            message.PutInt(unk8);
            message.PutInt(unk9);
            message.PutInt(unk10);
            message.PutInt(unk11);
            message.PutInt(unk12);
            message.PutInt(unk13);
            message.PutInt(unk14);
            message.PutInt(unk15);
            message.PutInt(charLevel);
            message.PutInt(unk16);
            message.PutInt(unk17);
            message.PutInt(unk18);
            message.PutInt(unk19);
            message.PutInt(unk20);
            message.PutInt(head);
            message.PutInt(face);
            message.PutInt(upper);
            message.PutInt(lower);
            message.PutInt(foot);
            message.PutInt(hand);
            message.PutInt(google);
            message.PutInt(accesoire);
            message.PutInt(theme);
            message.PutInt(mantle);
            message.PutInt(buckle);
            message.PutInt(vent);
            message.PutInt(nitro);
            message.PutInt(wheels);
            message.PutByte((byte)unk21);
            message.PutInt(unk22);
            message.PutInt(trickSize);

            for (int i = 0; i < (trickSize - 1); i++)
            {
                PutTrick(message, client.account.Trick[i].Id, client.account.Trick[i].Level, client.account.Trick[i].Apply);
            }

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_MINIGAME_FINISH + 1);

            message.PutInt(41504);
            message.PutByte(1);
            message.PutInt(41504);
            message.PutInt(41504);

            return(MessageManager.Build(message, true));
        }
Exemple #21
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_CHAT_USER + 1);

            message.PutString("SUCCESS\0");
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);

            return(MessageManager.Build(message, true));
        }
Exemple #22
0
        public override byte[] Pack()
        {
            var message = new Message(LobbyServerEnums.BM_SC_LEAVE_ROOM + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_CASH_BALANCE_INFO + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutInt(coin);

            return(MessageManager.Build(message, true));
        }
Exemple #24
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_CREATE_CLAN + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutString(clanName.PadRight(20, '\0').Replace("\0", string.Empty));

            return(MessageManager.Build(message, true));
        }
Exemple #25
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_CS_UPDATE_QP + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutInt(questpoints);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_SELECT_TRICK + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutInt(trickId);

            return(MessageManager.Build(message, true));
        }
Exemple #27
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_ENTER_CHANNEL + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutByte(channel_id);
            message.PutByte(channel_id);

            return(MessageManager.Build(message, true));
        }
Exemple #28
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_ITEM_USE + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutInt(itemSlotNumber);
            message.PutShort(itemCount);

            return(MessageManager.Build(message, true));
        }
Exemple #29
0
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.MM_SC_MSN + 1);

            message.PutString(successCmd);
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutInt(unk4);
            message.PutInt(unk5);

            return(MessageManager.Build(message, true));
        }
        public override byte[] Pack()
        {
            var message = new Message(MmoServerEnums.BM_SC_SET_SESSION_MESSAGE + 1);

            message.PutString("SUCCESS\0");
            message.PutInt(unk0);
            message.PutInt(unk1);
            message.PutInt(unk2);
            message.PutInt(unk3);
            message.PutShort(unk4);
            message.PutString("Session_Msg");

            return(MessageManager.Build(message, true));
        }