BrickEmulator [C#] Pooling Sockets + From Scratch

Page 30 of 38 FirstFirst ... 202223242526272829303132333435363738 LastLast
Results 436 to 450 of 558
  1. #436
    Account Upgraded | Title Enabled! AWA is offline
    MemberRank
    Feb 2008 Join Date
    1,320Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wichard View Post
    Proof of cracking:

    Do you still not understand that that is not 'the encryption'. What you've done can be accomplished by, I guess everybody with some knowledge of coding and packets...

  2. #437
    this is title Shredinator is offline
    MemberRank
    May 2011 Join Date
    399Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    This thread is about the emulator, not a packetlogger - and if it helps him in development, then who cares if its not 100% done right?

  3. #438
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by AWA View Post
    Do you still not understand that that is not 'the encryption'. What you've done can be accomplished by, I guess everybody with some knowledge of coding and packets...
    Lol, whatever it is, i cracked it ;D

    ---------- Post added at 09:21 PM ---------- Previous post was at 09:19 PM ----------

    Quote Originally Posted by Dominic A Gunn View Post
    Looks like the same message repeated over and over, there's nothing 'cracked' there. You may have simply started to understand how Habbo now handles messages. Wont help you much with developing on the latest client version
    Have a look @ this:

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace SpeedEmulator.Messages
    {
        class Response
        {
            private readonly int HeaderId;
    
            public StringBuilder Builder = new StringBuilder();
    
            private int LenghtBuilder = new int();
    
            public Response(int HeaderId)
            {
                this.HeaderId = HeaderId;
            }
    
            public void AppendInt16(short i)
            {
                byte[] Bytes = BitConverter.GetBytes(i);
    
                for (int e = 1; e > -1; e--)
                {
                    Builder.Append((char)Bytes[e]);
                }
    
                LenghtBuilder += 2;
            }
    
            public void AppendInt32(int i)
            {
                byte[] Bytes = BitConverter.GetBytes(i);
    
                for (int e = 3; e > -1; e--)
                {
                    Builder.Append((char)Bytes[e]);
                }
    
                LenghtBuilder += 4;
            }
    
            public void AppendChar(int i)
            {
                byte Byte = BitConverter.GetBytes(i)[0];
    
                Builder.Append((char)Byte);
    
                LenghtBuilder++;
            }
    
            public void AppendShortBoolean(bool Bool)
            {
                byte Byte = BitConverter.GetBytes((Bool) ? 1 : 0)[0];
    
                Builder.Append((char)Byte);
    
                LenghtBuilder++;
            }
    
            public void AppendBoolean(bool Bool)
            {
                AppendInt32((Bool) ? 1 : 0);
            }
    
            public void AppendStringWithBreak(string i)
            {
                AppendInt16((short)i.Length);
    
                Builder.Append(i);
    
                LenghtBuilder += i.Length;
            }
    
            public byte[] GetBytes()
            {
                StringBuilder Merge = new StringBuilder();
    
                var LenghtBytes = BitConverter.GetBytes((LenghtBuilder + 2));
    
                for (int i = 3; i > -1; i--) // All 4 bytes :D
                {
                    Merge.Append((char)LenghtBytes[i]);
                }
    
                var Headerbytes = BitConverter.GetBytes(HeaderId);
    
                for (int i = 1; i > -1; i--) // First 2 Bytes :o
                {
                    Merge.Append((char)Headerbytes[i]);
                }
    
                foreach (char c in Builder.ToString().ToCharArray()) // Content Bytes
                {
                    Merge.Append(c);
                }
    
                return Encoding.UTF8.GetBytes(Merge.ToString());
            }
        }
    }


    ---------- Post added at 09:21 PM ---------- Previous post was at 09:21 PM ----------

    Ok, guys back to the development ;D

  4. #439
    Eye Eye Capt'n Spheral is offline
    MemberRank
    May 2010 Join Date
    TumptonshireLocation
    2,488Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Exactly.

  5. #440
    Learning C# - Developer wy479 is offline
    MemberRank
    Nov 2010 Join Date
    :O You PERVERT!Location
    1,132Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Brickemulator pic that ive assumed (Like a pie chart or whatever):

    Note: I did the picture quick and i assume thats what its having. Wired has three Top is trigger Middle is effects and bottum is conditions. I did this pic quick so dont flame me for it.

  6. #441
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wy479 View Post
    Brickemulator pic that ive assumed (Like a pie chart or whatever):

    Note: I did the picture quick and i assume thats what its having. Wired has three Top is trigger Middle is effects and bottum is conditions. I did this pic quick so dont flame me for it.
    I don't understand?

  7. #442
    Learning C# - Developer wy479 is offline
    MemberRank
    Nov 2010 Join Date
    :O You PERVERT!Location
    1,132Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Basically im assuming it will have all games all marketplace coding everywhere (good coding) Wired going to be added in and a good cata :P I WANNA TEST IT :O

  8. #443
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wy479 View Post
    Brickemulator pic that ive assumed (Like a pie chart or whatever):

    Note: I did the picture quick and i assume thats what its having. Wired has three Top is trigger Middle is effects and bottum is conditions. I did this pic quick so dont flame me for it.
    O- M-G

  9. #444
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    brickDevelopment Application

    Snapshot


    Download Brickdevelopment.exe

  10. #445
    BFH Experience Loader Mininova is offline
    MemberRank
    Oct 2007 Join Date
    WonderlandLocation
    724Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wichard View Post
    brickDevelopment Application

    Snapshot


    Download Brickdevelopment.exe
    For what is this ?
    Only for Twitter ?



    Edit:


    Im the first follower ^^

  11. #446
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by gammer123 View Post
    For what is this ?
    Only for Twitter ?



    Edit:


    Im the first follower ^^
    Yup thats right.

    ---------- Post added at 02:07 PM ---------- Previous post was at 01:55 PM ----------

    Or just goto: Twitter

  12. #447
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wichard View Post
    brickDevelopment Application

    Snapshot


    Download Brickdevelopment.exe
    virus scan?

  13. #448
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by davidaap View Post
    virus scan?
    I need a virus scan for you ='D

    It's clean :)

  14. #449
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Verifying Wall Position:

    Code:
            public string VerifyWallPosition(string Position)
            {
                if (string.IsNullOrEmpty(Position))
                {
                    return null;
                }
    
                if (Position.Contains(Convert.ToChar(13)) || Position.Contains(Convert.ToChar(9)))
                {
                    return null;
                }
    
                string Filtered = Position.Replace(":", string.Empty).ToLower();
    
                string[] Split = Filtered.Split(' ');
    
                if (Split.Length != 3)
                {
                    return null;
                }
    
                string[] WidthRaw = Split[0].Replace("l", string.Empty).Split(',');
                int[] WidthInts = new int[2];
    
                foreach (string raw in WidthRaw)
                {
                    int Out = -1;
    
                    if (!int.TryParse(raw, out Out))
                    {
                        return null;
                    }
    
                    if (Out < 0 || Out > 200)
                    {
                        return null;
                    }
    
                    WidthInts[Array.IndexOf(WidthRaw, raw)] = Out;
                }
    
                string[] LenghtRaw = Split[1].Replace("l", string.Empty).Split(',');
                int[] LenghtInts = new int[2];
    
                foreach (string raw in LenghtRaw)
                {
                    int Out = -1;
    
                    if (!int.TryParse(raw, out Out))
                    {
                        return null;
                    }
    
                    if (Out < 0 || Out > 200)
                    {
                        return null;
                    }
    
                    LenghtInts[Array.IndexOf(LenghtRaw, raw)] = Out;
                }
    
                char WallCharacter = Split[2][0];
    
                if (!WallCharacter.Equals('l') && !WallCharacter.Equals('r'))
                {
                    return null;
                }
    
                return string.Format(":{0} {1} {2}", string.Format("{0}={1},{2}", 'w', WidthInts[0], WidthInts[1]), string.Format("{0}={1},{2}", 'l', LenghtInts[0], LenghtInts[1]), WallCharacter);
            }

  15. #450
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by joopie View Post
    I need a virus scan for you ='D

    It's clean :)
    i think so :P



Advertisement