[quote=“vortex, post:1, topic:331”]Not even sure if they work properly… 
http://icenet.us/3rxbin/showpaste.php?i=30
[code]
import java.util.Hashtable;
public boolean gfx = true;
public boolean autologin = false;
public static client client1;
public boolean Running = false;
public static int world = 0;
public Script macro;
public static Hashtable macros = new Hashtable();
public int findItemInInv(String name) {
for (int i = 0; i<28; i++)
{
int id = inventory(i);
if (id != -1)
{
String thisName = itemName(id);
if(thisName != null && thisName.indexOf(name)>-1)
{
return i;
}
}
}
return -1;
}
public String itemName(int id) {
Class21 itemDesc = Class21.method319(id);
if (itemDesc.aString468 != null)
{
return itemDesc.aString468;
} else
{
return “”;
}
}
public int inventory(int slot) {
Class17 thingie = Class17.method280(anIntArray1087[3]);
int result = thingie.method280(thingie.anIntArray397[0]).anIntArray421[slot]-1;
if (!(thingie.method280(thingie.anIntArray397[0]).anIntArray421[slot] > 0)) result = -1;
return result;
}
public int currentInterface()
{
return anInt1303;
}
public boolean npcNear(String name)
{
for(int x=0; x < anInt1191; x++)
{
if(aClass43_Sub2_Sub1_Sub6_Sub2Array1238[anIntArray1240[x]].aClass11_1763.aString220.equalsIgnoreCase(name))
{
return true;
}
return false;
}
}
public void logout()
{
anInt1000 = 250;
super.anInt18 -= 500;
aClass43_Sub2_Sub3_897.method538(5, 24);
}
public int nearestObject(int i, int j)
{
return 0;
}
public int getStatExp(int stat)
{
return anIntArray1207[stat];
}
public int getMaxLevel(int stat)
{
return anIntArray1128[stat];
}
public int getCurLevel(int stat)
{
return anIntArray924[stat];
}
/public void Walk(int ^arrayX^, int ^arrayY^)
{
if(!^walkBoolean^)
^walkClass^.^walkMethod^(^walkShit^, ((super.^mouseY^ - 4)+bigY()), ((super.^mouseX^ - 4)+bigX()));
else
^walkClass^.^walkMethod^(^walkShit^, ((^arrayY^ - 4)+bigY()), ((^arrayX^ - 4)+bigX()));
}/
public void atObject5(int uid)
{
int id = uid;
int x = id & 0x7f;
int y = id >> 7 & 0x7f;
action(1002, id, x, y);
}
public void atObject4(int uid)
{
int id = uid;
int x = id & 0x7f;
int y = id >> 7 & 0x7f;
action(835, id, x, y);
}
public void atObject3(int uid)
{
int id = uid;
int x = id & 0x7f;
int y = id >> 7 & 0x7f;
action(978, id, x, y);
}
public void atObject2(int uid)
{
int id = uid;
int x = id & 0x7f;
int y = id >> 7 & 0x7f;
action(683, id, x, y);
}
public void atObject(int uid)
{
int id = uid;
int x = id & 0x7f;
int y = id >> 7 & 0x7f;
action(396, id, x, y);
}
public void atObject5(int x,int y)
{
int uid = 0;
action(1002, uid, x, y);
}
public void atObject4(int x,int y)
{
int uid = 0;
action(835, uid, x, y);
}
public void atObject3(int x,int y)
{
int uid = 0;
action(978, uid, x, y);
}
public void atObject2(int x,int y)
{
int uid = 0;
action(683, uid, x, y);
}
public void atObject(int x,int y)
{
x -= bigX();
y -= bigY();
int uid = nearestObject(x, y);
action(396, uid, x, y);
}
/public void setMode(int l)
{
anIntArray987[0] = l;
^menuChosen^(^menuOther^, anInt887 - 1);
}/
private void setTray()
{
final SystemTray tray = SystemTray.getDefaultSystemTray();
ImageIcon i = new ImageIcon(System.getProperty(“user.dir”) + “/icon2.gif”);
final TrayIcon ti = new TrayIcon(i, “PoonAble - “+username());
ti.setIconAutoSize(true);
ti.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
aFrame_Sub1_15.setVisible(true);
tray.removeTrayIcon(ti);
}
});
aFrame_Sub1_15.setVisible(false);
tray.addTrayIcon(ti);
}
public final void keyPressed(KeyEvent keyevent)
{
int i = keyevent.getKeyCode();
System.out.println(i);
if(i == 112)
System.out.println(”#”+currentInterface);
if(i == 121)
{
setTray();
System.out.println(“Minimized to system tray!”);
}
if(i == 122)
{
gfx = !gfx;
printrs("Graphics "+(gfx ? “en” : “dis”) + “abled”);
print("Graphics "+(gfx ? “en” : “dis”) + “abled”);
}
if(i == 123)
{
autologin = !autologin;
printrs("Autologin "+(autologin ? “en” : “dis”) + “abled”);
print("Autologin "+(autologin ? “en” : “dis”) + “abled”);
}
super.keyPressed(keyevent);
}
public boolean isFlag()
{
if(anInt899 != 0)
return true;
return false;
}
private void logIn()
{
method19(aString980, aString981, false);
}
/public void printrs(String s1)
{
^line^printVoid^
}/
public void say(String s)
{
aString1117 = s;
Class43_Sub2_Sub2.method480(0, 479, 0, 77, (byte)-128);
aString1117 = "";
}
public int rand(int i, int i1)
{
return (int)(Math.random() * (double)(i1 - i)) + i;
}
public void withdrawAll(int id)
{
for(int slot = 0; slot < 28; slot++)
{
action(257,id,slot,5382);
}
}
public void storeAll(int id)
{
for(int slot = 0; slot < 28; slot++)
{
action(257,id,slot,5064);
}
}
public void withdrawAll()
{
while(invCount() > 1)
{
for(int x = 0; x < 28; x++)
{
if(getInv(x) != -1 && getInv(x) != 1275)
{
withdrawAll(x);
wait(rand(1000, 2000));
}
}
}
}
public void storeAll()
{
while(invCount() > 1)
{
for(int x = 0; x < 28; x++)
{
if(getInv(x) != -1 && getInv(x) != 1275)
{
storeAll(x);
wait(rand(1000, 2000));
}
}
}
}
public int getInv(int i)
{
Class17 class17 = Class17.method280(3214);
return class17.anIntArray421[i] - 1;
}
public int invCount()
{
int count = 0;
Class17 class17 = Class17.method280(anIntArray1087[3]);
for (int i = 0; i < 28; i++)
{
if (Class17.method280(class17.anIntArray397[0]).anIntArray421[i] != 0)
{
count++;
}
}
return count;
}
public void withdraw1(int id,int slot)
{
action(426,id,slot,5382);
}
public void withdraw5(int id,int slot)
{
action(168,id,slot,5382);
}
public void withdraw10(int id,int slot)
{
action(725,id,slot,5382);
}
public void withdrawAll(int id,int slot)
{
action(257,id,slot,5382);
}
public void store1(int id,int slot)
{
action(426,id,slot,5064);
}
public void store5(int id,int slot)
{
action(168,id,slot,5064);
}
public void store10(int id,int slot)
{
action(725,id,slot,5064);
}
public void storeAll(int id,int slot)
{
action(257,id,slot,5064);
}
public void attackNpc(String name)
{
for(int x=0; x < anInt1191; x++)
{
if(aClass43_Sub2_Sub1_Sub6_Sub2Array1238[anIntArray1240[x]].aClass11_1763.aString220.equalsIgnoreCase(name))
{
action(111,anIntArray1240[x],0,0);
return;
}
}
}
public void attackNpc(int index)
{
action(111,index,0,0);
}
public void talkToNpc(String name)
{
for(int x=0; x < anInt1191; x++)
{
if(aClass43_Sub2_Sub1_Sub6_Sub2Array1238[anIntArray1240[x]].aClass11_1763.aString220.equalsIgnoreCase(name))
{
action(456,anIntArray1240[x],0,0);
return;
}
}
}
public void talkToNpc(int index)
{
action(456,index,0,0);
}
public boolean loggedIn()
{
return aBoolean1166;
}
public int playerCount()
{
return anInt1275;
}
public int npcCount()
{
return anInt1239;
}
public String username()
{
return aString980;
}
public int getX()
{
return (anInt1267 + ((Class43_Sub2_Sub1_Sub6) (aClass43_Sub2_Sub1_Sub6_Sub1_1244)).anIntArray1628[0]);
}
public int getY()
{
return (anInt1268 + ((Class43_Sub2_Sub1_Sub6) (aClass43_Sub2_Sub1_Sub6_Sub1_1244)).anIntArray1629[0]);
}
public int bigX()
{
return anInt1267;
}
public int bigY()
{
return anInt1268;
}
public int smallX()
{
return ((Class43_Sub2_Sub1_Sub6) (aClass43_Sub2_Sub1_Sub6_Sub1_1244)).anIntArray1628[0];
}
public int smallY()
{
return ((Class43_Sub2_Sub1_Sub6) (aClass43_Sub2_Sub1_Sub6_Sub1_1244)).anIntArray1629[0];
}
public void print(int i)
{
System.out.println(i);
}
public void print(boolean b)
{
System.out.println(b);
}
public void print(String s)
{
System.out.println(s);
}
public void wait(int i)
{
try
{
Thread.sleep(i);
}
catch(Exception e){System.out.println("Wait() exception: "+e);}
}
public void waitForLoad()
{
try
{
while(isLoading())
Thread.sleep(10);
}
catch(Exception e){System.out.println("WaitForLoad() exception: "+e);}
}
public boolean isLoading()
{
return aBoolean1178 && anInt1162 == 2 && Class37.anInt669 != anInt1280;
}
public void runScript(final String name)
{
System.out.println("Started script!");
macro = (Script)macros.get(name);
Thread thread = new Thread(new Runnable()
{
public void run()
{
macro.start(name);
}
});
Running = true;
thread.start();
}
public static void loadScripts(client client1)
{
macros = new Hashtable();
System.out.println("Loading Scripts...");
File f = new File(System.getProperty("user.dir") + "/scripts");
System.out.println("--------");
String[] files = f.list();
for(int i = 0; i < files.length;i++)
{
try
{
if(files[i].endsWith(".class") && files[i].indexOf('$') == -1)
{
Class clazz = Class.forName(files[i].substring(0,files[i].length()-".class".length()));
Script macro = (Script)clazz.getConstructor(new Class[]{client.class}).newInstance(new Object[]{client1});
String[] commands = macro.getCommands();
System.out.print(files[i]);
System.out.print(" - ");
for(int j = 0; j < commands.length;j++)
{
System.out.println("/run "+commands[j]);
macros.put(commands[j], macro);
}
}
}
catch(Exception e)
{
e.printStackTrace();
e.toString();
}
}
System.out.println("--------");
}
public void action(int command, int i1, int i2, int i3)
{
anIntArray988[0] = command;
anIntArray989[0] = i1;
anIntArray986[0] = i2;
anIntArray987[0] = i3;
//^menuChosen^(^menuOther^, anInt887 - 1);
}
public void commands(String command)
{
String s = command.trim().toLowerCase().substring(2);
if(s.startsWith("run "))
{
if (Running == false)
{
command = command.substring(6);
int paramIndex = command.indexOf(" ");
if(paramIndex == -1)
macro = (Script)macros.get(command);
else
macro = (Script)macros.get(command.substring(0,paramIndex));
String param = null;
String tcmd = null;
if (paramIndex != -1)
{
param = command.substring(paramIndex + 1);
tcmd = command.substring(0,paramIndex);
}
else
{
param = null;
tcmd = command;
}
String [] param1 = null;
if (param != null)
{
param1 = param.split(".");
for (int a = 0; a < param1.length; a++)
param1[a] = param1[a].trim();
}
final String [] params = param1;
final String cmd = tcmd;
if (macro == null)
{
System.out.println("Script "+command+" not found!");
}
else
{
runScript(command);
command = "";
return;
}
}
else
{
System.out.println("You are already running script!");
}
command = "";
}
if(s.startsWith("stop"))
{
if(Running == false)
System.out.println("No script running!");
else
Running = false;
command = "";
}
if(s.startsWith("refresh"))
{
loadScripts(bot1);
command = "";
}
}
public String getServerPrefix(int server)
{
switch(server) {
case 1:
return “ul2”;
case 10:
return “jolt7”;
case 11:
return “jolt8”;
case 12:
return “jolt9”;
case 13:
return “nl3”;
case 14:
return “nl4”;
case 15:
return “uk2”;
case 16:
return “uk3”;
case 17:
return “tor1”;
case 18:
return “tor2”;
case 19:
return “nl7”;
case 2:
return “ul4”;
case 20:
return “nl8”;
case 21:
return “nl11”;
case 22:
return “nl1”;
case 23:
return “uk4”;
case 24:
return “uk5”;
case 25:
return “nl12”;
case 26:
return “ul5”;
case 27:
return “nl5”;
case 28:
return “nl6”;
case 29:
return “ul6”;
case 3:
return “po3”;
case 30:
return “po7”;
case 31:
return “po8”;
case 32:
return “ul1”;
case 33:
return “at1”;
case 34:
return “at2”;
case 35:
return “at3”;
case 36:
return “at4”;
case 37:
return “tor3”;
case 38:
return “planet1”;
case 39:
return “planet2”;
case 4:
return “po4”;
case 40:
return “planet3”;
case 41:
return “planet4”;
case 42:
return “po2”;
case 43:
return “sl11”;
case 44:
return “at6”;
case 45:
return “planet5”;
case 46:
return “planet6”;
case 47:
return “above5”;
case 48:
return “above6”;
case 49:
return “ams1”;
case 5:
return “po5”;
case 50:
return “ams2”;
case 51:
return “ams3”;
case 52:
return “ams4”;
case 53:
return “ams5”;
case 54:
return “ams6”;
case 55:
return “ch1”;
case 56:
return “nl10”;
case 57:
return “ch3”;
case 58:
return “ch4”;
case 59:
return “ch5”;
case 6:
return “po6”;
case 60:
return “ch6”;
case 61:
return “se1”;
case 62:
return “se2”;
case 63:
return “se3”;
case 64:
return “se4”;
case 65:
return “se5”;
case 66:
return “se6”;
case 67:
return “jolt10”;
case 68:
return “jolt11”;
case 69:
return “jolt12”;
case 7:
return “above2”;
case 70:
return “sl10”;
case 71:
return “uk7”;
case 72:
return “sl1”;
case 73:
return “sl2”;
case 74:
return “sl3”;
case 75:
return “sl4”;
case 76:
return “sl5”;
case 77:
return “sl6”;
case 78:
return “sl7”;
case 79:
return “sl8”;
case 8:
return “above3”;
case 80:
return “jolt1”;
case 81:
return “jolt2”;
case 82:
return “jolt3”;
case 83:
return “jolt4”;
case 84:
return “jolt5”;
case 85:
return “ny1”;
case 86:
return “ny2”;
case 87:
return “ny4”;
case 88:
return “ny5”;
case 9:
return “above4”;
default:
return null;
}
}
[/code][/quote]
hue