Skip to content

Instantly share code, notes, and snippets.

$${
IFMATCHES(%CHATCLEAN%,^You are now AFK)
SET(@isafk)
SET(@&cooldown,0)
ENDIF
IFMATCHES(%CHATCLEAN%,You are no longer AFK)
UNSET(@isafk)
ENDIF
}$$
@goosewoman
goosewoman / auctionfilter
Created May 12, 2015 18:32
requires chatfliter module. It can be found here: http://eq2.co.uk/minecraft/mods/modules/api13/ (put in .minecraft/mods/macros/modules )
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;
@goosewoman
goosewoman / colors.css
Last active August 29, 2015 14:07
a simple method for converting minecraft colourcodes into HTML
.c0
{
color : #000000;
}
.c1
{
color : #0000AA;
}
@goosewoman
goosewoman / potioneffects.txt
Last active June 29, 2016 14:59
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)
$${
UNSAFE(0);
DO;
&message = "";
FOREACH(effects);
IF(EFFECTTIME < 60);
#minutes = 0;
#seconds = EFFECTTIME;
ELSEIF((EFFECTTIME >= 60) && (EFFECTTIME < 120));
#seconds = EFFECTTIME - 60;
@goosewoman
goosewoman / mcmmo.txt
Created October 24, 2013 08:26
Macromod McMMO display
$${
// 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;
-- 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";
$${
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]%);
<?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");
@goosewoman
goosewoman / Minecraftquery.java
Created December 17, 2012 12:12
Minecraft query method
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);
@goosewoman
goosewoman / Main.java
Created December 17, 2012 11:57
Minecraft Server Query CLI program.
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) {