rsclient: rev 191

This commit is contained in:
ThatGamerBlue
2020-08-26 21:11:23 +01:00
parent 106de31a9d
commit b6ea56781c
354 changed files with 61347 additions and 61083 deletions

View File

@@ -4,174 +4,97 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ep")
@ObfuscatedName("ex")
@Implements("WallDecoration")
public final class WallDecoration {
@ObfuscatedName("m")
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = 1099689565
)
@Export("tileHeight")
int tileHeight;
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = 1128423733
)
@Export("x")
int x;
@ObfuscatedName("q")
@ObfuscatedGetter(
intValue = -242275183
)
@Export("y")
int y;
@ObfuscatedName("j")
@ObfuscatedGetter(
intValue = 255410517
intValue = 1170791361
)
@Export("orientation")
int orientation;
@ObfuscatedName("p")
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = -1472318581
intValue = 85116123
)
@Export("tileHeight")
int tileHeight;
@ObfuscatedName("s")
@ObfuscatedGetter(
intValue = 841011539
)
@Export("x")
int x;
@ObfuscatedName("t")
@ObfuscatedGetter(
intValue = 321574291
)
@Export("y")
int y;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = -429102155
)
@Export("orientation2")
int orientation2;
@ObfuscatedName("g")
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = 96520519
intValue = -978448895
)
@Export("xOffset")
int xOffset;
@ObfuscatedName("n")
@ObfuscatedName("x")
@ObfuscatedGetter(
intValue = -752151105
intValue = 2017479075
)
@Export("yOffset")
int yOffset;
@ObfuscatedName("u")
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "Lel;"
descriptor = "Lez;"
)
@Export("entity1")
public Entity entity1;
@ObfuscatedName("a")
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "Lel;"
descriptor = "Lez;"
)
@Export("entity2")
public Entity entity2;
@ObfuscatedName("z")
@ObfuscatedName("m")
@ObfuscatedGetter(
longValue = 7567781693564802897L
longValue = -8703832368131294063L
)
@Export("tag")
public long tag;
@ObfuscatedName("w")
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = 1087358253
intValue = -2069520015
)
@Export("flags")
int flags;
WallDecoration() {
this.tag = 0L;
this.flags = 0;
}
this.tag = 0L; // L: 13
this.flags = 0; // L: 14
} // L: 16
@ObfuscatedName("fu")
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;I)V",
garbageValue = "764201281"
descriptor = "(I)V",
garbageValue = "-807916273"
)
@Export("doCheat")
static final void doCheat(String var0) {
if (var0.equalsIgnoreCase("toggleroof")) {
NetSocket.clientPreferences.roofsHidden = !NetSocket.clientPreferences.roofsHidden;
SpriteMask.savePreferences();
if (NetSocket.clientPreferences.roofsHidden) {
ObjectSound.addGameMessage(99, "", "Roofs are now all hidden");
} else {
ObjectSound.addGameMessage(99, "", "Roofs will only be removed selectively");
}
public static void method3409() {
synchronized(MouseHandler.MouseHandler_instance) { // L: 58
MouseHandler.MouseHandler_currentButton = MouseHandler.MouseHandler_currentButtonVolatile; // L: 59
MouseHandler.MouseHandler_x = MouseHandler.MouseHandler_xVolatile; // L: 60
MouseHandler.MouseHandler_y = MouseHandler.MouseHandler_yVolatile; // L: 61
MouseHandler.MouseHandler_millis = MouseHandler.MouseHandler_lastMovedVolatile; // L: 62
MouseHandler.MouseHandler_lastButton = MouseHandler.MouseHandler_lastButtonVolatile; // L: 63
MouseHandler.MouseHandler_lastPressedX = MouseHandler.MouseHandler_lastPressedXVolatile; // L: 64
MouseHandler.MouseHandler_lastPressedY = MouseHandler.MouseHandler_lastPressedYVolatile; // L: 65
MouseHandler.MouseHandler_lastPressedTimeMillis = MouseHandler.MouseHandler_lastPressedTimeMillisVolatile; // L: 66
MouseHandler.MouseHandler_lastButtonVolatile = 0; // L: 67
}
if (var0.equalsIgnoreCase("displayfps")) {
Client.displayFps = !Client.displayFps;
}
if (var0.equalsIgnoreCase("renderself")) {
Client.renderSelf = !Client.renderSelf;
}
if (var0.equalsIgnoreCase("mouseovertext")) {
Client.showMouseOverText = !Client.showMouseOverText;
}
if (Client.staffModLevel >= 2) {
if (var0.equalsIgnoreCase("errortest")) {
throw new RuntimeException();
}
if (var0.equalsIgnoreCase("showcoord")) {
class228.worldMap.showCoord = !class228.worldMap.showCoord;
}
if (var0.equalsIgnoreCase("fpson")) {
Client.displayFps = true;
}
if (var0.equalsIgnoreCase("fpsoff")) {
Client.displayFps = false;
}
if (var0.equalsIgnoreCase("gc")) {
System.gc();
}
if (var0.equalsIgnoreCase("clientdrop")) {
CollisionMap.method3707();
}
}
PacketBufferNode var1 = UserComparator4.getPacketBufferNode(ClientPacket.field2268, Client.packetWriter.isaacCipher);
var1.packetBuffer.writeByte(var0.length() + 1);
var1.packetBuffer.writeStringCp1252NullTerminated(var0);
Client.packetWriter.addNode(var1);
}
@ObfuscatedName("ir")
@ObfuscatedSignature(
descriptor = "(Lhd;Ljo;IIZI)V",
garbageValue = "-771039466"
)
@Export("addWidgetItemMenuItem")
static final void addWidgetItemMenuItem(Widget widget, ItemDefinition itemDef, int slotIdx, int actionIdx, boolean forceLeftClick) {
String[] itemActions = itemDef.inventoryActions;
byte opcode = -1;
String action = null;
if (itemActions != null && itemActions[actionIdx] != null) {
if (actionIdx == 0) {
opcode = 33;
} else if (actionIdx == 1) {
opcode = 34;
} else if (actionIdx == 2) {
opcode = 35;
} else if (actionIdx == 3) {
opcode = 36;
} else {
opcode = 37;
}
action = itemActions[actionIdx];
} else if (actionIdx == 4) {
opcode = 37;
action = "Drop";
}
if (opcode != -1 && action != null) {
ApproximateRouteStrategy.insertMenuItem(action, ItemContainer.colorStartTag(16748608) + itemDef.name, opcode, itemDef.id, slotIdx, widget.id, forceLeftClick);
}
}
} // L: 69
}