Full source recovered from SBoT.jar (July 2004) plus the three bundled example scripts (BoneBury, GuildFish, GuildFisher). Class names are the original RSC-era single-letter obfuscation (a.java-z.java); mudclient.java and Script.java kept their real names since those weren't obfuscated.
170 lines
8.2 KiB
Java
170 lines
8.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
import java.awt.Event;
|
|
import java.awt.Frame;
|
|
import java.awt.Graphics;
|
|
|
|
public class c
|
|
extends Frame {
|
|
int a;
|
|
int b;
|
|
int c;
|
|
int d;
|
|
a e;
|
|
Graphics f;
|
|
|
|
public c(a a2, int n2, int n3, String string, boolean bl, boolean bl2) {
|
|
block4: {
|
|
block2: {
|
|
c c2;
|
|
block3: {
|
|
boolean bl3 = q.d;
|
|
this.d = 28;
|
|
this.a = n2;
|
|
this.b = n3;
|
|
c2 = this;
|
|
if (bl3) break block2;
|
|
c2.e = a2;
|
|
if (!bl2) break block3;
|
|
this.d = 48;
|
|
if (!bl3) break block4;
|
|
}
|
|
c2 = this;
|
|
}
|
|
c2.d = 28;
|
|
}
|
|
this.setTitle(string);
|
|
this.setResizable(bl);
|
|
this.show();
|
|
this.toFront();
|
|
this.resize(this.a, this.b);
|
|
this.f = this.getGraphics();
|
|
}
|
|
|
|
public Graphics getGraphics() {
|
|
Graphics graphics = super.getGraphics();
|
|
graphics.translate(0, 24);
|
|
return graphics;
|
|
}
|
|
|
|
public void resize(int n2, int n3) {
|
|
super.resize(n2, n3 + this.d);
|
|
}
|
|
|
|
public boolean handleEvent(Event event) {
|
|
int n2;
|
|
block23: {
|
|
block6: {
|
|
int n3;
|
|
block21: {
|
|
boolean bl;
|
|
block22: {
|
|
block19: {
|
|
block20: {
|
|
block17: {
|
|
block18: {
|
|
block15: {
|
|
block16: {
|
|
block13: {
|
|
block14: {
|
|
block11: {
|
|
block12: {
|
|
block9: {
|
|
block10: {
|
|
block7: {
|
|
block8: {
|
|
block4: {
|
|
block5: {
|
|
bl = q.d;
|
|
boolean bl2 = false;
|
|
n2 = event.id;
|
|
n3 = 401;
|
|
if (bl) break block4;
|
|
if (n2 != n3) break block5;
|
|
this.e.keyDown(event, event.key);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 402;
|
|
}
|
|
if (bl) break block7;
|
|
if (n2 != n3) break block8;
|
|
this.e.keyUp(event, event.key);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 501;
|
|
}
|
|
if (bl) break block9;
|
|
if (n2 != n3) break block10;
|
|
this.e.mouseDown(event, event.x, event.y - 24);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 506;
|
|
}
|
|
if (bl) break block11;
|
|
if (n2 != n3) break block12;
|
|
this.e.mouseDrag(event, event.x, event.y - 24);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 502;
|
|
}
|
|
if (bl) break block13;
|
|
if (n2 != n3) break block14;
|
|
this.e.mouseUp(event, event.x, event.y - 24);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 503;
|
|
}
|
|
if (bl) break block15;
|
|
if (n2 != n3) break block16;
|
|
this.e.mouseMove(event, event.x, event.y - 24);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 201;
|
|
}
|
|
if (bl) break block17;
|
|
if (n2 != n3) break block18;
|
|
this.e.destroy();
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 1001;
|
|
}
|
|
if (bl) break block19;
|
|
if (n2 != n3) break block20;
|
|
this.e.action(event, event.target);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
n3 = 403;
|
|
}
|
|
if (bl) break block21;
|
|
if (n2 != n3) break block22;
|
|
this.e.keyDown(event, event.key);
|
|
if (!bl) break block6;
|
|
}
|
|
n2 = event.id;
|
|
if (bl) break block23;
|
|
n3 = 404;
|
|
}
|
|
if (n2 == n3) {
|
|
this.e.keyUp(event, event.key);
|
|
}
|
|
}
|
|
n2 = 1;
|
|
}
|
|
return n2 != 0;
|
|
}
|
|
|
|
public final void paint(Graphics graphics) {
|
|
this.e.paint(graphics);
|
|
}
|
|
}
|
|
|