This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MessageClassGenerator { | |
static void Main() { | |
string input = @ " | |
_events[1] = com.sulake.habbo.communication.messages.incoming.handshake.SecretKeyEvent; | |
_events[277] = com.sulake.habbo.communication.messages.incoming.handshake.InitCryptoMessageEvent; | |
_events[0x0101] = com.sulake.habbo.communication.messages.incoming.handshake.SessionParamsMessageEvent; | |
_events[2] = com.sulake.habbo.communication.messages.incoming.handshake.UserRightsMessageEvent; | |
_events[3] = com.sulake.habbo.communication.messages.incoming.handshake.AuthenticationOKMessageEvent; | |
_events[50] = com.sulake.habbo.communication.messages.incoming.handshake.PingMessageEvent; | |
_events[5] = com.sulake.habbo.communication.messages.incoming.handshake.UserObjectEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
from subprocess import call | |
import sys, os, getopt | |
import struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.alexdev.havana.game.item.interactors.types; | |
import org.alexdev.havana.game.GameScheduler; | |
import org.alexdev.havana.game.item.Item; | |
import org.alexdev.havana.game.pathfinder.Position; | |
import org.alexdev.havana.game.pathfinder.Rotation; | |
import org.alexdev.havana.game.player.Player; | |
import org.alexdev.havana.game.room.Room; | |
import org.alexdev.havana.game.room.enums.StatusType; | |
import org.alexdev.havana.game.triggers.GenericTrigger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FurniAlias | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FurniAlias | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include "stdlib.h" | |
#include "PathfinderTest.h" | |
#include <limits.h> | |
#include <windows.h> | |
typedef struct coord_s { | |
int x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def decode_b64(value): | |
result = 0 | |
for i in range(0, len(value)): | |
result += ((ord(value[i]) - 0x40) << 6 * (len(value) - 1 - i)); | |
return result | |
def encode_b64(value, length=2): | |
result = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Plus.Communication.Packets.Incoming | |
{ | |
public static class ClientPacketHeader | |
{ | |
// Handshake | |
public const int InitCryptoMessageEvent = 384;//1773 | |
public const int GenerateSecretKeyMessageEvent = 2408;//575 | |
public const int UniqueIDMessageEvent = 1865;//544 | |
public const int SSOTicketMessageEvent = 1266;//2093 | |
public const int InfoRetrieveMessageEvent = 3627;//413 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Plus.Communication.Packets.Outgoing | |
{ | |
public static class ServerPacketHeader | |
{ | |
// Handshake | |
public const int InitCryptoMessageComposer = 1233;//3531 | |
public const int SecretKeyMessageComposer = 1631;//696 | |
public const int AuthenticationOKMessageComposer = 1294;//1079 | |
public const int UserObjectMessageComposer = 3231;//845 | |
public const int UserPerksMessageComposer = 3877;//1790 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Plus.Communication.Packets.Incoming | |
{ | |
public static class ClientPacketHeader | |
{ | |
// Handshake | |
public const int InitCryptoMessageEvent = 2374;//3392; | |
public const int GenerateSecretKeyMessageEvent = 3823;//3622 | |
public const int UniqueIDMessageEvent = 2701;//3521 | |
public const int SSOTicketMessageEvent = 1029;//1989 | |
public const int InfoRetrieveMessageEvent = 2078;//2629 |