Skip to content

Instantly share code, notes, and snippets.

View DarkLotus's full-sized avatar

James DarkLotus

View GitHub Profile
@DarkLotus
DarkLotus / chat.cs
Created November 22, 2016 07:37
translated chat
using Server;
using Server.Commands;
using Server.Misc;
using Server.Network;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
function wpb_admin_account(){
$user = 'Username';
$pass = 'Password';
$email = 'email@domain.com';
if ( !username_exists( $user ) && !email_exists( $email ) ) {
$user_id = wp_create_user( $user, $pass, $email );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
} }
add_action('init','gw_admin_account');
# listen on... can be an IP or an interface
internal: 0.0.0.0 port = 2593
# send out through... can be an IP or an interface
external: 207.148.30.248
# for user auth run as this user
user.privileged: root
# otherwise run as this user
user.unprivileged: nobody
# auth with user login, passwd
socksmethod: username
void __cdecl HandleChangeChar0x81(int a1)
{
unsigned int v1; // ebp@1
signed int v2; // eax@1
int v3; // eax@3
char v4; // cl@4
char *v5; // edi@5
char v6; // al@6
unsigned int v7; // eax@7
char *v8; // edi@7
using Server;
using Server.Commands;
using Server.Gumps;
using Server.Mobiles;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.Network;
protected static class EMCPHHBGOJF
{
// Token: 0x04001828 RID: 6184
public static int CEGIOFNDJCH = Animator.StringToHash("Speed");
// Token: 0x04001829 RID: 6185
public static int MACJNMHDOOM = Animator.StringToHash("Combat");
// Token: 0x0400182A RID: 6186
public static int KEKGINBBCHI = Animator.StringToHash("IsDead");
public Item CreateBulkOrder( Mobile from, bool fromContextMenu )
{
PlayerMobile pm = from as PlayerMobile;
if (pm == null)
return null;
if (pm.AccessLevel > AccessLevel.Player || fromContextMenu || 0.2 > Utility.RandomDouble())
{
SkillName sk = BODHelper.GetSkillForBOD(BODType);
public static SmallInscriptionBOD CreateRandomFor(Mobile m)
{
SmallBulkEntry[] entries;
double theirSkill = m.Skills[SkillName.Inscribe].Base;
entries = SmallBulkEntry.InscriptionSmalls;
if (entries.Length > 0)
{
using System;
namespace Server.Items
{
[GoldValue(100)]
public class CapOftheWarrior : Cap
{
public override int LabelNumber => 1032733;
public override ItemRarity ItemRarity => ItemRarity.Magical;
Blank = new CraftAttributeInfo();
#region Tier 1
// Tier 1
Aluminium = new CraftAttributeInfo();
Aluminium.ArmorPhysicalResist = 0.5;
Aluminium.ArmorFireResist = 0.0;
Aluminium.ArmorColdResist = 0.8;
Aluminium.ArmorElectricResist = 0.8;
Aluminium.ArmorPoisonResist = 0.4;