update client to rev 183
This commit is contained in:
@@ -1,99 +1,210 @@
|
||||
import java.util.Date;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("aj")
|
||||
@ObfuscatedName("al")
|
||||
@Implements("WorldMapID")
|
||||
public class WorldMapID {
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Laj;"
|
||||
signature = "Lal;"
|
||||
)
|
||||
static final WorldMapID field260;
|
||||
@ObfuscatedName("j")
|
||||
static final WorldMapID field263;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Laj;"
|
||||
signature = "Lal;"
|
||||
)
|
||||
static final WorldMapID field257;
|
||||
@ObfuscatedName("aw")
|
||||
@Export("client")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lclient;"
|
||||
)
|
||||
static Client client;
|
||||
@ObfuscatedName("di")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lid;"
|
||||
)
|
||||
@Export("archive13")
|
||||
static Archive archive13;
|
||||
@ObfuscatedName("i")
|
||||
static final WorldMapID field264;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -2063866403
|
||||
intValue = 1185944763
|
||||
)
|
||||
@Export("value")
|
||||
final int value;
|
||||
|
||||
static {
|
||||
field260 = new WorldMapID(0);
|
||||
field257 = new WorldMapID(1);
|
||||
field263 = new WorldMapID(0);
|
||||
field264 = new WorldMapID(1);
|
||||
}
|
||||
|
||||
WorldMapID(int var1) {
|
||||
this.value = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lhz;IIB)[Lls;",
|
||||
garbageValue = "32"
|
||||
signature = "(Lhz;Lhz;I)V",
|
||||
garbageValue = "969965104"
|
||||
)
|
||||
@Export("SpriteBuffer_getSpriteArray")
|
||||
public static Sprite[] SpriteBuffer_getSpriteArray(AbstractArchive var0, int var1, int var2) {
|
||||
return !World.SpriteBuffer_bufferFile(var0, var1, var2) ? null : GameShell.method897();
|
||||
public static void method526(AbstractArchive var0, AbstractArchive var1) {
|
||||
KitDefinition.KitDefinition_archive = var0;
|
||||
KitDefinition.KitDefinition_modelsArchive = var1;
|
||||
KitDefinition.KitDefinition_fileCount = KitDefinition.KitDefinition_archive.getGroupFileCount(3);
|
||||
}
|
||||
|
||||
@ObfuscatedName("ic")
|
||||
@ObfuscatedName("c")
|
||||
public static String method522(long var0) {
|
||||
Calendar.Calendar_calendar.setTime(new Date(var0));
|
||||
int var2 = Calendar.Calendar_calendar.get(7);
|
||||
int var3 = Calendar.Calendar_calendar.get(5);
|
||||
int var4 = Calendar.Calendar_calendar.get(2);
|
||||
int var5 = Calendar.Calendar_calendar.get(1);
|
||||
int var6 = Calendar.Calendar_calendar.get(11);
|
||||
int var7 = Calendar.Calendar_calendar.get(12);
|
||||
int var8 = Calendar.Calendar_calendar.get(13);
|
||||
return Calendar.DAYS_OF_THE_WEEK[var2 - 1] + ", " + var3 / 10 + var3 % 10 + "-" + Calendar.MONTH_NAMES_ENGLISH_GERMAN[0][var4] + "-" + var5 + " " + var6 / 10 + var6 % 10 + ":" + var7 / 10 + var7 % 10 + ":" + var8 / 10 + var8 % 10 + " GMT";
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(S)V",
|
||||
garbageValue = "-6260"
|
||||
signature = "(IIIIB)V",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("sortMenuEntries")
|
||||
static final void sortMenuEntries() {
|
||||
boolean var0 = false;
|
||||
static void method521(int var0, int var1, int var2, int var3) {
|
||||
for (ObjectSound var4 = (ObjectSound)ObjectSound.objectSounds.last(); var4 != null; var4 = (ObjectSound)ObjectSound.objectSounds.previous()) {
|
||||
if (var4.soundEffectId != -1 || var4.soundEffectIds != null) {
|
||||
int var5 = 0;
|
||||
if (var1 > var4.field1043 * 16384) {
|
||||
var5 += var1 - var4.field1043 * 16384;
|
||||
} else if (var1 < var4.x * 16384) {
|
||||
var5 += var4.x * 16384 - var1;
|
||||
}
|
||||
|
||||
while (!var0) {
|
||||
var0 = true;
|
||||
if (var2 > var4.field1051 * 16384) {
|
||||
var5 += var2 - var4.field1051 * 16384;
|
||||
} else if (var2 < var4.y * 16384) {
|
||||
var5 += var4.y * 16384 - var2;
|
||||
}
|
||||
|
||||
for (int var1 = 0; var1 < Client.menuOptionsCount - 1; ++var1) {
|
||||
if (Client.menuOpcodes[var1] < 1000 && Client.menuOpcodes[var1 + 1] > 1000) {
|
||||
String var2 = Client.menuTargets[var1];
|
||||
Client.menuTargets[var1] = Client.menuTargets[var1 + 1];
|
||||
Client.menuTargets[var1 + 1] = var2;
|
||||
String var3 = Client.menuActions[var1];
|
||||
Client.menuActions[var1] = Client.menuActions[var1 + 1];
|
||||
Client.menuActions[var1 + 1] = var3;
|
||||
int var4 = Client.menuOpcodes[var1];
|
||||
Client.menuOpcodes[var1] = Client.menuOpcodes[var1 + 1];
|
||||
Client.menuOpcodes[var1 + 1] = var4;
|
||||
var4 = Client.menuArguments1[var1];
|
||||
Client.menuArguments1[var1] = Client.menuArguments1[var1 + 1];
|
||||
Client.menuArguments1[var1 + 1] = var4;
|
||||
var4 = Client.menuArguments2[var1];
|
||||
Client.menuArguments2[var1] = Client.menuArguments2[var1 + 1];
|
||||
Client.menuArguments2[var1 + 1] = var4;
|
||||
var4 = Client.menuIdentifiers[var1];
|
||||
Client.menuIdentifiers[var1] = Client.menuIdentifiers[var1 + 1];
|
||||
Client.menuIdentifiers[var1 + 1] = var4;
|
||||
boolean var5 = Client.menuShiftClick[var1];
|
||||
Client.menuShiftClick[var1] = Client.menuShiftClick[var1 + 1];
|
||||
Client.menuShiftClick[var1 + 1] = var5;
|
||||
var0 = false;
|
||||
if (var5 - 64 <= var4.field1039 && Client.field860 != 0 && var0 == var4.plane) {
|
||||
var5 -= 64;
|
||||
if (var5 < 0) {
|
||||
var5 = 0;
|
||||
}
|
||||
|
||||
int var6 = (var4.field1039 - var5) * Client.field860 / var4.field1039;
|
||||
if (var4.stream1 == null) {
|
||||
if (var4.soundEffectId >= 0) {
|
||||
SoundEffect var7 = SoundEffect.readSoundEffect(class13.archive4, var4.soundEffectId, 0);
|
||||
if (var7 != null) {
|
||||
RawSound var8 = var7.toRawSound().resample(class81.decimator);
|
||||
RawPcmStream var9 = RawPcmStream.createRawPcmStream(var8, 100, var6);
|
||||
var9.setNumLoops(-1);
|
||||
class51.pcmStreamMixer.addSubStream(var9);
|
||||
var4.stream1 = var9;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var4.stream1.method2514(var6);
|
||||
}
|
||||
|
||||
if (var4.stream2 == null) {
|
||||
if (var4.soundEffectIds != null && (var4.field1042 -= var3) <= 0) {
|
||||
int var11 = (int)(Math.random() * (double)var4.soundEffectIds.length);
|
||||
SoundEffect var12 = SoundEffect.readSoundEffect(class13.archive4, var4.soundEffectIds[var11], 0);
|
||||
if (var12 != null) {
|
||||
RawSound var13 = var12.toRawSound().resample(class81.decimator);
|
||||
RawPcmStream var10 = RawPcmStream.createRawPcmStream(var13, 100, var6);
|
||||
var10.setNumLoops(0);
|
||||
class51.pcmStreamMixer.addSubStream(var10);
|
||||
var4.stream2 = var10;
|
||||
var4.field1042 = var4.field1048 + (int)(Math.random() * (double)(var4.field1049 - var4.field1048));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var4.stream2.method2514(var6);
|
||||
if (!var4.stream2.hasNext()) {
|
||||
var4.stream2 = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (var4.stream1 != null) {
|
||||
class51.pcmStreamMixer.removeSubStream(var4.stream1);
|
||||
var4.stream1 = null;
|
||||
}
|
||||
|
||||
if (var4.stream2 != null) {
|
||||
class51.pcmStreamMixer.removeSubStream(var4.stream2);
|
||||
var4.stream2 = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IZIZI)V",
|
||||
garbageValue = "-704520516"
|
||||
)
|
||||
@Export("sortWorldList")
|
||||
static void sortWorldList(int var0, boolean var1, int var2, boolean var3) {
|
||||
if (World.World_worlds != null) {
|
||||
VertexNormal.doWorldSorting(0, World.World_worlds.length - 1, var0, var1, var2, var3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ZI)V",
|
||||
garbageValue = "-354748408"
|
||||
)
|
||||
static void method520(boolean var0) {
|
||||
Login.Login_response1 = "";
|
||||
Login.Login_response2 = "Enter your username/email & password.";
|
||||
Login.Login_response3 = "";
|
||||
Login.loginIndex = 2;
|
||||
if (var0) {
|
||||
Login.Login_password = "";
|
||||
}
|
||||
|
||||
if (Login.Login_username == null || Login.Login_username.length() <= 0) {
|
||||
if (Actor.clientPreferences.rememberedUsername != null) {
|
||||
Login.Login_username = Actor.clientPreferences.rememberedUsername;
|
||||
Client.Login_isUsernameRemembered = true;
|
||||
} else {
|
||||
Client.Login_isUsernameRemembered = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (Client.Login_isUsernameRemembered && Login.Login_username != null && Login.Login_username.length() > 0) {
|
||||
Login.currentLoginField = 1;
|
||||
} else {
|
||||
Login.currentLoginField = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("js")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lhy;B)V",
|
||||
garbageValue = "-19"
|
||||
)
|
||||
@Export("invalidateWidget")
|
||||
static void invalidateWidget(Widget var0) {
|
||||
if (var0.cycle == Client.field826) {
|
||||
Client.field827[var0.rootIndex] = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("kr")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/String;B)V",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("Clan_joinChat")
|
||||
static final void Clan_joinChat(String var0) {
|
||||
if (!var0.equals("")) {
|
||||
PacketBufferNode var1 = MenuAction.getPacketBufferNode(ClientPacket.field2252, Client.packetWriter.isaacCipher);
|
||||
var1.packetBuffer.writeByte(Varcs.stringCp1252NullTerminatedByteSize(var0));
|
||||
var1.packetBuffer.writeStringCp1252NullTerminated(var0);
|
||||
Client.packetWriter.addNode(var1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user