Skip to content

Instantly share code, notes, and snippets.

Avatar

Luuk kukelekuuk

View GitHub Profile
View onchat.txt
$${
IFMATCHES(%CHATCLEAN%,^You are now AFK)
SET(@isafk)
SET(@&cooldown,0)
ENDIF
IFMATCHES(%CHATCLEAN%,You are no longer AFK)
UNSET(@isafk)
ENDIF
}$$
@kukelekuuk
kukelekuuk / auctionfilter
Created May 12, 2015
requires chatfliter module. It can be found here: http://eq2.co.uk/minecraft/mods/modules/api13/ (put in .minecraft/mods/macros/modules )
View auctionfilter
IFMATCHES(%CHATCLEAN%,^\[ECCAuc\] (To stop seeing auctions .+|The auction for .+ (has .+ seconds? remaining|ended with no bids)|.+ has bid .+ on .+|ANTI-SNIPE .+|.+ won .+ with a bid of .+));
FILTER();
ENDIF;
@kukelekuuk
kukelekuuk / colors.css
Last active Aug 29, 2015
a simple method for converting minecraft colourcodes into HTML
View colors.css
.c0
{
color : #000000;
}
.c1
{
color : #0000AA;
}
@kukelekuuk
kukelekuuk / potioneffects.txt
Last active Jun 29, 2016
Potion effects display macro script for Macro and Keybinds mod for Minecraft. Usage: bind the script to a button and create a label with the name "effects" without the quotes in the GUI you want it in (ingame probably)
View potioneffects.txt
$${
UNSAFE(0);
DO;
&message = "";
FOREACH(effects);
IF(EFFECTTIME < 60);
#minutes = 0;
#seconds = EFFECTTIME;
ELSEIF((EFFECTTIME >= 60) && (EFFECTTIME < 120));
#seconds = EFFECTTIME - 60;
@kukelekuuk
kukelekuuk / mcmmo.txt
Created Oct 24, 2013
Macromod McMMO display
View mcmmo.txt
$${
// GATHERING SKILLS
IFMATCHES(%CHATCLEAN%,^Excavation: ([0-9]+).*,@#excavation,1);
ENDIF;
IFMATCHES(%CHATCLEAN%,^Excavation skill increased by ([0-9]+).*,#level,1);
@#excavation = @#excavation + #level;
ENDIF;
IFMATCHES(%CHATCLEAN%,^Fishing: ([0-9]+).*,@#fishing,1);
ENDIF;
View lottery.sql
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 29, 2013 at 03:54 PM
-- Server version: 5.6.12-log
-- PHP Version: 5.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
View gist:5474485
$${
SET(@&jusername[0],%@&jusername[1]%);
SET(@&jusername[1],%@&jusername[2]%);
SET(@&jusername[2],%@&jusername[3]%);
SET(@&jusername[3],%@&jusername[4]%);
SET(@&jusername[4],%@&jusername[5]%);
SET(@&jusername[5],%@&jusername[6]%);
SET(@&jusername[6],%@&jusername[7]%);
SET(@&jusername[7],%@&jusername[8]%);
SET(@&jusername[8],%@&jusername[9]%);
View Minecraft Isup Script
<?php
function isup($host, $port=25565, $timeout=5) {
$fp = fsockopen($host, $port, $errno, $errstr, $timeout);
if (!$fp) return false;
$online = fwrite($fp, "\xFE");
return $online;
}
$online = isup("mc.ecocitycraft.com");
@kukelekuuk
kukelekuuk / Minecraftquery.java
Created Dec 17, 2012
Minecraft query method
View Minecraftquery.java
public String[] minecraftQuery(String address) {
return minecraftQuery(address, 25565);
}
public String[] minecraftQuery(String address, int port) {
byte fe1 = (byte) 0xFE;
byte fe2 = (byte) 0x01;
byte[] fe = {fe1, fe2};
Socket socket = null;
try {
socket = new Socket(address, port);
@kukelekuuk
kukelekuuk / Main.java
Created Dec 17, 2012
Minecraft Server Query CLI program.
View Main.java
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
public class Main {
public static void main(String[] args) {
if (args.length < 2) {