Skip to content

Instantly share code, notes, and snippets.

View action snip.java
// ACTION SET UP
if(counter == ACTION_START_TIME && hasAFailureCondition(performer, tileX, tileY, borderDirection))
return true;
if (counter == ACTION_START_TIME) {
youMessage = String.format("You start %s.", action.getActionString());
performer.getCommunicator().sendNormalServerMessage(youMessage);
broadcastMessage = String.format("%s starts to %s.", performer.getName(), action.getActionString());
Server.getInstance().broadCastAction(broadcastMessage, performer, 5);
int time = (int)ActionUtilities.getActionTime(10, 95, 200, 10,
View SimpleFoodBonusesMod.java
package com.joedobo27.simplefoodbonuses;
import javassist.*;
import javassist.bytecode.Descriptor;
import javassist.expr.ExprEditor;
import javassist.expr.MethodCall;
import org.gotti.wurmunlimited.modloader.classhooks.HookManager;
import org.gotti.wurmunlimited.modloader.interfaces.Configurable;
import org.gotti.wurmunlimited.modloader.interfaces.PreInitable;
import org.gotti.wurmunlimited.modloader.interfaces.WurmServerMod;
View make-concrete-from-clay-n-shards.js
var CreationEntryCreator = Packages.com.wurmonline.server.items.CreationEntryCreator;
var SkillList = Packages.com.wurmonline.server.skills.SkillList;
var ItemList = Packages.com.wurmonline.server.items.ItemList;
var CreationCategories = Packages.com.wurmonline.server.items.CreationCategories
var Logger = Packages.java.util.logging.Logger;
var logger = Logger.getLogger("com.joedobo27.scriptRunnerMods.make-concrete-from-clay-n-shards");
function onServerStarted(){
CreationEntryCreator.createSimpleEntry(SkillList.ALCHEMY_NATURAL, ItemList.rock, ItemList.clay,
View resize-pelt.js
// **************
// Set size in the from: x, y, z. ALWAYS! sort them in ascending order regardless.
var toSetX = 10;
var toSetY = 10;
var toSetZ = 10;
// **************
var ItemTemplateFactory = Packages.com.wurmonline.server.items.ItemTemplateFactory;
var ReflectionUtil = Packages.org.gotti.wurmunlimited.modloader.ReflectionUtil;
View remove-one-per-tile-restrictions.js
// **************
// List items to skip. Use numbers from com.wurmonline.server.items.ItemList
var exceptions = [];
// **************
var ItemTemplateFactory = Packages.com.wurmonline.server.items.ItemTemplateFactory;
var ReflectionUtil = Packages.org.gotti.wurmunlimited.modloader.ReflectionUtil;
var Class = Packages.java.lang.Class;
var Integer = Packages.java.lang.Integer;
var Logger = Packages.java.util.logging.Logger;
View remove-inside-outside-limits.js
// **************
// List items to skip. Use numbers from com.wurmonline.server.items.ItemList
var exceptions = [];
// **************
var ItemTemplateFactory = Packages.com.wurmonline.server.items.ItemTemplateFactory;
var ReflectionUtil = Packages.org.gotti.wurmunlimited.modloader.ReflectionUtil;
var Class = Packages.java.lang.Class;
var Integer = Packages.java.lang.Integer;
var Logger = Packages.java.util.logging.Logger;
View make-items-combine.js
// **************
// List items to make combine. Use numbers from com.wurmonline.server.items.ItemList
var toCombineItems = [439,440,436];
// **************
var ItemTemplateFactory = Packages.com.wurmonline.server.items.ItemTemplateFactory;
var ReflectionUtil = Packages.org.gotti.wurmunlimited.modloader.ReflectionUtil;
var Class = Packages.java.lang.Class;
var Logger = Packages.java.util.logging.Logger;
var logger = Logger.getLogger("com.joedobo27.scriptRunnerMods.make-items-combine");
@Joedobo27
Joedobo27 / FasterLiquorCreationMod.java
Created Apr 10, 2017
WU mod to speed up fermentation.
View FasterLiquorCreationMod.java
package com.joedobo27.fasterliquorcreationmod;
import javassist.CtClass;
import javassist.CtMethod;
import javassist.NotFoundException;
import javassist.bytecode.*;
import org.gotti.wurmunlimited.modloader.classhooks.CodeReplacer;
import org.gotti.wurmunlimited.modloader.classhooks.HookManager;
import org.gotti.wurmunlimited.modloader.interfaces.Configurable;
View DisableFogSpider.java
package com.Joedobo27.disablefogspider;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.NotFoundException;
import javassist.expr.ExprEditor;
import javassist.expr.MethodCall;
import org.gotti.wurmunlimited.modloader.classhooks.HookManager;
import org.gotti.wurmunlimited.modloader.interfaces.Initable;
View BytecodeTools.java
package com.Joedobo27.lifejacket;
import javassist.bytecode.*;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
You can’t perform that action at this time.