Skip to content

Instantly share code, notes, and snippets.

View scottstamp's full-sized avatar

Scott Stamp scottstamp

  • Hypermine Networks
  • St. John's, Newfoundland
View GitHub Profile
@scottstamp
scottstamp / HCatalogPage.cs
Created April 27, 2020 12:33
Parse incoming CatalogPagesList packet
using Sulakore.Protocol;
using System.Collections.Generic;
namespace WiredIdent
{
public class HCatalogPage
{
public bool Visible { get; set; }
public int Icon { get; set; }
public int Id { get; set; }
using System;
using System.Collections.Generic;
using System.Text;
namespace Hideaway.Common.Communication
{
public class ProtocolReader
{
private byte[] _buffer;
private int position = 0;
@scottstamp
scottstamp / Program.cs
Created April 28, 2020 23:55
FlassetReplacer (SWF asset replacer using Flazzy)
using Flazzy;
using Flazzy.Tags;
using System.Drawing;
using System.IO;
using System.Linq;
namespace FlassetReplacer
{
class Program
{
@scottstamp
scottstamp / shell.php
Created August 24, 2020 19:10
Arcturus Emulator RCON PHP shell
<?php
// replace $key with something secret or face peril!
error_reporting(E_ALL);
$key = 'secret';
$sec = $_GET['sec'];
$payload = $_POST['payload'];
if (isset($payload) && $sec == $key) {
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$res = socket_connect($sock, "127.0.0.1", 3001);
@scottstamp
scottstamp / IncomingMessageCodes.cs
Last active July 16, 2022 13:54
H4K message headers (updated build 0.10.0)
using System;
public enum IncomingMessageCodes : short
{
LegacyBannerPublicKey = 1,
ClubAndSecurityLevels,
Ok,
Film,
UserObject,
WalletBalance,
@scottstamp
scottstamp / Program.cs
Created May 2, 2021 03:00
Furnidata schema auto-definition
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Antidote
{
static class Program
{
/// @name Roller Queue
/// @group Utility
/// @scripter 1.0.0-beta
OnEntitySlide(x => {
var roller = FloorItems.At(Self.Location.XY).NamedLike("Roller").FirstOrDefault();
if (roller != null) {
switch ((Directions)roller.Direction) {
case Directions.North:
if (x.PreviousTile == Self.Location.Subtract(0, 1))
/// @name BC Achievement Booster
/// @group Utility
/// @scripter 1.0.0-beta
var count = 0;
OnIntercept((In["Achievement"], In["BuildersClubFurniCount"]), e => {
if (count < 10) {
if (e.Packet.Header == In["Achievement"] && e.Packet.ReadInt() != 196) {
return;
}
@scottstamp
scottstamp / ids.txt
Last active March 26, 2022 11:30
Room Raider (Fast)
76929309
77773851
77774129
77774138
77774140
77774141
77774143
77774144
77774145
77774146
var root = GetBcCatalog();
ICatalogPage GetBcPageNamed(string name) => GetBcCatalogPage(root.First(x => x.Name == name).Id);
var blockEarnings = true;
var hockey = GetBcPageNamed("gameset_ice_hockey");
var snowboard = GetBcPageNamed("gameset_snowboard");
var rollerskate = GetBcPageNamed("gameset_roller_skates");
var letters = GetBcPageNamed("bc_alphabet");