Revolution Emulator [C#, R63B, Encryption Cracked, DAO, Fluent NHibernate, Lua Plugin, Mono]

Status
Not open for further replies.

Zak

Posting Freak
Mar 12, 2011
848
453
Yeah we've been good mates for about a year now. And he's working on the hard bit. The Habbo RC4 crack [client]
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Yeah we've been good mates for about a year now. And he's working on the hard bit. The Habbo RC4 crack [client]

Looking forward to this even more then, good luck with and and nice work on current progress!
 

Zak

Posting Freak
Mar 12, 2011
848
453
Cheers, also good luck on your project to *winks*
 

Zak

Posting Freak
Mar 12, 2011
848
453
Code:
        public static string GetDatabase()
        {
            if (Config.GetString("rSql.Database.Type").Contains("Phoenix"))
            {
                return RevEmu.DatabaseTypeSystem.DatabaseTypes.GetStructureTypes.Phoenix.GetTablesAndColumns();
            }
        }

Example of multiple structure system.

You will see the rest of it fully completed in the framework release.
 

DiverseLulz

Learning C# :D
Sep 26, 2011
90
9
Hurry and get some ingame screens! I'm a bit thick at the moment, There's an RP system? If so I will definitely making the switch from Phoenix (Licensed Not cracked) To RevEmu.
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
Wow, Zak I can't believe this. You are actually doing what Meth0d couldn't do (not that much though). I'm really looking forward to this. And I heard you wanted a logo for RevEMU? No problem, I'm on it :)

Regards, good luck!
 

Zak

Posting Freak
Mar 12, 2011
848
453
Hurry and get some ingame screens! I'm a bit thick at the moment, There's an RP system? If so I will definitely making the switch from Phoenix (Licensed Not cracked) To RevEmu.

One of the reasons Uber emulator failed was because it was rushed.

I'm kind of doing a database system here. Most the basic needs for the SSO are done. I just need to finish coding the multiple database system.

I gotta log each table, and each field/column, you don't know how annoying that is. Typing each field into a variable and giving it the right string name for the rows. And then re-doing a the variables again for the values like varchar = C# string etc.

So for fuck sake give some time i've been pulling all nighters on this, and been sleeping half way in school.
 

Zak

Posting Freak
Mar 12, 2011
848
453
This is a framework you can code it for any CMS you want.

But the actual server will support any CMS.
 

Zak

Posting Freak
Mar 12, 2011
848
453
Schools, been a piss a big piss.

Well them bastards on strike haha, so yes! that means tomorrow is a 24 hour Rev coding session!
 

Zak

Posting Freak
Mar 12, 2011
848
453


Code:
using System;

using RevEmu.Sockets;
using RevEmu.Environment;
using System.Reflection;

namespace RevEmu
{
    class RevEnvironment
    {

        static void Main()
        {
            // Console
            {
                Console.Title = "RevEmu ~ Advanced Emulator For The Habbo Environment | Version: " + Assembly.GetExecutingAssembly().GetName().Version;
            }
       
            //Config
            {
                Config.LoadConfig();
            }
            //Crypto
            {

                Habbo_Encoding.Encoding.PrepareCryptoSystem();
            }

            //Mysql
            {

                var connection = new MySql.DatabaseConnection();
            }

            //Socket
            {
                rSocketsEngine.AcceptAsyncTCPConnection();

            }

            // DatabaseType Test
            {
                var type = Config.GetBoolean("rSql.Database.Type");
                if (Config.GetString("rSql.Database.Type").Contains("Phoenix"))
                {
                    Console.WriteLine("Phoenix Is the Database Type");
                }
            }

            //Console Stuff
            {

                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("RevEmu Loaded");
                Console.ReadLine();
            }

        }
    }
}

This is what so far is coded in the whole emulator. As you see i was test checking if it would give the correct answer if the value in the config is Phoenix.
This will become a switch method for the actual system so it will be easier to register tables.
 

Shorty

<insert title>
Jul 14, 2011
113
129
Good luck and nice to see Maarten as your partner, worked with him before on a few private projects. ;)
 

Zak

Posting Freak
Mar 12, 2011
848
453
Aye, well thanks to Maarten the ServerMessage is being improved, i'll upload it once it's done.
 

Zak

Posting Freak
Mar 12, 2011
848
453
Got rid of them lousy IHabbo if statements.

Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace RevEmu.rMessage
{
    public struct SM
    {
        #region Fields
        private Int16 _header;
        private StringBuilder _contentBuilder;
        #endregion

        #region Constructors

        public SM(Int16 header)
        {
            _header = header;
            _contentBuilder = new StringBuilder();

            AppendShort(header);
        }
        #endregion

        #region Methods

        public void AppendShort(Int16 int16)
        {
            _contentBuilder.Append(BitConverter.GetBytes(int16));
        }

        public void AppendUShort(UInt16 uint16)
        {
            _contentBuilder.Append(BitConverter.GetBytes(uint16));
        }

        public void AppendUInt32(UInt32 uint32)
        {
            _contentBuilder.Append(BitConverter.GetBytes(uint32));
        }

        public void AppendInt(Int32 int32)
        {
            _contentBuilder.Append(BitConverter.GetBytes(int32));
        }

        public void AppendString(string String, Boolean enableChar)
        {
            _contentBuilder.Append((short)String.Length);
            _contentBuilder.Append(Encoding.Default.GetBytes(String));
        }

        public void AppendBool(Boolean Bool)
        {
            _contentBuilder.Append(BitConverter.GetBytes((Bool) ? 1 : 0)[0]);
        }

        public void AppendBytes(byte[] bytes)
        {
            for (var i = (bytes.Length - 1); i > -1; i--)
            {
                _contentBuilder.Append(bytes[i]);
            }
        }
        #endregion

        #region Quick Returns
        public int GetHeader()
        {
            return _header;
        }

        public string GetString()
        {
            return Encoding.Default.GetString(GetBytes());
        }

        public byte[] GetBytes()
        {
            var bytes = new List<Byte>();
            var content = new List<Byte>();
            var lengthBits = BitConverter.GetBytes(content.Count);

            bytes.AddRange(lengthBits);
            bytes.Reverse();
            bytes.AddRange((IEnumerable<byte>) content);

            return bytes.ToArray();
        }
        #endregion
    }
}
 

Zak

Posting Freak
Mar 12, 2011
848
453
Code:
/*
 * `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 * `page_id` int(11) NOT NULL,
 * `item_ids` varchar(120) NOT NULL,
 * catalog_name` varchar(100) NOT NULL,
 * `cost_credits` int(11) NOT NULL,
 * `cost_pixels` int(11) NOT NULL,
 * `cost_snow` int(11) NOT NULL DEFAULT '0',
 * `amount` int(11) NOT NULL,
 * PRIMARY KEY (`id`)
 */

namespace RevEmu.DatabaseTypeSystem.Phoenix
{
    class CatalogueItems
    {
        //Columns Registerd Here.
        public static int Id;
        public static int PageId;
        public static string ItemIds;
        public static string CatalogName;
        public static int CostCredits;
        public static int CostPixels;
        public static int CostSnow;
        public static int Amount;
    }

    //Example use: DataRow
    class StringConvertedCatalogueColumns
    {
        public static string Id = "id";
        public static string PageId = "page_id";
        public static string ItemIds = "item_ids";
        public static string CatalogName = "catalog_name";
        public static string CostCredits = "cost_credits";
        public static string CostPixels = "cost_pixels";
        public static string CostSnow = "cost_snow";
        public static string Amount = "amount";

        public static void CheckColumns()
        {
            //Run Check if Exist Querys, To Make Sure Each Column Is Correct.
        }
    }
}

Simple. Will be improved if needed.
 

Endo

Member
Jan 8, 2011
59
9
Code:
/*
* `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
* `page_id` int(11) NOT NULL,
* `item_ids` varchar(120) NOT NULL,
* catalog_name` varchar(100) NOT NULL,
* `cost_credits` int(11) NOT NULL,
* `cost_pixels` int(11) NOT NULL,
* `cost_snow` int(11) NOT NULL DEFAULT '0',
* `amount` int(11) NOT NULL,
* PRIMARY KEY (`id`)
*/
 
namespace RevEmu.DatabaseTypeSystem.Phoenix
{
    class CatalogueItems
    {
        //Columns Registerd Here.
        public static int Id;
        public static int PageId;
        public static string ItemIds;
        public static string CatalogName;
        public static int CostCredits;
        public static int CostPixels;
        public static int CostSnow;
        public static int Amount;
    }
 
    //Example use: DataRow
    class StringConvertedCatalogueColumns
    {
        public static string Id = "id";
        public static string PageId = "page_id";
        public static string ItemIds = "item_ids";
        public static string CatalogName = "catalog_name";
        public static string CostCredits = "cost_credits";
        public static string CostPixels = "cost_pixels";
        public static string CostSnow = "cost_snow";
        public static string Amount = "amount";
 
        public static void CheckColumns()
        {
            //Run Check if Exist Querys, To Make Sure Each Column Is Correct.
        }
    }
}

Simple. Will be improved if needed.

I like your method of coding the emulator :]
 

Brennen

hippopotomonstrosesquipedaliophobia
Nov 6, 2011
291
36
Woot! Cant wait for ingames! Hopefully it runs fast too! (Depending on VPS/Computer Specs)
 
Status
Not open for further replies.

Users who are viewing this thread

Top