Welcome to the RaGEZONE - MMORPG development forums.

Start coding in C# [ION] - Packet Structure

This is a discussion on Start coding in C# [ION] - Packet Structure within the Habbo Tutorials forums, part of the Habbo Hotel category; Hello, A few days ago I start coding Project Nightline. I am giving away an easy tutorial about how to ...

LyncusMU
Results 1 to 4 of 4
  1. #1
    Working in private usage.
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    On FrostEmu
    Posts
    886
    Liked
    128

    Start coding in C# [ION] - Packet Structure

    Tabo Hotel
    Hello,

    A few days ago I start coding Project Nightline. I am giving away an easy tutorial about how to code. It works on Uber aswell because most things are same (Database usage, reading tables, Servermessage) ect..

    1. Packet structure (for example we'll use LjIHey Hebbo!

    Starts with the packet. It's Lj. But.. you cannot use a string as packet header, so convert it into B64 with a Packet Scout. It'll say 810.

    Your first part will be:
    ServerMessage MOTD = new Servermessage(810);
    or..
    ServerMessage MOTD = new Servermessage();

    If you choosed ServerMessage MOTD = new Servermessage(); add below:
    MOTD.Initialize(810);

    Then you'll see I. This is a VL64 string. But you must convert it into a number. Do it with Packet Scout (recommended: LittleJ's Packet Scout). It'll be 1. H = always 0/false and I = always 1.

    Your next line will be:
    MOTD.AppendInt32(1);

    Then you'll see Hey Hebbo (taken from my own hotel) That's simply the text. Your next line will be:

    MOTD.AppendString("Text here");

    Now in a simple void:
    Code:
    internal void MessageOfTheDay(string Text)
    {
    ServerMessage MOTD = new Servermessage(810);
    MOTD.AppendInt32(1);
    MOTD.AppendString(Text);
    }
    Or..
    Code:
    internal void MessageOfTheDay(string Text)
    {
    ServerMessage MOTD = new Servermessage();
    MOTD.Initialize(810);
    MOTD.AppendInt32(1);
    MOTD.AppendString(Text);
    }
    Uber:
    Code:
    internal void MessageOfTheDay(string Text)
    {
    ServerMessage MOTD = new Servermessage(810);
    MOTD.AppendInt32(1);
    MOTD.AppendStringWithBreak(Text);
    }
    or..
    Code:
    internal void MessageOfTheDay(string Text)
    {
    ServerMessage MOTD = new Servermessage();
    MOTD.Init(810);
    MOTD.AppendInt32(1);
    MOTD.AppendStringWithBreak(Text);
    }
    Credits:
    Nillus - ION/Deltar
    Me - Tutorial
    Someone - Creating the void for uber.

    More things coming soon.

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    Back from temporary leave
    Rank
    Member +
    Join Date
    Nov 2010
    Location
    :O You PERVERT!
    Posts
    978
    Liked
    62

    Re: Start coding in C# [ION] - Packet Structure

    Wow i dont know anything about coding and as soon as i read the first words of the tutorial i was like :confused:

  4. #3
    Duck Hosts ***** (siggy)
    Rank
    Member +
    Join Date
    Dec 2010
    Location
    Australia
    Posts
    1,245
    Liked
    528

    Re: Start coding in C# [ION] - Packet Structure

    Well Josh.

    You have obviously boosted your knowledge on Habbo programming :)

  5. #4
    Moderator
    Rank
    Moderator
    Join Date
    Jan 2007
    Location
    Tupelo, Mississ
    Posts
    1,486
    Liked
    268

    Re: Start coding in C# [ION] - Packet Structure

    Yay, so we can have people running around who know nothing, but can follow a tutorial to get a certain output? Stop learning from these f*cking sources, and learn what your doing when you do the things inside them.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •