This commit is contained in:
Lucwousin
2019-12-16 18:40:02 +01:00
parent 471eaeb3e0
commit f6c2b4ac11
338 changed files with 40594 additions and 41546 deletions

View File

@@ -2,22 +2,23 @@ import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("jn")
@ObfuscatedName("jg")
@Implements("Friend")
public class Friend extends Buddy {
@ObfuscatedName("u")
boolean field3629;
@ObfuscatedName("f")
boolean field3630;
boolean field3617;
@ObfuscatedName("i")
boolean field3618;
Friend() {
}
@ObfuscatedName("u")
@ObfuscatedName("f")
@ObfuscatedSignature(
signature = "(Ljn;I)I",
garbageValue = "-1380403624"
signature = "(Ljg;B)I",
garbageValue = "73"
)
@Export("compareToFriend")
int compareToFriend(Friend var1) {
@@ -29,23 +30,23 @@ public class Friend extends Buddy {
return -1;
} else if (var1.world != 0 && super.world == 0) {
return 1;
} else if (this.field3629 && !var1.field3629) {
} else if (this.field3617 && !var1.field3617) {
return -1;
} else if (!this.field3629 && var1.field3629) {
} else if (!this.field3617 && var1.field3617) {
return 1;
} else if (this.field3630 && !var1.field3630) {
} else if (this.field3618 && !var1.field3618) {
return -1;
} else if (!this.field3630 && var1.field3630) {
} else if (!this.field3618 && var1.field3618) {
return 1;
} else {
return super.world != 0 ? super.int2 - var1.int2 : var1.int2 - super.int2;
}
}
@ObfuscatedName("v")
@ObfuscatedName("ay")
@ObfuscatedSignature(
signature = "(Ljr;B)I",
garbageValue = "41"
signature = "(Ljy;S)I",
garbageValue = "9221"
)
@Export("compareTo_user")
public int compareTo_user(User var1) {
@@ -58,52 +59,88 @@ public class Friend extends Buddy {
@ObfuscatedName("e")
@ObfuscatedSignature(
signature = "(II)I",
garbageValue = "-825705813"
signature = "(ILcu;ZI)I",
garbageValue = "316315133"
)
public static int method5293(int var0) {
if (var0 > 0) {
return 1;
static int method5286(int var0, Script var1, boolean var2) {
Widget var3;
if (var0 >= 2000) {
var0 -= 1000;
var3 = Tile.getWidget(Interpreter.Interpreter_intStack[--class188.Interpreter_intStackSize]);
} else {
return var0 < 0 ? -1 : 0;
var3 = var2 ? UserComparator7.field1946 : class197.field2398;
}
LoginPacket.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[--class188.Interpreter_intStackSize];
return 1;
} else if (var0 == ScriptOpcodes.CC_SETPLAYERHEAD_SELF) {
var3.modelType = 3;
var3.modelId = Message.localPlayer.appearance.getChatHeadId();
return 1;
} else {
return 2;
}
} else {
class188.Interpreter_intStackSize -= 2;
int var4 = Interpreter.Interpreter_intStack[class188.Interpreter_intStackSize];
int var5 = Interpreter.Interpreter_intStack[class188.Interpreter_intStackSize + 1];
var3.itemId = var4;
var3.itemQuantity = var5;
ItemDefinition var6 = PacketBufferNode.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;
} else {
var3.itemQuantityMode = 2;
}
if (var3.field2645 > 0) {
var3.modelZoom = var3.modelZoom * 32 / var3.field2645;
} else if (var3.rawWidth > 0) {
var3.modelZoom = var3.modelZoom * 32 / var3.rawWidth;
}
return 1;
}
}
@ObfuscatedName("jy")
@ObfuscatedName("x")
@ObfuscatedSignature(
signature = "(ZB)V",
garbageValue = "0"
signature = "(I)Lbe;",
garbageValue = "-422000887"
)
@Export("setTapToDrop")
static void setTapToDrop(boolean var0) {
Client.tapToDrop = var0;
@Export("getNextWorldListWorld")
static World getNextWorldListWorld() {
return World.World_listCount < World.World_count ? class162.World_worlds[++World.World_listCount - 1] : null;
}
@ObfuscatedName("jf")
@ObfuscatedName("kq")
@ObfuscatedSignature(
signature = "(IIII)Lbf;",
garbageValue = "-252811827"
signature = "(I)V",
garbageValue = "-2130982399"
)
static final InterfaceParent method5303(int var0, int var1, int var2) {
InterfaceParent var3 = new InterfaceParent();
var3.group = var1;
var3.type = var2;
Client.interfaceParents.put(var3, (long)var0);
WorldMapArea.Widget_resetModelFrames(var1);
Widget var4 = Language.getWidget(var0);
ScriptEvent.invalidateWidget(var4);
if (Client.meslayerContinueWidget != null) {
ScriptEvent.invalidateWidget(Client.meslayerContinueWidget);
Client.meslayerContinueWidget = null;
@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();
}
Varps.method4043();
MilliClock.revalidateWidgetScroll(FloorDecoration.Widget_interfaceComponents[var0 >> 16], var4, false);
UserComparator9.runWidgetOnLoadListener(var1);
if (Client.rootInterface != -1) {
GrandExchangeEvents.runIntfCloseListeners(Client.rootInterface, 1);
class216.method4013();
if (Calendar.clanChat != null) {
Calendar.clanChat.clearFriends();
}
return var3;
}
}