Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
Anchor [V3] [MySQL - C#] [Edit protocol without source]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Quackster" data-source="post: 88811" data-attributes="member: 971"><p><span style="font-size: 22px"><span style="font-family: 'Times New Roman'">AnchorV3</span></span></p><p></p><p><strong>Introduction</strong></p><p></p><p>Well I am here just to introduce something new to these forums, a new approach, or idea if I must say. I recently saw on my videos which had <em><a href="http://www.youtube.com/watch?v=ttMG_WVpVO0&feature=related" target="_blank">AnchorV2</a></em>, I unfortunately lost the source and the database which rendered AnchorV2 useless and ended up being abandoned and unheard from. This is why I shall resurrect Anchor up from the dead and give people new ideas.</p><p></p><p><strong>Why is it V3? I haven't seen V2 or V1?</strong></p><p></p><p>The previous versions were just a fail and should be forgotten. That is all I'm saying. :001_cool:</p><p></p><p><strong>Features</strong></p><p></p><p>Add in the database what you receive and what you send back along with the data (or contents). And what type it is, if it's normal or an SSO login.</p><p></p><p>If you add {username} in the contents, it will replace {username} with the clients logged in name.</p><p></p><ul> <li data-xf-list-type="ul">MySQL Connection</li> <li data-xf-list-type="ul">Fancy Logging class</li> <li data-xf-list-type="ul">Easily add own protocol to database</li> <li data-xf-list-type="ul">Caches all new packets in from the database so no more mysql query mayhem</li> <li data-xf-list-type="ul">More than 1 packet can be sent after receiving a packet</li> <li data-xf-list-type="ul">Asnychronous sockets.</li> <li data-xf-list-type="ul"><strong>SSO/Login already coded</strong></li> <li data-xf-list-type="ul">Created for the <strong><span style="color: Red">pre-shuffle</span></strong> client.</li> </ul><p></p><p><strong>Packet database</strong></p><p></p><p><img src="http://screensnapr.com/e/BHNKcG.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Snippets</strong></p><p></p><p>[code]using System;</p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using Anchor.Util;</p><p></p><p>namespace Anchor.Packets.Recieve</p><p>{</p><p> class Send</p><p> {</p><p> public PacketType Type;</p><p> public int SendId;</p><p> public String EncodeId;</p><p> public String RecId;</p><p> public String Contents;</p><p></p><p> public Send(String RecId, String EncodeId, int Type, String Contents)</p><p> {</p><p> this.RecId = RecId;</p><p> this.EncodeId = EncodeId;</p><p> this.SendId = HabboEncoding.decodeB64(EncodeId);</p><p></p><p> if (Type == 1)</p><p> this.Type = PacketType.SSO;</p><p> else if (Type == 2)</p><p> this.Type = PacketType.LOGIN;</p><p> else if (Type == 3)</p><p> this.Type = PacketType.NORMAL;</p><p> this.Contents = Contents;</p><p></p><p> Program.GetLogging().Write(ConsoleColor.Magenta, "Added packet header [ " + SendId + " ]");</p><p> }</p><p> }</p><p>}</p><p>[/code]</p><p><strong>In-client screenies</strong></p><p></p><p><img src="http://screensnapr.com/e/qk6qIV.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Database</strong></p><p></p><p>[code]-- phpMyAdmin SQL Dump</p><p>-- version 3.4.5</p><p>-- http://www.phpmyadmin.net</p><p>--</p><p>-- Host: localhost</p><p>-- Generation Time: Apr 13, 2012 at 06:54 PM</p><p>-- Server version: 5.5.16</p><p>-- PHP Version: 5.3.8</p><p></p><p>SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";</p><p>SET time_zone = "+00:00";</p><p></p><p></p><p>/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;</p><p>/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;</p><p>/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;</p><p>/*!40101 SET NAMES utf8 */;</p><p></p><p>--</p><p>-- Database: `anchor_flash`</p><p>--</p><p></p><p>-- --------------------------------------------------------</p><p></p><p>--</p><p>-- Table structure for table `packets_send`</p><p>--</p><p></p><p>CREATE TABLE IF NOT EXISTS `packets_send` (</p><p> `id` int(10) NOT NULL AUTO_INCREMENT,</p><p> `recid` varchar(2) NOT NULL,</p><p> `sendback` varchar(2) NOT NULL,</p><p> `type` enum('1','2','3') NOT NULL COMMENT '1 = sso, 2 = login, 3 = normal',</p><p> `contents` longtext NOT NULL,</p><p> PRIMARY KEY (`id`)</p><p>) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;</p><p></p><p>--</p><p>-- Dumping data for table `packets_send`</p><p>--</p><p></p><p>INSERT INTO `packets_send` (`id`, `recid`, `sendback`, `type`, `contents`) VALUES</p><p>(1, 'CN', 'DA', '3', 'H'),</p><p>(2, 'F_', '@C', '1', ''),</p><p>(3, 'F_', 'Lj', '3', 'IHello {username}!\r\n\r\nWelcome to the test server of AnchorV3.');</p><p></p><p>-- --------------------------------------------------------</p><p></p><p>--</p><p>-- Table structure for table `users`</p><p>--</p><p></p><p>CREATE TABLE IF NOT EXISTS `users` (</p><p> `id` int(30) NOT NULL,</p><p> `username` varchar(30) NOT NULL,</p><p> `password` varchar(30) NOT NULL,</p><p> `ssoticket` varchar(100) NOT NULL,</p><p> PRIMARY KEY (`id`)</p><p>) ENGINE=InnoDB DEFAULT CHARSET=latin1;</p><p></p><p>--</p><p>-- Dumping data for table `users`</p><p>--</p><p></p><p>INSERT INTO `users` (`id`, `username`, `password`, `ssoticket`) VALUES</p><p>(1, 'Quackster', 'cake', 'cake');</p><p></p><p>/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;</p><p>/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;</p><p>/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;</p><p>[/code]</p><p></p><p><strong>How to install?</strong></p><p></p><p>1) Set config details in /bin/Debug/Anchor.ini</p><p>2) Load up your r63 post-shuffle client with your ssoticket and make sure the host and port are correct!</p><p></p><p><span style="font-size: 15px"><strong>Download</strong></span></p><p></p><p><a href="https://github.com/QuacksterNET/AnchorV3" target="_blank">https://github.com/QuacksterNET/AnchorV3</a></p><p></p><p><strong>Credits</strong></p><p></p><p>- Ion/Deltar for the encoding/client message classes</p></blockquote><p></p>
[QUOTE="Quackster, post: 88811, member: 971"] [SIZE="6"][FONT="Times New Roman"]AnchorV3[/FONT][/SIZE] [B]Introduction[/B] Well I am here just to introduce something new to these forums, a new approach, or idea if I must say. I recently saw on my videos which had [I][URL="www.youtube.com/watch?v=ttMG_WVpVO0&feature=related"]AnchorV2[/URL][/I], I unfortunately lost the source and the database which rendered AnchorV2 useless and ended up being abandoned and unheard from. This is why I shall resurrect Anchor up from the dead and give people new ideas. [B]Why is it V3? I haven't seen V2 or V1?[/B] The previous versions were just a fail and should be forgotten. That is all I'm saying. :001_cool: [B]Features[/b] Add in the database what you receive and what you send back along with the data (or contents). And what type it is, if it's normal or an SSO login. If you add {username} in the contents, it will replace {username} with the clients logged in name. [LIST] [*]MySQL Connection [*]Fancy Logging class [*]Easily add own protocol to database [*]Caches all new packets in from the database so no more mysql query mayhem [*]More than 1 packet can be sent after receiving a packet [*]Asnychronous sockets. [*][B]SSO/Login already coded[/b] [*]Created for the [B][COLOR="Red"]pre-shuffle[/COLOR][/B] client. [/LIST] [B]Packet database[/B] [IMG]http://screensnapr.com/e/BHNKcG.png[/IMG] [b]Snippets[/b] [code]using System; using System.Collections.Generic; using System.Linq; using System.Text; using Anchor.Util; namespace Anchor.Packets.Recieve { class Send { public PacketType Type; public int SendId; public String EncodeId; public String RecId; public String Contents; public Send(String RecId, String EncodeId, int Type, String Contents) { this.RecId = RecId; this.EncodeId = EncodeId; this.SendId = HabboEncoding.decodeB64(EncodeId); if (Type == 1) this.Type = PacketType.SSO; else if (Type == 2) this.Type = PacketType.LOGIN; else if (Type == 3) this.Type = PacketType.NORMAL; this.Contents = Contents; Program.GetLogging().Write(ConsoleColor.Magenta, "Added packet header [ " + SendId + " ]"); } } } [/code] [b]In-client screenies[/b] [IMG]http://screensnapr.com/e/qk6qIV.png[/IMG] [B]Database[/B] [code]-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 13, 2012 at 06:54 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `anchor_flash` -- -- -------------------------------------------------------- -- -- Table structure for table `packets_send` -- CREATE TABLE IF NOT EXISTS `packets_send` ( `id` int(10) NOT NULL AUTO_INCREMENT, `recid` varchar(2) NOT NULL, `sendback` varchar(2) NOT NULL, `type` enum('1','2','3') NOT NULL COMMENT '1 = sso, 2 = login, 3 = normal', `contents` longtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `packets_send` -- INSERT INTO `packets_send` (`id`, `recid`, `sendback`, `type`, `contents`) VALUES (1, 'CN', 'DA', '3', 'H'), (2, 'F_', '@C', '1', ''), (3, 'F_', 'Lj', '3', 'IHello {username}!\r\n\r\nWelcome to the test server of AnchorV3.'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(30) NOT NULL, `username` varchar(30) NOT NULL, `password` varchar(30) NOT NULL, `ssoticket` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `password`, `ssoticket`) VALUES (1, 'Quackster', 'cake', 'cake'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; [/code] [B]How to install?[/B] 1) Set config details in /bin/Debug/Anchor.ini 2) Load up your r63 post-shuffle client with your ssoticket and make sure the host and port are correct! [SIZE="4"][B]Download[/B][/SIZE] [url]https://github.com/QuacksterNET/AnchorV3[/url] [B]Credits[/B] - Ion/Deltar for the encoding/client message classes [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
Anchor [V3] [MySQL - C#] [Edit protocol without source]
Top