chore: rev 188
This commit is contained in:
@@ -3,162 +3,403 @@ 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("au")
|
||||
@Implements("WorldMapID")
|
||||
public class WorldMapID {
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lau;"
|
||||
)
|
||||
static final WorldMapID field252;
|
||||
@ObfuscatedName("i")
|
||||
static final WorldMapID field277;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lau;"
|
||||
)
|
||||
static final WorldMapID field253;
|
||||
@ObfuscatedName("y")
|
||||
static final WorldMapID field278;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -814602649
|
||||
intValue = -632156307
|
||||
)
|
||||
@Export("value")
|
||||
final int value;
|
||||
|
||||
static {
|
||||
field252 = new WorldMapID(0);
|
||||
field253 = new WorldMapID(1);
|
||||
field277 = new WorldMapID(0);
|
||||
field278 = new WorldMapID(1);
|
||||
}
|
||||
|
||||
WorldMapID(int var1) {
|
||||
this.value = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)J",
|
||||
garbageValue = "1359720205"
|
||||
signature = "(I)[Lhq;",
|
||||
garbageValue = "1911999829"
|
||||
)
|
||||
@Export("currentTimeMillis")
|
||||
public static final synchronized long currentTimeMillis() {
|
||||
long var0 = System.currentTimeMillis();
|
||||
if (var0 < class296.field3687) {
|
||||
class296.field3688 += class296.field3687 - var0;
|
||||
}
|
||||
|
||||
class296.field3687 = var0;
|
||||
return var0 + class296.field3688;
|
||||
static ServerBuild[] method572() {
|
||||
return new ServerBuild[]{ServerBuild.RC, ServerBuild.BUILDLIVE, ServerBuild.WIP, ServerBuild.LIVE};
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lhz;I)V",
|
||||
garbageValue = "817119758"
|
||||
signature = "(Lbw;IB)V",
|
||||
garbageValue = "0"
|
||||
)
|
||||
public static void method545(AbstractArchive var0) {
|
||||
VarpDefinition.VarpDefinition_archive = var0;
|
||||
VarpDefinition.VarpDefinition_fileCount = VarpDefinition.VarpDefinition_archive.getGroupFileCount(16);
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(CI)Z",
|
||||
garbageValue = "1021629294"
|
||||
)
|
||||
@Export("isCharPrintable")
|
||||
public static boolean isCharPrintable(char var0) {
|
||||
if (var0 >= ' ' && var0 <= '~') {
|
||||
return true;
|
||||
} else if (var0 >= 160 && var0 <= 255) {
|
||||
return true;
|
||||
@Export("runScript")
|
||||
static void runScript(ScriptEvent var0, int var1) {
|
||||
Object[] var2 = var0.args;
|
||||
Script var3;
|
||||
int var17;
|
||||
if (Username.isWorldMapEvent(var0.type)) {
|
||||
WorldMapLabelSize.worldMapEvent = (WorldMapEvent)var2[0];
|
||||
WorldMapElement var4 = PacketBufferNode.WorldMapElement_get(WorldMapLabelSize.worldMapEvent.mapElement);
|
||||
var3 = class197.getWorldMapScript(var0.type, var4.objectId, var4.category);
|
||||
} else {
|
||||
return var0 == 8364 || var0 == 338 || var0 == 8212 || var0 == 339 || var0 == 376;
|
||||
var17 = (Integer)var2[0];
|
||||
var3 = UserComparator9.getScript(var17);
|
||||
}
|
||||
|
||||
if (var3 != null) {
|
||||
class320.Interpreter_intStackSize = 0;
|
||||
Message.Interpreter_stringStackSize = 0;
|
||||
var17 = -1;
|
||||
int[] var5 = var3.opcodes;
|
||||
int[] var6 = var3.intOperands;
|
||||
byte var7 = -1;
|
||||
Interpreter.Interpreter_frameDepth = 0;
|
||||
Interpreter.field1094 = false;
|
||||
|
||||
try {
|
||||
int var10;
|
||||
try {
|
||||
Interpreter.Interpreter_intLocals = new int[var3.localIntCount];
|
||||
int var8 = 0;
|
||||
Interpreter.Interpreter_stringLocals = new String[var3.localStringCount];
|
||||
int var9 = 0;
|
||||
|
||||
int var11;
|
||||
String var18;
|
||||
for (var10 = 1; var10 < var2.length; ++var10) {
|
||||
if (var2[var10] instanceof Integer) {
|
||||
var11 = (Integer)var2[var10];
|
||||
if (var11 == -2147483647) {
|
||||
var11 = var0.mouseX;
|
||||
}
|
||||
|
||||
if (var11 == -2147483646) {
|
||||
var11 = var0.mouseY;
|
||||
}
|
||||
|
||||
if (var11 == -2147483645) {
|
||||
var11 = var0.widget != null ? var0.widget.id : -1;
|
||||
}
|
||||
|
||||
if (var11 == -2147483644) {
|
||||
var11 = var0.opIndex;
|
||||
}
|
||||
|
||||
if (var11 == -2147483643) {
|
||||
var11 = var0.widget != null ? var0.widget.childIndex : -1;
|
||||
}
|
||||
|
||||
if (var11 == -2147483642) {
|
||||
var11 = var0.dragTarget != null ? var0.dragTarget.id : -1;
|
||||
}
|
||||
|
||||
if (var11 == -2147483641) {
|
||||
var11 = var0.dragTarget != null ? var0.dragTarget.childIndex : -1;
|
||||
}
|
||||
|
||||
if (var11 == -2147483640) {
|
||||
var11 = var0.keyTyped;
|
||||
}
|
||||
|
||||
if (var11 == -2147483639) {
|
||||
var11 = var0.keyPressed;
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_intLocals[var8++] = var11;
|
||||
} else if (var2[var10] instanceof String) {
|
||||
var18 = (String)var2[var10];
|
||||
if (var18.equals("event_opbase")) {
|
||||
var18 = var0.targetName;
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_stringLocals[var9++] = var18;
|
||||
}
|
||||
}
|
||||
|
||||
var10 = 0;
|
||||
Interpreter.field1088 = var0.field582;
|
||||
|
||||
while (true) {
|
||||
++var10;
|
||||
if (var10 > var1) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
++var17;
|
||||
int var29 = var5[var17];
|
||||
int var20;
|
||||
if (var29 >= 100) {
|
||||
boolean var32;
|
||||
if (var3.intOperands[var17] == 1) {
|
||||
var32 = true;
|
||||
} else {
|
||||
var32 = false;
|
||||
}
|
||||
|
||||
var20 = LoginScreenAnimation.method1835(var29, var3, var32);
|
||||
switch(var20) {
|
||||
case 0:
|
||||
return;
|
||||
case 1:
|
||||
default:
|
||||
break;
|
||||
case 2:
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.ICONST) {
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var6[var17];
|
||||
} else if (var29 == ScriptOpcodes.GET_VARP) {
|
||||
var11 = var6[var17];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Varps.Varps_main[var11];
|
||||
} else if (var29 == ScriptOpcodes.SET_VARP) {
|
||||
var11 = var6[var17];
|
||||
Varps.Varps_main[var11] = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
ServerPacket.changeGameOptions(var11);
|
||||
} else if (var29 == ScriptOpcodes.SCONST) {
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var3.stringOperands[var17];
|
||||
} else if (var29 == ScriptOpcodes.JUMP) {
|
||||
var17 += var6[var17];
|
||||
} else if (var29 == ScriptOpcodes.IF_ICMPNE) {
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
if (Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize] != Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1]) {
|
||||
var17 += var6[var17];
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.IF_ICMPEQ) {
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
if (Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize] == Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1]) {
|
||||
var17 += var6[var17];
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.IF_ICMPLT) {
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
if (Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize] < Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1]) {
|
||||
var17 += var6[var17];
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.IF_ICMPGT) {
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
if (Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize] > Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1]) {
|
||||
var17 += var6[var17];
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.RETURN) {
|
||||
if (Interpreter.Interpreter_frameDepth == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
ScriptFrame var34 = Interpreter.Interpreter_frames[--Interpreter.Interpreter_frameDepth];
|
||||
var3 = var34.script;
|
||||
var5 = var3.opcodes;
|
||||
var6 = var3.intOperands;
|
||||
var17 = var34.pc;
|
||||
Interpreter.Interpreter_intLocals = var34.intLocals;
|
||||
Interpreter.Interpreter_stringLocals = var34.stringLocals;
|
||||
} else if (var29 == ScriptOpcodes.GET_VARBIT) {
|
||||
var11 = var6[var17];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = GrandExchangeOfferUnitPriceComparator.getVarbit(var11);
|
||||
} else if (var29 == ScriptOpcodes.SET_VARBIT) {
|
||||
var11 = var6[var17];
|
||||
DirectByteArrayCopier.method4006(var11, Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize]);
|
||||
} else if (var29 == ScriptOpcodes.IF_ICMPLE) {
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
if (Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize] <= Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1]) {
|
||||
var17 += var6[var17];
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.IF_ICMPGE) {
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
if (Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize] >= Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1]) {
|
||||
var17 += var6[var17];
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.ILOAD) {
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Interpreter.Interpreter_intLocals[var6[var17]];
|
||||
} else if (var29 == ScriptOpcodes.ISTORE) {
|
||||
Interpreter.Interpreter_intLocals[var6[var17]] = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
} else if (var29 == ScriptOpcodes.SLOAD) {
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = Interpreter.Interpreter_stringLocals[var6[var17]];
|
||||
} else if (var29 == ScriptOpcodes.SSTORE) {
|
||||
Interpreter.Interpreter_stringLocals[var6[var17]] = Interpreter.Interpreter_stringStack[--Message.Interpreter_stringStackSize];
|
||||
} else if (var29 == ScriptOpcodes.JOIN_STRING) {
|
||||
var11 = var6[var17];
|
||||
Message.Interpreter_stringStackSize -= var11;
|
||||
String var31 = class290.method5360(Interpreter.Interpreter_stringStack, Message.Interpreter_stringStackSize, var11);
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var31;
|
||||
} else if (var29 == ScriptOpcodes.POP_INT) {
|
||||
--class320.Interpreter_intStackSize;
|
||||
} else if (var29 == ScriptOpcodes.POP_STRING) {
|
||||
--Message.Interpreter_stringStackSize;
|
||||
} else {
|
||||
int var15;
|
||||
if (var29 != ScriptOpcodes.INVOKE) {
|
||||
if (var29 == ScriptOpcodes.GET_VARC_INT) {
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = class197.varcs.getInt(var6[var17]);
|
||||
} else if (var29 == ScriptOpcodes.SET_VARC_INT) {
|
||||
class197.varcs.setInt(var6[var17], Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize]);
|
||||
} else if (var29 == ScriptOpcodes.DEFINE_ARRAY) {
|
||||
var11 = var6[var17] >> 16;
|
||||
var20 = var6[var17] & 65535;
|
||||
int var21 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
if (var21 < 0 || var21 > 5000) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_arrayLengths[var11] = var21;
|
||||
byte var22 = -1;
|
||||
if (var20 == 105) {
|
||||
var22 = 0;
|
||||
}
|
||||
|
||||
for (var15 = 0; var15 < var21; ++var15) {
|
||||
Interpreter.Interpreter_arrays[var11][var15] = var22;
|
||||
}
|
||||
} else if (var29 == ScriptOpcodes.GET_ARRAY_INT) {
|
||||
var11 = var6[var17];
|
||||
var20 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Interpreter.Interpreter_arrays[var11][var20];
|
||||
} else if (var29 == ScriptOpcodes.SET_ARRAY_INT) {
|
||||
var11 = var6[var17];
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
var20 = Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize];
|
||||
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_arrays[var11][var20] = Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1];
|
||||
} else if (var29 == ScriptOpcodes.GET_VARC_STRING_OLD) {
|
||||
var18 = class197.varcs.getStringOld(var6[var17]);
|
||||
if (var18 == null) {
|
||||
var18 = "null";
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var18;
|
||||
} else if (var29 == ScriptOpcodes.SET_VARC_STRING_OLD) {
|
||||
class197.varcs.setStringOld(var6[var17], Interpreter.Interpreter_stringStack[--Message.Interpreter_stringStackSize]);
|
||||
} else if (var29 == ScriptOpcodes.GET_VARC_STRING) {
|
||||
var18 = class197.varcs.getString(var6[var17]);
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var18;
|
||||
} else if (var29 == ScriptOpcodes.SET_VARC_STRING) {
|
||||
class197.varcs.setString(var6[var17], Interpreter.Interpreter_stringStack[--Message.Interpreter_stringStackSize]);
|
||||
} else {
|
||||
if (var29 != ScriptOpcodes.SWITCH) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
IterableNodeHashTable var33 = var3.switches[var6[var17]];
|
||||
IntegerNode var30 = (IntegerNode)var33.get((long)Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize]);
|
||||
if (var30 != null) {
|
||||
var17 += var30.integer;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var11 = var6[var17];
|
||||
Script var12 = UserComparator9.getScript(var11);
|
||||
int[] var13 = new int[var12.localIntCount];
|
||||
String[] var14 = new String[var12.localStringCount];
|
||||
|
||||
for (var15 = 0; var15 < var12.intArgumentCount; ++var15) {
|
||||
var13[var15] = Interpreter.Interpreter_intStack[var15 + (class320.Interpreter_intStackSize - var12.intArgumentCount)];
|
||||
}
|
||||
|
||||
for (var15 = 0; var15 < var12.stringArgumentCount; ++var15) {
|
||||
var14[var15] = Interpreter.Interpreter_stringStack[var15 + (Message.Interpreter_stringStackSize - var12.stringArgumentCount)];
|
||||
}
|
||||
|
||||
class320.Interpreter_intStackSize -= var12.intArgumentCount;
|
||||
Message.Interpreter_stringStackSize -= var12.stringArgumentCount;
|
||||
ScriptFrame var19 = new ScriptFrame();
|
||||
var19.script = var3;
|
||||
var19.pc = var17;
|
||||
var19.intLocals = Interpreter.Interpreter_intLocals;
|
||||
var19.stringLocals = Interpreter.Interpreter_stringLocals;
|
||||
Interpreter.Interpreter_frames[++Interpreter.Interpreter_frameDepth - 1] = var19;
|
||||
var3 = var12;
|
||||
var5 = var12.opcodes;
|
||||
var6 = var12.intOperands;
|
||||
var17 = -1;
|
||||
Interpreter.Interpreter_intLocals = var13;
|
||||
Interpreter.Interpreter_stringLocals = var14;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception var27) {
|
||||
StringBuilder var24 = new StringBuilder(30);
|
||||
var24.append("").append(var3.key).append(" ");
|
||||
|
||||
for (var10 = Interpreter.Interpreter_frameDepth - 1; var10 >= 0; --var10) {
|
||||
var24.append("").append(Interpreter.Interpreter_frames[var10].script.key).append(" ");
|
||||
}
|
||||
|
||||
var24.append("").append(var7);
|
||||
class225.RunException_sendStackTrace(var24.toString(), var27);
|
||||
}
|
||||
} finally {
|
||||
if (Interpreter.field1094) {
|
||||
Interpreter.field1095 = true;
|
||||
KeyHandler.method848();
|
||||
Interpreter.field1095 = false;
|
||||
Interpreter.field1094 = false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("fb")
|
||||
@ObfuscatedName("jq")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Ljava/lang/String;",
|
||||
garbageValue = "1853943165"
|
||||
)
|
||||
static final String method570(int var0) {
|
||||
return var0 < 999999999 ? Integer.toString(var0) : "*";
|
||||
}
|
||||
|
||||
@ObfuscatedName("kj")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-2121389593"
|
||||
garbageValue = "-1218090205"
|
||||
)
|
||||
static final void method546() {
|
||||
for (int var0 = 0; var0 < Client.soundEffectCount; ++var0) {
|
||||
int var10002 = Client.queuedSoundEffectDelays[var0]--;
|
||||
if (Client.queuedSoundEffectDelays[var0] >= -10) {
|
||||
SoundEffect var9 = Client.soundEffects[var0];
|
||||
if (var9 == null) {
|
||||
Object var10000 = null;
|
||||
var9 = SoundEffect.readSoundEffect(FloorDecoration.archive4, Client.soundEffectIds[var0], 0);
|
||||
if (var9 == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int[] var12 = Client.queuedSoundEffectDelays;
|
||||
var12[var0] += var9.calculateDelay();
|
||||
Client.soundEffects[var0] = var9;
|
||||
}
|
||||
|
||||
if (Client.queuedSoundEffectDelays[var0] < 0) {
|
||||
int var2;
|
||||
if (Client.soundLocations[var0] != 0) {
|
||||
int var3 = (Client.soundLocations[var0] & 255) * 128;
|
||||
int var4 = Client.soundLocations[var0] >> 16 & 255;
|
||||
int var5 = var4 * 128 + 64 - Message.localPlayer.x;
|
||||
if (var5 < 0) {
|
||||
var5 = -var5;
|
||||
}
|
||||
|
||||
int var6 = Client.soundLocations[var0] >> 8 & 255;
|
||||
int var7 = var6 * 128 + 64 - Message.localPlayer.y;
|
||||
if (var7 < 0) {
|
||||
var7 = -var7;
|
||||
}
|
||||
|
||||
int var8 = var7 + var5 - 128;
|
||||
if (var8 > var3) {
|
||||
Client.queuedSoundEffectDelays[var0] = -100;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (var8 < 0) {
|
||||
var8 = 0;
|
||||
}
|
||||
|
||||
var2 = (var3 - var8) * Client.areaSoundEffectVolume / var3;
|
||||
} else {
|
||||
var2 = Client.soundEffectVolume;
|
||||
}
|
||||
|
||||
if (var2 > 0) {
|
||||
RawSound var10 = var9.toRawSound().resample(ClientPreferences.decimator);
|
||||
RawPcmStream var11 = RawPcmStream.createRawPcmStream(var10, 100, var2);
|
||||
var11.setNumLoops(Client.queuedSoundEffectLoops[var0] - 1);
|
||||
Tiles.pcmStreamMixer.addSubStream(var11);
|
||||
}
|
||||
|
||||
Client.queuedSoundEffectDelays[var0] = -100;
|
||||
}
|
||||
} else {
|
||||
--Client.soundEffectCount;
|
||||
|
||||
for (int var1 = var0; var1 < Client.soundEffectCount; ++var1) {
|
||||
Client.soundEffectIds[var1] = Client.soundEffectIds[var1 + 1];
|
||||
Client.soundEffects[var1] = Client.soundEffects[var1 + 1];
|
||||
Client.queuedSoundEffectLoops[var1] = Client.queuedSoundEffectLoops[var1 + 1];
|
||||
Client.queuedSoundEffectDelays[var1] = Client.queuedSoundEffectDelays[var1 + 1];
|
||||
Client.soundLocations[var1] = Client.soundLocations[var1 + 1];
|
||||
}
|
||||
|
||||
--var0;
|
||||
}
|
||||
@Export("FriendSystem_invalidateFriends")
|
||||
static final void FriendSystem_invalidateFriends() {
|
||||
for (int var0 = 0; var0 < Players.Players_count; ++var0) {
|
||||
Player var1 = Client.players[Players.Players_indices[var0]];
|
||||
var1.clearIsFriend();
|
||||
}
|
||||
|
||||
if (Client.field767 && !class42.method792()) {
|
||||
if (Client.musicVolume != 0 && Client.currentTrackGroupId != -1) {
|
||||
class173.playMusicTrack(GrandExchangeOfferWorldComparator.archive6, Client.currentTrackGroupId, 0, Client.musicVolume, false);
|
||||
}
|
||||
|
||||
Client.field767 = false;
|
||||
Message.method1228();
|
||||
if (InterfaceParent.clanChat != null) {
|
||||
InterfaceParent.clanChat.clearFriends();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("ko")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/String;I)V",
|
||||
garbageValue = "1990682337"
|
||||
)
|
||||
@Export("clanKickUser")
|
||||
static final void clanKickUser(String var0) {
|
||||
if (InterfaceParent.clanChat != null) {
|
||||
PacketBufferNode var1 = TilePaint.getPacketBufferNode(ClientPacket.field2229, Client.packetWriter.isaacCipher);
|
||||
var1.packetBuffer.writeByte(Buddy.stringCp1252NullTerminatedByteSize(var0));
|
||||
var1.packetBuffer.writeStringCp1252NullTerminated(var0);
|
||||
Client.packetWriter.addNode(var1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user