chore: rev 190
This commit is contained in:
@@ -1,143 +1,153 @@
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.Reflection;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
final class class2 implements class0 {
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("qo")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/Object;Lkb;B)V",
|
||||
garbageValue = "3"
|
||||
signature = "Ldt;"
|
||||
)
|
||||
public void vmethod64(Object var1, Buffer var2) {
|
||||
this.method36((Long)var1, var2);
|
||||
}
|
||||
@Export("pcmPlayer0")
|
||||
static PcmPlayer pcmPlayer0;
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkb;I)Ljava/lang/Object;",
|
||||
garbageValue = "-1146837249"
|
||||
signature = "(Ljava/lang/Object;Lkn;B)V",
|
||||
garbageValue = "0"
|
||||
)
|
||||
public Object vmethod74(Buffer var1) {
|
||||
public void vmethod59(Object var1, Buffer var2) {
|
||||
this.method23((Long)var1, var2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkn;B)Ljava/lang/Object;",
|
||||
garbageValue = "114"
|
||||
)
|
||||
public Object vmethod47(Buffer var1) {
|
||||
return var1.readLong();
|
||||
}
|
||||
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/Long;Lkb;I)V",
|
||||
garbageValue = "1997729156"
|
||||
signature = "(Ljava/lang/Long;Lkn;I)V",
|
||||
garbageValue = "2145124737"
|
||||
)
|
||||
void method36(Long var1, Buffer var2) {
|
||||
void method23(Long var1, Buffer var2) {
|
||||
var2.writeLong(var1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/String;B)Ljava/lang/Class;",
|
||||
garbageValue = "15"
|
||||
signature = "(IS)I",
|
||||
garbageValue = "-12961"
|
||||
)
|
||||
@Export("loadClassFromDescriptor")
|
||||
static Class loadClassFromDescriptor(String var0) throws ClassNotFoundException {
|
||||
if (var0.equals("B")) {
|
||||
return Byte.TYPE;
|
||||
} else if (var0.equals("I")) {
|
||||
return Integer.TYPE;
|
||||
} else if (var0.equals("S")) {
|
||||
return Short.TYPE;
|
||||
} else if (var0.equals("J")) {
|
||||
return Long.TYPE;
|
||||
} else if (var0.equals("Z")) {
|
||||
return Boolean.TYPE;
|
||||
} else if (var0.equals("F")) {
|
||||
return Float.TYPE;
|
||||
} else if (var0.equals("D")) {
|
||||
return Double.TYPE;
|
||||
} else if (var0.equals("C")) {
|
||||
return Character.TYPE;
|
||||
} else {
|
||||
return var0.equals("void") ? Void.TYPE : Reflection.findClass(var0);
|
||||
}
|
||||
public static int method32(int var0) {
|
||||
return Language.Entity_unpackID(ViewportMouse.ViewportMouse_entityTags[var0]);
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("hi")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILce;ZI)I",
|
||||
garbageValue = "-453717228"
|
||||
signature = "(ZLkb;I)V",
|
||||
garbageValue = "1542604247"
|
||||
)
|
||||
static int method28(int var0, Script var1, boolean var2) {
|
||||
Widget var3;
|
||||
if (var0 >= 2000) {
|
||||
var0 -= 1000;
|
||||
var3 = MusicPatchNode.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
} else {
|
||||
var3 = var2 ? GrandExchangeOfferNameComparator.field115 : Interpreter.field1130;
|
||||
}
|
||||
@Export("updateNpcs")
|
||||
static final void updateNpcs(boolean var0, PacketBuffer var1) {
|
||||
Client.field687 = 0;
|
||||
Client.field718 = 0;
|
||||
UserList.method5333();
|
||||
|
||||
ItemContainer.invalidateWidget(var3);
|
||||
if (var0 != ScriptOpcodes.CC_SETOBJECT && var0 != ScriptOpcodes.CC_SETOBJECT_NONUM && var0 != ScriptOpcodes.CC_SETOBJECT_ALWAYS_NUM) {
|
||||
if (var0 == ScriptOpcodes.CC_SETNPCHEAD) {
|
||||
var3.modelType = 2;
|
||||
var3.modelId = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETPLAYERHEAD_SELF) {
|
||||
var3.modelType = 3;
|
||||
var3.modelId = ByteArrayPool.localPlayer.appearance.getChatHeadId();
|
||||
return 1;
|
||||
int var2;
|
||||
while (var1.bitsRemaining(Client.packetWriter.serverPacketLength) >= 27) {
|
||||
var2 = var1.readBits(15);
|
||||
if (var2 == 32767) {
|
||||
break;
|
||||
}
|
||||
|
||||
boolean var3 = false;
|
||||
if (Client.npcs[var2] == null) {
|
||||
Client.npcs[var2] = new NPC();
|
||||
var3 = true;
|
||||
}
|
||||
|
||||
NPC var4 = Client.npcs[var2];
|
||||
Client.npcIndices[++Client.npcCount - 1] = var2;
|
||||
var4.npcCycle = Client.cycle;
|
||||
int var5 = Client.defaultRotations[var1.readBits(3)];
|
||||
if (var3) {
|
||||
var4.orientation = var4.rotation = var5;
|
||||
}
|
||||
|
||||
int var6 = var1.readBits(1);
|
||||
int var7 = var1.readBits(1);
|
||||
if (var7 == 1) {
|
||||
Client.field719[++Client.field718 - 1] = var2;
|
||||
}
|
||||
|
||||
var4.definition = StudioGame.getNpcDefinition(var1.readBits(14));
|
||||
int var8;
|
||||
if (var0) {
|
||||
var8 = var1.readBits(8);
|
||||
if (var8 > 127) {
|
||||
var8 -= 256;
|
||||
}
|
||||
} else {
|
||||
return 2;
|
||||
var8 = var1.readBits(5);
|
||||
if (var8 > 15) {
|
||||
var8 -= 32;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
int var4 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
int var5 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
var3.itemId = var4;
|
||||
var3.itemQuantity = var5;
|
||||
ItemDefinition var6 = AbstractWorldMapData.ItemDefinition_get(var4);
|
||||
var3.modelAngleX = var6.xan2d;
|
||||
var3.modelAngleY = var6.yan2d;
|
||||
var3.modelAngleZ = var6.zan2d;
|
||||
var3.modelOffsetX = var6.offsetX2d;
|
||||
var3.modelOffsetY = var6.offsetY2d;
|
||||
var3.modelZoom = var6.zoom2d;
|
||||
if (var0 == ScriptOpcodes.CC_SETOBJECT_NONUM) {
|
||||
var3.itemQuantityMode = 0;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETOBJECT_ALWAYS_NUM | 1 == var6.isStackable) {
|
||||
var3.itemQuantityMode = 1;
|
||||
|
||||
int var9;
|
||||
if (var0) {
|
||||
var9 = var1.readBits(8);
|
||||
if (var9 > 127) {
|
||||
var9 -= 256;
|
||||
}
|
||||
} else {
|
||||
var3.itemQuantityMode = 2;
|
||||
var9 = var1.readBits(5);
|
||||
if (var9 > 15) {
|
||||
var9 -= 32;
|
||||
}
|
||||
}
|
||||
|
||||
if (var3.field2622 > 0) {
|
||||
var3.modelZoom = var3.modelZoom * 32 / var3.field2622;
|
||||
} else if (var3.rawWidth > 0) {
|
||||
var3.modelZoom = var3.modelZoom * 32 / var3.rawWidth;
|
||||
var4.field967 = var4.definition.size;
|
||||
var4.field1017 = var4.definition.rotation;
|
||||
if (var4.field1017 == 0) {
|
||||
var4.rotation = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
var4.walkSequence = var4.definition.walkSequence;
|
||||
var4.walkBackSequence = var4.definition.walkBackSequence;
|
||||
var4.walkLeftSequence = var4.definition.walkLeftSequence;
|
||||
var4.walkRightSequence = var4.definition.walkRightSequence;
|
||||
var4.idleSequence = var4.definition.idleSequence;
|
||||
var4.turnLeftSequence = var4.definition.turnLeftSequence;
|
||||
var4.turnRightSequence = var4.definition.turnRightSequence;
|
||||
var4.method2142(class60.localPlayer.pathX[0] + var9, class60.localPlayer.pathY[0] + var8, var6 == 1);
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("jn")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ZB)V",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("setTapToDrop")
|
||||
static void setTapToDrop(boolean var0) {
|
||||
Client.tapToDrop = var0;
|
||||
}
|
||||
var1.exportIndex();
|
||||
BoundaryObject.method3389(var1);
|
||||
|
||||
for (var2 = 0; var2 < Client.field687; ++var2) {
|
||||
int var10 = Client.field907[var2];
|
||||
if (Client.npcs[var10].npcCycle != Client.cycle) {
|
||||
Client.npcs[var10].definition = null;
|
||||
Client.npcs[var10] = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1.offset != Client.packetWriter.serverPacketLength) {
|
||||
throw new RuntimeException(var1.offset + "," + Client.packetWriter.serverPacketLength);
|
||||
} else {
|
||||
for (var2 = 0; var2 < Client.npcCount; ++var2) {
|
||||
if (Client.npcs[Client.npcIndices[var2]] == null) {
|
||||
throw new RuntimeException(var2 + "," + Client.npcCount);
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("jl")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIIIIIB)V",
|
||||
garbageValue = "16"
|
||||
)
|
||||
@Export("updateRootInterface")
|
||||
static final void updateRootInterface(int var0, int var1, int var2, int var3, int var4, int var5, int var6) {
|
||||
if (LoginScreenAnimation.loadInterface(var0)) {
|
||||
WorldMapDecorationType.updateInterface(Widget.Widget_interfaceComponents[var0], -1, var1, var2, var3, var4, var5, var6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user