update client to rev 183
This commit is contained in:
@@ -3,66 +3,65 @@ import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("cb")
|
||||
@ObfuscatedName("cn")
|
||||
@Implements("Players")
|
||||
public class Players {
|
||||
@ObfuscatedName("i")
|
||||
static byte[] field1221;
|
||||
@ObfuscatedName("k")
|
||||
static byte[] field1230;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("t")
|
||||
static byte[] field1217;
|
||||
@ObfuscatedName("g")
|
||||
static byte[] field1220;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lky;"
|
||||
signature = "[Lkz;"
|
||||
)
|
||||
static Buffer[] field1219;
|
||||
@ObfuscatedName("n")
|
||||
static Buffer[] field1221;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1067165743
|
||||
intValue = 207480583
|
||||
)
|
||||
@Export("Players_count")
|
||||
static int Players_count;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("j")
|
||||
@Export("Players_indices")
|
||||
static int[] Players_indices;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -2082496335
|
||||
intValue = 205698167
|
||||
)
|
||||
@Export("Players_emptyIdxCount")
|
||||
static int Players_emptyIdxCount;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("d")
|
||||
@Export("Players_emptyIndices")
|
||||
static int[] Players_emptyIndices;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("z")
|
||||
@Export("Players_regions")
|
||||
static int[] Players_regions;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("n")
|
||||
@Export("Players_orientations")
|
||||
static int[] Players_orientations;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("h")
|
||||
@Export("Players_targetIndices")
|
||||
static int[] Players_targetIndices;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 504447411
|
||||
intValue = 707214243
|
||||
)
|
||||
@Export("Players_pendingUpdateCount")
|
||||
static int Players_pendingUpdateCount;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("s")
|
||||
@Export("Players_pendingUpdateIndices")
|
||||
static int[] Players_pendingUpdateIndices;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lky;"
|
||||
signature = "Lkz;"
|
||||
)
|
||||
static Buffer field1233;
|
||||
static Buffer field1231;
|
||||
|
||||
static {
|
||||
field1221 = new byte[2048];
|
||||
field1230 = new byte[2048];
|
||||
field1219 = new Buffer[2048];
|
||||
field1217 = new byte[2048];
|
||||
field1220 = new byte[2048];
|
||||
field1221 = new Buffer[2048];
|
||||
Players_count = 0;
|
||||
Players_indices = new int[2048];
|
||||
Players_emptyIdxCount = 0;
|
||||
@@ -72,36 +71,185 @@ public class Players {
|
||||
Players_targetIndices = new int[2048];
|
||||
Players_pendingUpdateCount = 0;
|
||||
Players_pendingUpdateIndices = new int[2048];
|
||||
field1233 = new Buffer(new byte[5000]);
|
||||
field1231 = new Buffer(new byte[5000]);
|
||||
}
|
||||
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcr;ZI)I",
|
||||
garbageValue = "578310351"
|
||||
signature = "(II)Lik;",
|
||||
garbageValue = "-1920916137"
|
||||
)
|
||||
static int method2063(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? class286.field3623 : class297.field3693;
|
||||
if (var0 == ScriptOpcodes.CC_GETX) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.x;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETY) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.y;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETWIDTH) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.width;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETHEIGHT) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.height;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETHIDE) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.isHidden ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETLAYER) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.parentId;
|
||||
return 1;
|
||||
@Export("getInvDefinition")
|
||||
public static InvDefinition getInvDefinition(int var0) {
|
||||
InvDefinition var1 = (InvDefinition)InvDefinition.InvDefinition_cached.get((long)var0);
|
||||
if (var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
return 2;
|
||||
byte[] var2 = InvDefinition.InvDefinition_archive.takeFile(5, var0);
|
||||
var1 = new InvDefinition();
|
||||
if (var2 != null) {
|
||||
var1.decode(new Buffer(var2));
|
||||
}
|
||||
|
||||
InvDefinition.InvDefinition_cached.put(var1, (long)var0);
|
||||
return var1;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("jl")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)V",
|
||||
garbageValue = "1427769398"
|
||||
)
|
||||
static final void method2123(int var0) {
|
||||
WorldMapRectangle.method257();
|
||||
WorldMapData_0.method157();
|
||||
int var1 = class30.method518(var0).type;
|
||||
if (var1 != 0) {
|
||||
int var2 = Varps.Varps_main[var0];
|
||||
if (var1 == 1) {
|
||||
if (var2 == 1) {
|
||||
Rasterizer3D.Rasterizer3D_setBrightness(0.9D);
|
||||
((TextureProvider)Rasterizer3D.Rasterizer3D_textureLoader).setBrightness(0.9D);
|
||||
}
|
||||
|
||||
if (var2 == 2) {
|
||||
Rasterizer3D.Rasterizer3D_setBrightness(0.8D);
|
||||
((TextureProvider)Rasterizer3D.Rasterizer3D_textureLoader).setBrightness(0.8D);
|
||||
}
|
||||
|
||||
if (var2 == 3) {
|
||||
Rasterizer3D.Rasterizer3D_setBrightness(0.7D);
|
||||
((TextureProvider)Rasterizer3D.Rasterizer3D_textureLoader).setBrightness(0.7D);
|
||||
}
|
||||
|
||||
if (var2 == 4) {
|
||||
Rasterizer3D.Rasterizer3D_setBrightness(0.6D);
|
||||
((TextureProvider)Rasterizer3D.Rasterizer3D_textureLoader).setBrightness(0.6D);
|
||||
}
|
||||
|
||||
ItemDefinition.ItemDefinition_cachedSprites.clear();
|
||||
}
|
||||
|
||||
if (var1 == 3) {
|
||||
short var3 = 0;
|
||||
if (var2 == 0) {
|
||||
var3 = 255;
|
||||
}
|
||||
|
||||
if (var2 == 1) {
|
||||
var3 = 192;
|
||||
}
|
||||
|
||||
if (var2 == 2) {
|
||||
var3 = 128;
|
||||
}
|
||||
|
||||
if (var2 == 3) {
|
||||
var3 = 64;
|
||||
}
|
||||
|
||||
if (var2 == 4) {
|
||||
var3 = 0;
|
||||
}
|
||||
|
||||
if (var3 != Client.field638) {
|
||||
if (Client.field638 == 0 && Client.field857 != -1) {
|
||||
class49.method826(WorldMapDecoration.archive6, Client.field857, 0, var3, false);
|
||||
Client.field746 = false;
|
||||
} else if (var3 == 0) {
|
||||
class226.method4108();
|
||||
Client.field746 = false;
|
||||
} else {
|
||||
Decimator.method2499(var3);
|
||||
}
|
||||
|
||||
Client.field638 = var3;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1 == 4) {
|
||||
if (var2 == 0) {
|
||||
Client.soundEffectVolume = 127;
|
||||
}
|
||||
|
||||
if (var2 == 1) {
|
||||
Client.soundEffectVolume = 96;
|
||||
}
|
||||
|
||||
if (var2 == 2) {
|
||||
Client.soundEffectVolume = 64;
|
||||
}
|
||||
|
||||
if (var2 == 3) {
|
||||
Client.soundEffectVolume = 32;
|
||||
}
|
||||
|
||||
if (var2 == 4) {
|
||||
Client.soundEffectVolume = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1 == 5) {
|
||||
Client.leftClickOpensMenu = var2;
|
||||
}
|
||||
|
||||
if (var1 == 6) {
|
||||
Client.chatEffects = var2;
|
||||
}
|
||||
|
||||
if (var1 == 9) {
|
||||
Client.field787 = var2;
|
||||
}
|
||||
|
||||
if (var1 == 10) {
|
||||
if (var2 == 0) {
|
||||
Client.field860 = 127;
|
||||
}
|
||||
|
||||
if (var2 == 1) {
|
||||
Client.field860 = 96;
|
||||
}
|
||||
|
||||
if (var2 == 2) {
|
||||
Client.field860 = 64;
|
||||
}
|
||||
|
||||
if (var2 == 3) {
|
||||
Client.field860 = 32;
|
||||
}
|
||||
|
||||
if (var2 == 4) {
|
||||
Client.field860 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1 == 17) {
|
||||
Client.followerIndex = var2 & 65535;
|
||||
}
|
||||
|
||||
if (var1 == 18) {
|
||||
Client.playerAttackOption = (AttackOption)ServerPacket.findEnumerated(Coord.method3981(), var2);
|
||||
if (Client.playerAttackOption == null) {
|
||||
Client.playerAttackOption = AttackOption.AttackOption_dependsOnCombatLevels;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1 == 19) {
|
||||
if (var2 == -1) {
|
||||
Client.combatTargetPlayerIndex = -1;
|
||||
} else {
|
||||
Client.combatTargetPlayerIndex = var2 & 2047;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1 == 22) {
|
||||
Client.npcAttackOption = (AttackOption)ServerPacket.findEnumerated(Coord.method3981(), var2);
|
||||
if (Client.npcAttackOption == null) {
|
||||
Client.npcAttackOption = AttackOption.AttackOption_dependsOnCombatLevels;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user