Release of tutorial

Results 1 to 11 of 11
  1. #1
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Release of tutorial

    Hello guys. In 2007, when I started with Habbo Retro's, I was wondering how Habbo is being made. Now I know the answer.

    First, packet sending is nothing more then sending bytes to client. But, you can do SendMessage(MOTD); and that's a ServerMessage.

    1. SendData is being used. Convert MOTD into a string and use SendData(MOTD.ToString());
    2. Another SendData is being used. Convert the MOTD string into bytes and use SendData(Encoding.GetBytes(MOTD.ToString())); or something Similar to that.
    3. In the SendData of the bytes it send the bytes of servermessage MOTD to the socket server. But the only thing you have to do is know the packet numbers

    Some people think: What the fuck? Cata pages is 1 servermessage and 1 requesthandler?? Well.. The catalog pages servermessage is the outgoing data (the catalog header, teaser ect) and the requesthandler is the incoming data (also known as the client Message) which is for starting the void of the outgoing data.

    What about things like chatting

    The input is very easy. The socket client reads the text that was inputted in a text bar for example. In Snowlight Meth0d used this:

    Code:
    public string PopString(Encoding Encoding)
            {
                return Encoding.GetString(ReadFixedValue());
            }
    
    That could be used for simple text bar, but is very hard to know the encoding. The best (other) way to do is, is this:
            public string PopString()
            {
                return PopString(Constants.DefaultEncoding);
            }
    Using that void is much easier.

    For example, in my hotel it would be this:

    Code:
    internal void Chat()
    {
    string Mesanje = Request.PopWiredString();
    ServerMessage Chat = new ServerMessage(PACKET OUTGOING);
    Chat.AppendInt32(VirtualID);
    Chat.AppendString(Mesanje);
    Session.Connection.SendMessage(Chat);
    }
    How is shouting being made?

    Shouting is a pop wired/fixed boolean. If the user pressed 'shift' with 'enter' the value is true, else it's false.

    Questions?
    Post them here :3

    After this:
    As you can see: a lot of things are needed, and you just have to type in a text message in hotel to chat. Weird, isn't it?
    Last edited by Sean; 03-09-11 at 04:57 PM.


  2. #2
    Account Upgraded | Title Enabled! salah-salah is offline
    MemberRank
    Jan 2009 Join Date
    UndergroundLocation
    716Posts

    Re: Release of tutorial

    Okay thankyou what do you want now a like?

  3. #3
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Release of tutorial

    No? \o/

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

    Re: Release of tutorial

    I wanna log-in to your hotel!? lINK ?

  5. #5
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Release of tutorial

    It's not online, done, on vps, and ready to be played as it's a private hotel.

    --

    Thanks Sean for [CODE]ing my codes. (If I'm true I was too lazy to do it myself)

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

    Re: Release of tutorial

    Quote Originally Posted by George2000 View Post
    It's not online, done, on vps, and ready to be played as it's a private hotel.

    --

    Thanks Sean for [CODE]ing my codes. (If I'm true I was too lazy to do it myself)
    Btw if you dont clean any string, your hotel will be owned.

  7. #7
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Release of tutorial

    Quote Originally Posted by wichard View Post
    Btw if you dont clean any string, your hotel will be owned.
    Only if you're a bad hotel owner, and I'm not (especially I make too much people staff X])

  8. #8
    HTML,CSS and a bit C# Richardjuhh is offline
    MemberRank
    Dec 2010 Join Date
    NetherlandsLocation
    351Posts

    Re: Release of tutorial

    Quote Originally Posted by George2000 View Post
    Only if you're a bad hotel owner, and I'm not (especially I make too much people staff X])
    lol'd he mean hacked by him, cuz you not clean any string is very bad..

  9. #9
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Release of tutorial

    Quote Originally Posted by Richardjuhh View Post
    lol'd he mean hacked by him, cuz you not clean any string is very bad..
    But I didn't make it. And who said Snowlight IS my hotel emu?

  10. #10
    Minor Devolper ntl200 is offline
    MemberRank
    Dec 2007 Join Date
    EnglandLocation
    538Posts

    Re: Release of tutorial

    haha Request.PopWiredString();

    look man its painful to see you keep teaching the wrong stuff, how many people want shitty exploitable codes?

    its clear to me why wichard asked for your hotel url, he wanted to fuck up your hotel because you just shown us a "weakness"

  11. #11
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Release of tutorial

    Quote Originally Posted by ntl200 View Post
    haha Request.PopWiredString();

    look man its painful to see you keep teaching the wrong stuff, how many people want shitty exploitable codes?

    its clear to me why wichard asked for your hotel url, he wanted to fuck up your hotel because you just shown us a "weakness"
    My pinging interval was 3, means I was bored. I just did this bcuz I was bored.



Advertisement