mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-19 04:50:25 -07:00
Consolidated a bunch of static classes
This commit is contained in:
parent
cf6a86e926
commit
774d382816
260 changed files with 4163 additions and 4536 deletions
|
|
@ -39,12 +39,56 @@ public class MiniMenu {
|
|||
public static final JagString aClass100_965 = JagString.parse("<col=ffff00>");
|
||||
@OriginalMember(owner = "client!vg", name = "f", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_1081 = JagString.parse("<col=80ff00>");
|
||||
@OriginalMember(owner = "client!r", name = "d", descriptor = "Z")
|
||||
public static final boolean aBoolean237 = false;
|
||||
@OriginalMember(owner = "client!se", name = "m", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_961 = JagString.parse(" )2>");
|
||||
@OriginalMember(owner = "client!a", name = "j", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_2 = JagString.parse("<col=ffffff> )4 ");
|
||||
@OriginalMember(owner = "client!cb", name = "fb", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_168 = JagString.parse(": ");
|
||||
@OriginalMember(owner = "client!qf", name = "Q", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_407 = JagString.parse(" )2> <col=ffff00>");
|
||||
@OriginalMember(owner = "client!qf", name = "R", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_408 = JagString.parse(" )2> ");
|
||||
@OriginalMember(owner = "client!aj", name = "R", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_32 = JagString.parse("<col=ff9040>");
|
||||
@OriginalMember(owner = "client!fl", name = "V", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_448 = JagString.parse("(Y");
|
||||
@OriginalMember(owner = "client!ck", name = "D", descriptor = "Lclient!na;")
|
||||
public static JagString aClass100_203 = null;
|
||||
@OriginalMember(owner = "client!hn", name = "W", descriptor = "Lclient!na;")
|
||||
public static JagString aClass100_545 = null;
|
||||
@OriginalMember(owner = "client!sk", name = "kb", descriptor = "I")
|
||||
public static int size = 0;
|
||||
@OriginalMember(owner = "client!v", name = "b", descriptor = "Lclient!be;")
|
||||
public static Component aClass13_7;
|
||||
@OriginalMember(owner = "client!gd", name = "i", descriptor = "Lclient!na;")
|
||||
public static JagString aClass100_466 = null;
|
||||
@OriginalMember(owner = "client!vd", name = "C", descriptor = "I")
|
||||
public static int anInt5014 = 0;
|
||||
@OriginalMember(owner = "client!wf", name = "f", descriptor = "I")
|
||||
public static int anInt4999;
|
||||
@OriginalMember(owner = "client!wf", name = "d", descriptor = "I")
|
||||
public static int anInt4997;
|
||||
@OriginalMember(owner = "client!be", name = "Ec", descriptor = "I")
|
||||
public static int anInt506 = -1;
|
||||
@OriginalMember(owner = "client!fl", name = "P", descriptor = "I")
|
||||
public static int anInt2043 = 0;
|
||||
@OriginalMember(owner = "client!hj", name = "e", descriptor = "I")
|
||||
public static int anInt2512;
|
||||
@OriginalMember(owner = "client!mh", name = "Y", descriptor = "Z")
|
||||
public static boolean aBoolean187 = false;
|
||||
@OriginalMember(owner = "client!mj", name = "i", descriptor = "I")
|
||||
public static int anInt3902 = 0;
|
||||
@OriginalMember(owner = "client!ha", name = "q", descriptor = "I")
|
||||
public static int anInt2388 = 0;
|
||||
@OriginalMember(owner = "client!kd", name = "zb", descriptor = "I")
|
||||
public static int anInt3259 = 0;
|
||||
@OriginalMember(owner = "client!ef", name = "g", descriptor = "I")
|
||||
public static int anInt1742 = -1;
|
||||
@OriginalMember(owner = "client!jb", name = "p", descriptor = "I")
|
||||
public static int anInt2954 = -1;
|
||||
|
||||
@OriginalMember(owner = "client!va", name = "a", descriptor = "(IZILclient!be;)V")
|
||||
public static void addComponentEntries(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) Component component) {
|
||||
|
|
@ -88,19 +132,19 @@ public class MiniMenu {
|
|||
if (component.objTypes[local171] > 0) {
|
||||
@Pc(267) ServerActiveProperties local267 = InterfaceList.getServerActiveProperties(component);
|
||||
@Pc(276) ObjType local276 = ObjTypeList.get(component.objTypes[local171] - 1);
|
||||
if (Static260.anInt5014 == 1 && local267.isObjOpsEnabled()) {
|
||||
if (anInt5014 == 1 && local267.isObjOpsEnabled()) {
|
||||
if (Static224.anInt5062 != component.id || Static185.anInt4370 != local171) {
|
||||
add(-1, (long) local276.anInt2354, JagString.concatenate(new JagString[] { aClass100_203, aClass100_947, local276.name}), local171, (short) 40, LocalizedText.USE, component.id);
|
||||
}
|
||||
} else if (Static241.aBoolean302 && local267.isObjOpsEnabled()) {
|
||||
@Pc(596) ParamType local596 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039);
|
||||
if ((Static274.anInt4999 & 0x10) != 0 && (local596 == null || local276.getParam(local596.defaultInt, Static121.anInt3039) != local596.defaultInt)) {
|
||||
add(Static246.anInt5393, (long) local276.anInt2354, JagString.concatenate(new JagString[] { Static78.aClass100_466, aClass100_947, local276.name}), local171, (short) 3, aClass100_545, component.id);
|
||||
if ((anInt4999 & 0x10) != 0 && (local596 == null || local276.getParam(local596.defaultInt, Static121.anInt3039) != local596.defaultInt)) {
|
||||
add(Static246.anInt5393, (long) local276.anInt2354, JagString.concatenate(new JagString[] { aClass100_466, aClass100_947, local276.name}), local171, (short) 3, aClass100_545, component.id);
|
||||
}
|
||||
} else {
|
||||
@Pc(296) JagString[] local296 = local276.inventoryOps;
|
||||
if (Static208.aBoolean237) {
|
||||
local296 = Static279.method4664(local296);
|
||||
if (aBoolean237) {
|
||||
local296 = annotateOps(local296);
|
||||
}
|
||||
@Pc(309) int local309;
|
||||
@Pc(334) byte local334;
|
||||
|
|
@ -112,12 +156,12 @@ public class MiniMenu {
|
|||
} else {
|
||||
local334 = 58;
|
||||
}
|
||||
add(-1, (long) local276.anInt2354, JagString.concatenate(new JagString[] { Static8.aClass100_32, local276.name}), local171, local334, local296[local309], component.id);
|
||||
add(-1, (long) local276.anInt2354, JagString.concatenate(new JagString[] { aClass100_32, local276.name}), local171, local334, local296[local309], component.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (local267.method507()) {
|
||||
add(Static169.anInt4075, (long) local276.anInt2354, JagString.concatenate(new JagString[] { Static8.aClass100_32, local276.name}), local171, (short) 22, LocalizedText.USE, component.id);
|
||||
add(Static169.anInt4075, (long) local276.anInt2354, JagString.concatenate(new JagString[] { aClass100_32, local276.name}), local171, (short) 22, LocalizedText.USE, component.id);
|
||||
}
|
||||
if (local267.isObjOpsEnabled() && local296 != null) {
|
||||
for (local309 = 2; local309 >= 0; local309--) {
|
||||
|
|
@ -132,13 +176,13 @@ public class MiniMenu {
|
|||
if (local309 == 2) {
|
||||
local334 = 43;
|
||||
}
|
||||
add(-1, (long) local276.anInt2354, JagString.concatenate(new JagString[] { Static8.aClass100_32, local276.name}), local171, local334, local296[local309], component.id);
|
||||
add(-1, (long) local276.anInt2354, JagString.concatenate(new JagString[] { aClass100_32, local276.name}), local171, local334, local296[local309], component.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
local296 = component.aClass100Array19;
|
||||
if (Static208.aBoolean237) {
|
||||
local296 = Static279.method4664(local296);
|
||||
if (aBoolean237) {
|
||||
local296 = annotateOps(local296);
|
||||
}
|
||||
if (local296 != null) {
|
||||
for (local309 = 4; local309 >= 0; local309--) {
|
||||
|
|
@ -159,11 +203,11 @@ public class MiniMenu {
|
|||
if (local309 == 4) {
|
||||
local334 = 13;
|
||||
}
|
||||
add(-1, (long) local276.anInt2354, JagString.concatenate(new JagString[] { Static8.aClass100_32, local276.name}), local171, local334, local296[local309], component.id);
|
||||
add(-1, (long) local276.anInt2354, JagString.concatenate(new JagString[] { aClass100_32, local276.name}), local171, local334, local296[local309], component.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
add(Static225.anInt5073, (long) local276.anInt2354, JagString.concatenate(new JagString[] { Static8.aClass100_32, local276.name}), local171, (short) 1006, LocalizedText.EXAMINE, component.id);
|
||||
add(Static225.anInt5073, (long) local276.anInt2354, JagString.concatenate(new JagString[] { aClass100_32, local276.name}), local171, (short) 1006, LocalizedText.EXAMINE, component.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -178,7 +222,7 @@ public class MiniMenu {
|
|||
for (local171 = 9; local171 >= 5; local171--) {
|
||||
@Pc(765) JagString local765 = InterfaceList.getOp(component, local171);
|
||||
if (local765 != null) {
|
||||
add(Static8.getOpCursor(local171, component), (long) (local171 + 1), component.opBase, component.createdComponentId, (short) 1003, local765, component.id);
|
||||
add(getOpCursor(local171, component), (long) (local171 + 1), component.opBase, component.createdComponentId, (short) 1003, local765, component.id);
|
||||
}
|
||||
}
|
||||
local47 = Static97.getTargetVerb(component);
|
||||
|
|
@ -188,14 +232,14 @@ public class MiniMenu {
|
|||
for (local173 = 4; local173 >= 0; local173--) {
|
||||
@Pc(828) JagString local828 = InterfaceList.getOp(component, local173);
|
||||
if (local828 != null) {
|
||||
add(Static8.getOpCursor(local173, component), (long) (local173 + 1), component.opBase, component.createdComponentId, (short) 9, local828, component.id);
|
||||
add(getOpCursor(local173, component), (long) (local173 + 1), component.opBase, component.createdComponentId, (short) 9, local828, component.id);
|
||||
}
|
||||
}
|
||||
if (InterfaceList.getServerActiveProperties(component).method506()) {
|
||||
add(-1, 0L, JagString.EMPTY, component.createdComponentId, (short) 41, LocalizedText.CONTINUE, component.id);
|
||||
}
|
||||
} else if (InterfaceList.getServerActiveProperties(component).method508() && (Static274.anInt4999 & 0x20) != 0) {
|
||||
add(Static246.anInt5393, 0L, JagString.concatenate(new JagString[] { Static78.aClass100_466, Static201.aClass100_408, component.opBase}), component.createdComponentId, (short) 12, aClass100_545, component.id);
|
||||
} else if (InterfaceList.getServerActiveProperties(component).method508() && (anInt4999 & 0x20) != 0) {
|
||||
add(Static246.anInt5393, 0L, JagString.concatenate(new JagString[] { aClass100_466, aClass100_408, component.opBase}), component.createdComponentId, (short) 12, aClass100_545, component.id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -307,10 +351,10 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p4le2(local19);
|
||||
Protocol.outboundBuffer.p2le(local15);
|
||||
Protocol.outboundBuffer.p4le2(Static224.anInt5062);
|
||||
Protocol.outboundBuffer.p2leadd(Static274.anInt4997);
|
||||
Protocol.outboundBuffer.p2leadd(anInt4997);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
@Pc(192) Npc local192;
|
||||
|
|
@ -355,8 +399,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2add(local36);
|
||||
Protocol.outboundBuffer.p2add(local15);
|
||||
Protocol.outboundBuffer.p4me(local19);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 42) {
|
||||
|
|
@ -378,8 +422,8 @@ public class MiniMenu {
|
|||
Cross.milliseconds = 0;
|
||||
Cross.y = Mouse.clickY;
|
||||
Protocol.outboundBuffer.p1isaac(239);
|
||||
Protocol.outboundBuffer.p4le2(Static98.anInt2512);
|
||||
Protocol.outboundBuffer.p2add(Static15.anInt506);
|
||||
Protocol.outboundBuffer.p4le2(anInt2512);
|
||||
Protocol.outboundBuffer.p2add(anInt506);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
}
|
||||
}
|
||||
|
|
@ -424,15 +468,15 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p1isaac(92);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
} else {
|
||||
Chat.add(JagString.EMPTY, 0, JagString.concatenate(new JagString[] { Static123.parseInt(local693.objCounts[local15]), Static249.aClass100_1039, ObjTypeList.get(local36).name}));
|
||||
Chat.add(JagString.EMPTY, 0, JagString.concatenate(new JagString[] { JagString.parseInt(local693.objCounts[local15]), Static249.aClass100_1039, ObjTypeList.get(local36).name}));
|
||||
}
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 60) {
|
||||
if (local36 == 0) {
|
||||
Static113.method3556(Player.level, local15, local19);
|
||||
method3556(Player.level, local15, local19);
|
||||
} else if (local36 == 1) {
|
||||
if (LoginManager.staffModLevel > 0 && Keyboard.pressedKeys[Keyboard.KEY_CTRL] && Keyboard.pressedKeys[Keyboard.KEY_SHIFT]) {
|
||||
Cheat.teleport(Static225.originX + local15, Static142.originZ + local19, Player.level);
|
||||
|
|
@ -442,7 +486,7 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2((int)Camera.yawTarget);
|
||||
Protocol.outboundBuffer.p1(57);
|
||||
Protocol.outboundBuffer.p1(Static59.anInt1814);
|
||||
Protocol.outboundBuffer.p1(Static273.anInt4130);
|
||||
Protocol.outboundBuffer.p1(MiniMap.anInt4130);
|
||||
Protocol.outboundBuffer.p1(89);
|
||||
Protocol.outboundBuffer.p2(PlayerList.self.xFine);
|
||||
Protocol.outboundBuffer.p2(PlayerList.self.zFine);
|
||||
|
|
@ -473,19 +517,19 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2leadd(local15);
|
||||
Protocol.outboundBuffer.p2add(local36);
|
||||
Protocol.outboundBuffer.p4le2(local19);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 3) {
|
||||
Protocol.outboundBuffer.p1isaac(253);
|
||||
Protocol.outboundBuffer.p4le2(Static98.anInt2512);
|
||||
Protocol.outboundBuffer.p4le2(anInt2512);
|
||||
Protocol.outboundBuffer.p2leadd(local15);
|
||||
Protocol.outboundBuffer.p4le2(local19);
|
||||
Protocol.outboundBuffer.p2add(local36);
|
||||
Protocol.outboundBuffer.p2le(Static15.anInt506);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Protocol.outboundBuffer.p2le(anInt506);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 10) {
|
||||
|
|
@ -517,14 +561,14 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2add(local36);
|
||||
Protocol.outboundBuffer.p2le(local15);
|
||||
Protocol.outboundBuffer.p4le2(local19);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 14 && PathFinder.findPathToLoc(local31, local19, local15)) {
|
||||
Protocol.outboundBuffer.p1isaac(134);
|
||||
Protocol.outboundBuffer.p2add(Static225.originX + local15);
|
||||
Protocol.outboundBuffer.p2(Static274.anInt4997);
|
||||
Protocol.outboundBuffer.p2(anInt4997);
|
||||
Protocol.outboundBuffer.p2le(local19 + Static142.originZ);
|
||||
Protocol.outboundBuffer.p2(Static185.anInt4370);
|
||||
Protocol.outboundBuffer.p4me(Static224.anInt5062);
|
||||
|
|
@ -550,8 +594,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2le(local36);
|
||||
Protocol.outboundBuffer.p2add(local15);
|
||||
Protocol.outboundBuffer.p4rme(local19);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 21) {
|
||||
|
|
@ -590,15 +634,15 @@ public class MiniMenu {
|
|||
Static53.method1294();
|
||||
@Pc(1493) ServerActiveProperties local1493 = InterfaceList.getServerActiveProperties(local693);
|
||||
Static247.method4246(local19, local15, local1493.getTargetMask(), local1493.anInt540, local693.anInt499, local693.anInt484);
|
||||
Static260.anInt5014 = 0;
|
||||
anInt5014 = 0;
|
||||
aClass100_545 = Static97.getTargetVerb(local693);
|
||||
if (aClass100_545 == null) {
|
||||
aClass100_545 = Static250.aClass100_1042;
|
||||
}
|
||||
if (local693.usingScripts) {
|
||||
Static78.aClass100_466 = JagString.concatenate(new JagString[] { local693.opBase, Static204.aClass100_896 });
|
||||
aClass100_466 = JagString.concatenate(new JagString[] { local693.opBase, Static204.aClass100_896 });
|
||||
} else {
|
||||
Static78.aClass100_466 = JagString.concatenate(new JagString[] {COLOR_GREEN, local693.aClass100_85, Static204.aClass100_896 });
|
||||
aClass100_466 = JagString.concatenate(new JagString[] {COLOR_GREEN, local693.aClass100_85, Static204.aClass100_896 });
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
@ -620,8 +664,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p4le2(local19);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
Protocol.outboundBuffer.p2leadd(local15);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 15) {
|
||||
|
|
@ -633,8 +677,8 @@ public class MiniMenu {
|
|||
Cross.x = Mouse.clickX;
|
||||
Cross.y = Mouse.clickY;
|
||||
Protocol.outboundBuffer.p1isaac(195);
|
||||
Protocol.outboundBuffer.p2add(Static15.anInt506);
|
||||
Protocol.outboundBuffer.p4le2(Static98.anInt2512);
|
||||
Protocol.outboundBuffer.p2add(anInt506);
|
||||
Protocol.outboundBuffer.p4le2(anInt2512);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
}
|
||||
}
|
||||
|
|
@ -661,8 +705,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2add(local15);
|
||||
Protocol.outboundBuffer.p2(local36);
|
||||
Protocol.outboundBuffer.p4rme(local19);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 2) {
|
||||
|
|
@ -702,7 +746,7 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p4me(Static224.anInt5062);
|
||||
Protocol.outboundBuffer.p2le(Static185.anInt4370);
|
||||
Protocol.outboundBuffer.p2le(local36);
|
||||
Protocol.outboundBuffer.p2leadd(Static274.anInt4997);
|
||||
Protocol.outboundBuffer.p2leadd(anInt4997);
|
||||
}
|
||||
}
|
||||
if (local23 == 59) {
|
||||
|
|
@ -727,7 +771,7 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p1isaac(101);
|
||||
Protocol.outboundBuffer.p2leadd(local15 + Static225.originX);
|
||||
Protocol.outboundBuffer.p2le(Static185.anInt4370);
|
||||
Protocol.outboundBuffer.p2le(Static274.anInt4997);
|
||||
Protocol.outboundBuffer.p2le(anInt4997);
|
||||
Protocol.outboundBuffer.p2le(local36);
|
||||
Protocol.outboundBuffer.p2leadd(Static142.originZ + local19);
|
||||
Protocol.outboundBuffer.p4me(Static224.anInt5062);
|
||||
|
|
@ -743,12 +787,12 @@ public class MiniMenu {
|
|||
if (local23 == 11) {
|
||||
if (local36 == 0) {
|
||||
Static125.anInt3096 = 1;
|
||||
Static113.method3556(Player.level, local15, local19);
|
||||
method3556(Player.level, local15, local19);
|
||||
} else if (local36 == 1) {
|
||||
Protocol.outboundBuffer.p1isaac(131);
|
||||
Protocol.outboundBuffer.p4me(Static98.anInt2512);
|
||||
Protocol.outboundBuffer.p4me(anInt2512);
|
||||
Protocol.outboundBuffer.p2add(Static225.originX + local15);
|
||||
Protocol.outboundBuffer.p2leadd(Static15.anInt506);
|
||||
Protocol.outboundBuffer.p2leadd(anInt506);
|
||||
Protocol.outboundBuffer.p2add(local19 + Static142.originZ);
|
||||
}
|
||||
}
|
||||
|
|
@ -773,7 +817,7 @@ public class MiniMenu {
|
|||
Cross.x = Mouse.clickX;
|
||||
Protocol.outboundBuffer.p1isaac(248);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
Protocol.outboundBuffer.p2(Static274.anInt4997);
|
||||
Protocol.outboundBuffer.p2(anInt4997);
|
||||
Protocol.outboundBuffer.p2(Static185.anInt4370);
|
||||
Protocol.outboundBuffer.p4me(Static224.anInt5062);
|
||||
}
|
||||
|
|
@ -783,8 +827,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p4rme(local19);
|
||||
Protocol.outboundBuffer.p2(local15);
|
||||
Protocol.outboundBuffer.p2add(local36);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 24) {
|
||||
|
|
@ -809,8 +853,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p1isaac(233);
|
||||
Protocol.outboundBuffer.p2leadd(local19 + Static142.originZ);
|
||||
Protocol.outboundBuffer.p2add(Static225.originX + local15);
|
||||
Protocol.outboundBuffer.p2leadd(Static15.anInt506);
|
||||
Protocol.outboundBuffer.p4rme(Static98.anInt2512);
|
||||
Protocol.outboundBuffer.p2leadd(anInt506);
|
||||
Protocol.outboundBuffer.p4rme(anInt2512);
|
||||
Protocol.outboundBuffer.p2add((int) (local31 >>> 32) & Integer.MAX_VALUE);
|
||||
}
|
||||
if (local23 == 13) {
|
||||
|
|
@ -818,8 +862,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p4(local19);
|
||||
Protocol.outboundBuffer.p2add(local15);
|
||||
Protocol.outboundBuffer.p2le(local36);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 57) {
|
||||
|
|
@ -839,10 +883,10 @@ public class MiniMenu {
|
|||
local693 = InterfaceList.getComponent(local19);
|
||||
Static224.anInt5062 = local19;
|
||||
Static185.anInt4370 = local15;
|
||||
Static260.anInt5014 = 1;
|
||||
Static274.anInt4997 = local36;
|
||||
anInt5014 = 1;
|
||||
anInt4997 = local36;
|
||||
InterfaceList.redraw(local693);
|
||||
aClass100_203 = JagString.concatenate(new JagString[] { Static8.aClass100_32, ObjTypeList.get(local36).name, Static204.aClass100_896 });
|
||||
aClass100_203 = JagString.concatenate(new JagString[] { aClass100_32, ObjTypeList.get(local36).name, Static204.aClass100_896 });
|
||||
if (aClass100_203 == null) {
|
||||
aClass100_203 = Static92.NULL;
|
||||
}
|
||||
|
|
@ -860,8 +904,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2le(local15);
|
||||
Protocol.outboundBuffer.p4rme(local19);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 30) {
|
||||
|
|
@ -881,8 +925,8 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p4le2(local19);
|
||||
Protocol.outboundBuffer.p2le(local15);
|
||||
Protocol.outboundBuffer.p2le(local36);
|
||||
Static72.anInt2043 = 0;
|
||||
Static257.aClass13_7 = InterfaceList.getComponent(local19);
|
||||
anInt2043 = 0;
|
||||
aClass13_7 = InterfaceList.getComponent(local19);
|
||||
Static250.anInt5444 = local15;
|
||||
}
|
||||
if (local23 == 39) {
|
||||
|
|
@ -895,23 +939,23 @@ public class MiniMenu {
|
|||
Cross.type = 2;
|
||||
Cross.milliseconds = 0;
|
||||
Protocol.outboundBuffer.p1isaac(73);
|
||||
Protocol.outboundBuffer.p4rme(Static98.anInt2512);
|
||||
Protocol.outboundBuffer.p4rme(anInt2512);
|
||||
Protocol.outboundBuffer.p2(Static142.originZ + local19);
|
||||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
Protocol.outboundBuffer.p2leadd(local15 + Static225.originX);
|
||||
Protocol.outboundBuffer.p2le(Static15.anInt506);
|
||||
Protocol.outboundBuffer.p2le(anInt506);
|
||||
}
|
||||
if (local23 == 12) {
|
||||
Protocol.outboundBuffer.p1isaac(82);
|
||||
Protocol.outboundBuffer.p2(Static15.anInt506);
|
||||
Protocol.outboundBuffer.p2(anInt506);
|
||||
Protocol.outboundBuffer.p4rme(local19);
|
||||
Protocol.outboundBuffer.p4(Static98.anInt2512);
|
||||
Protocol.outboundBuffer.p4(anInt2512);
|
||||
Protocol.outboundBuffer.p2leadd(local15);
|
||||
}
|
||||
if (local23 == 36) {
|
||||
if (local36 == 0) {
|
||||
Static187.anInt4422 = 1;
|
||||
Static113.method3556(Player.level, local15, local19);
|
||||
method3556(Player.level, local15, local19);
|
||||
} else if (LoginManager.staffModLevel > 0 && Keyboard.pressedKeys[Keyboard.KEY_CTRL] && Keyboard.pressedKeys[Keyboard.KEY_SHIFT]) {
|
||||
Cheat.teleport(local15 + Static225.originX, Static142.originZ - -local19, Player.level);
|
||||
} else {
|
||||
|
|
@ -962,15 +1006,15 @@ public class MiniMenu {
|
|||
Protocol.outboundBuffer.p2leadd(local36);
|
||||
}
|
||||
}
|
||||
if (Static260.anInt5014 != 0) {
|
||||
Static260.anInt5014 = 0;
|
||||
if (anInt5014 != 0) {
|
||||
anInt5014 = 0;
|
||||
InterfaceList.redraw(InterfaceList.getComponent(Static224.anInt5062));
|
||||
}
|
||||
if (Static241.aBoolean302) {
|
||||
Static53.method1294();
|
||||
}
|
||||
if (Static257.aClass13_7 != null && Static72.anInt2043 == 0) {
|
||||
InterfaceList.redraw(Static257.aClass13_7);
|
||||
if (aClass13_7 != null && anInt2043 == 0) {
|
||||
InterfaceList.redraw(aClass13_7);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -995,4 +1039,411 @@ public class MiniMenu {
|
|||
return aClass100_1081;
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ob", name = "a", descriptor = "(IIIIIIB)V")
|
||||
public static void addEntries(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5) {
|
||||
@Pc(15) int local15;
|
||||
@Pc(47) int x;
|
||||
if (anInt5014 == 0) {
|
||||
@Pc(13) int local13 = Static148.screenUpperY;
|
||||
local15 = Static1.screenLowerY;
|
||||
@Pc(17) int local17 = Static247.screenUpperX;
|
||||
@Pc(19) int local19 = Static240.screenLowerX;
|
||||
@Pc(33) int local33 = (arg5 - arg3) * (local17 - local19) / arg1 + local19;
|
||||
x = local15 + (local13 - local15) * (arg4 - arg0) / arg2;
|
||||
if (Static241.aBoolean302 && (anInt4999 & 0x40) != 0) {
|
||||
@Pc(61) Component local61 = Static201.method1418(anInt2512, anInt506);
|
||||
if (local61 == null) {
|
||||
Static53.method1294();
|
||||
} else {
|
||||
add(Static246.anInt5393, 0L, aClass100_961, local33, (short) 11, aClass100_545, x);
|
||||
}
|
||||
} else {
|
||||
if (client.game == 1) {
|
||||
add(-1, 0L, JagString.EMPTY, local33, (short) 36, LocalizedText.FACEHERE, x);
|
||||
}
|
||||
add(-1, 0L, JagString.EMPTY, local33, (short) 60, Static195.walkText, x);
|
||||
}
|
||||
}
|
||||
@Pc(112) long local112 = -1L;
|
||||
for (local15 = 0; local15 < Static2.anInt7; local15++) {
|
||||
@Pc(121) long local121 = Static259.aLongArray11[local15];
|
||||
x = (int) local121 & 0x7F;
|
||||
@Pc(133) int local133 = (int) local121 >> 29 & 0x3;
|
||||
@Pc(140) int local140 = (int) (local121 >>> 32) & Integer.MAX_VALUE;
|
||||
@Pc(147) int z = (int) local121 >> 7 & 0x7F;
|
||||
if (local121 != local112) {
|
||||
local112 = local121;
|
||||
@Pc(240) int local240;
|
||||
if (local133 == 2 && SceneGraph.isLocValid(Player.level, x, z, local121)) {
|
||||
@Pc(172) LocType local172 = LocTypeList.get(local140);
|
||||
if (local172.multiLocs != null) {
|
||||
local172 = local172.getMultiLoc();
|
||||
}
|
||||
if (local172 == null) {
|
||||
continue;
|
||||
}
|
||||
if (anInt5014 == 1) {
|
||||
add(Static169.anInt4075, local121, JagString.concatenate(new JagString[] {aClass100_203, Static27.aClass100_164, local172.name}), x, (short) 14, LocalizedText.USE, z);
|
||||
} else if (Static241.aBoolean302) {
|
||||
@Pc(363) ParamType local363 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039);
|
||||
if ((anInt4999 & 0x4) != 0 && (local363 == null || local172.getParam(local363.defaultInt, Static121.anInt3039) != local363.defaultInt)) {
|
||||
add(Static246.anInt5393, local121, JagString.concatenate(new JagString[] { aClass100_466, Static27.aClass100_164, local172.name}), x, (short) 38, aClass100_545, z);
|
||||
}
|
||||
} else {
|
||||
@Pc(228) JagString[] local228 = local172.ops;
|
||||
if (aBoolean237) {
|
||||
local228 = annotateOps(local228);
|
||||
}
|
||||
if (local228 != null) {
|
||||
for (local240 = 4; local240 >= 0; local240--) {
|
||||
if (local228[local240] != null) {
|
||||
@Pc(254) short local254 = 0;
|
||||
if (local240 == 0) {
|
||||
local254 = 42;
|
||||
}
|
||||
if (local240 == 1) {
|
||||
local254 = 50;
|
||||
}
|
||||
@Pc(268) int local268 = -1;
|
||||
if (local240 == 2) {
|
||||
local254 = 49;
|
||||
}
|
||||
if (local172.cursor1Op == local240) {
|
||||
local268 = local172.cursor1;
|
||||
}
|
||||
if (local240 == 3) {
|
||||
local254 = 46;
|
||||
}
|
||||
if (local240 == local172.cursor2Op) {
|
||||
local268 = local172.cursor2;
|
||||
}
|
||||
if (local240 == 4) {
|
||||
local254 = 1001;
|
||||
}
|
||||
add(local268, local121, JagString.concatenate(new JagString[] { Static240.aClass100_1008, local172.name}), x, local254, local228[local240], z);
|
||||
}
|
||||
}
|
||||
}
|
||||
add(Static225.anInt5073, (long) local172.id, JagString.concatenate(new JagString[] { Static240.aClass100_1008, local172.name}), x, (short) 1004, LocalizedText.EXAMINE, z);
|
||||
}
|
||||
}
|
||||
@Pc(514) int local514;
|
||||
@Pc(526) int local526;
|
||||
@Pc(479) int local479;
|
||||
@Pc(493) int local493;
|
||||
@Pc(502) Npc local502;
|
||||
@Pc(597) Player local597;
|
||||
if (local133 == 1) {
|
||||
@Pc(421) Npc local421 = NpcList.npcs[local140];
|
||||
if ((local421.type.size & 0x1) == 0 && (local421.xFine & 0x7F) == 0 && (local421.zFine & 0x7F) == 0 || (local421.type.size & 0x1) == 1 && (local421.xFine & 0x7F) == 64 && (local421.zFine & 0x7F) == 64) {
|
||||
local479 = local421.xFine + 64 - local421.type.size * 64;
|
||||
local240 = local421.zFine - (local421.type.size - 1) * 64;
|
||||
for (local493 = 0; local493 < NpcList.size; local493++) {
|
||||
local502 = NpcList.npcs[NpcList.ids[local493]];
|
||||
local514 = local502.xFine + 64 - local502.type.size * 64;
|
||||
local526 = local502.zFine + 64 - local502.type.size * 64;
|
||||
if (local502 != null && local421 != local502 && local514 >= local479 && local421.type.size - (local514 - local479 >> 7) >= local502.type.size && local240 <= local526 && local502.type.size <= local421.type.size - (local526 - local240 >> 7)) {
|
||||
addNpcEntries(local502.type, x, NpcList.ids[local493], z);
|
||||
}
|
||||
}
|
||||
for (local493 = 0; local493 < PlayerList.size; local493++) {
|
||||
local597 = PlayerList.players[PlayerList.ids[local493]];
|
||||
local514 = local597.xFine + 64 - local597.getSize() * 64;
|
||||
local526 = local597.zFine + 64 - local597.getSize() * 64;
|
||||
if (local597 != null && local514 >= local479 && local597.getSize() <= local421.type.size - (local514 - local479 >> 7) && local526 >= local240 && local597.getSize() <= local421.type.size - (local526 - local240 >> 7)) {
|
||||
addPlayerEntries(PlayerList.ids[local493], z, local597, x);
|
||||
}
|
||||
}
|
||||
}
|
||||
addNpcEntries(local421.type, x, local140, z);
|
||||
}
|
||||
if (local133 == 0) {
|
||||
@Pc(688) Player player = PlayerList.players[local140];
|
||||
if ((player.xFine & 0x7F) == 64 && (player.zFine & 0x7F) == 64) {
|
||||
local479 = player.xFine - (player.getSize() - 1) * 64;
|
||||
local240 = player.zFine + 64 - player.getSize() * 64;
|
||||
for (local493 = 0; local493 < NpcList.size; local493++) {
|
||||
local502 = NpcList.npcs[NpcList.ids[local493]];
|
||||
local514 = local502.xFine + 64 - local502.type.size * 64;
|
||||
local526 = local502.zFine + 64 - local502.type.size * 64;
|
||||
if (local502 != null && local514 >= local479 && local502.type.size <= player.getSize() - (local514 - local479 >> 7) && local526 >= local240 && local502.type.size <= player.getSize() - (local526 - local240 >> 7)) {
|
||||
addNpcEntries(local502.type, x, NpcList.ids[local493], z);
|
||||
}
|
||||
}
|
||||
for (local493 = 0; local493 < PlayerList.size; local493++) {
|
||||
local597 = PlayerList.players[PlayerList.ids[local493]];
|
||||
local514 = local597.xFine - (local597.getSize() - 1) * 64;
|
||||
local526 = local597.zFine + 64 - local597.getSize() * 64;
|
||||
if (local597 != null && local597 != player && local479 <= local514 && local597.getSize() <= player.getSize() - (local514 - local479 >> 7) && local526 >= local240 && local597.getSize() <= player.getSize() - (local526 - local240 >> 7)) {
|
||||
addPlayerEntries(PlayerList.ids[local493], z, local597, x);
|
||||
}
|
||||
}
|
||||
}
|
||||
addPlayerEntries(local140, z, player, x);
|
||||
}
|
||||
if (local133 == 3) {
|
||||
@Pc(931) LinkedList objStacks = Static159.objStacks[Player.level][x][z];
|
||||
if (objStacks != null) {
|
||||
for (@Pc(940) ObjStackNode node = (ObjStackNode) objStacks.tail(); node != null; node = (ObjStackNode) objStacks.prev()) {
|
||||
local240 = node.value.type;
|
||||
@Pc(951) ObjType local951 = ObjTypeList.get(local240);
|
||||
if (anInt5014 == 1) {
|
||||
add(Static169.anInt4075, (long) local240, JagString.concatenate(new JagString[] { aClass100_203, aClass100_947, local951.name }), x, (short) 33, LocalizedText.USE, z);
|
||||
} else if (Static241.aBoolean302) {
|
||||
@Pc(1142) ParamType local1142 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039);
|
||||
if ((anInt4999 & 0x1) != 0 && (local1142 == null || local951.getParam(local1142.defaultInt, Static121.anInt3039) != local1142.defaultInt)) {
|
||||
add(Static246.anInt5393, (long) local240, JagString.concatenate(new JagString[] { aClass100_466, aClass100_947, local951.name }), x, (short) 39, aClass100_545, z);
|
||||
}
|
||||
} else {
|
||||
@Pc(997) JagString[] local997 = local951.ops;
|
||||
if (aBoolean237) {
|
||||
local997 = annotateOps(local997);
|
||||
}
|
||||
for (local514 = 4; local514 >= 0; local514--) {
|
||||
if (local997 != null && local997[local514] != null) {
|
||||
@Pc(1025) byte local1025 = 0;
|
||||
if (local514 == 0) {
|
||||
local1025 = 21;
|
||||
}
|
||||
if (local514 == 1) {
|
||||
local1025 = 34;
|
||||
}
|
||||
@Pc(1041) int local1041 = -1;
|
||||
if (local514 == local951.cursor1Op) {
|
||||
local1041 = local951.cursor1;
|
||||
}
|
||||
if (local514 == 2) {
|
||||
local1025 = 18;
|
||||
}
|
||||
if (local951.cursor2Op == local514) {
|
||||
local1041 = local951.cursor2;
|
||||
}
|
||||
if (local514 == 3) {
|
||||
local1025 = 20;
|
||||
}
|
||||
if (local514 == 4) {
|
||||
local1025 = 24;
|
||||
}
|
||||
add(local1041, (long) local240, JagString.concatenate(new JagString[] { aClass100_32, local951.name}), x, local1025, local997[local514], z);
|
||||
}
|
||||
}
|
||||
add(Static225.anInt5073, (long) local240, JagString.concatenate(new JagString[] { aClass100_32, local951.name}), x, (short) 1002, LocalizedText.EXAMINE, z);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!bc", name = "f", descriptor = "(B)Lclient!na;")
|
||||
public static JagString method471() {
|
||||
@Pc(32) JagString local32;
|
||||
if (anInt5014 == 1 && size < 2) {
|
||||
local32 = JagString.concatenate(new JagString[] { LocalizedText.USE, LocalizedText.MINISEPARATOR, aClass100_203, aClass100_961});
|
||||
} else if (Static241.aBoolean302 && size < 2) {
|
||||
local32 = JagString.concatenate(new JagString[] { aClass100_545, LocalizedText.MINISEPARATOR, aClass100_466, aClass100_961});
|
||||
} else if (Cheat.shiftClick && Keyboard.pressedKeys[Keyboard.KEY_SHIFT] && size > 2) {
|
||||
local32 = getOp(size - 2);
|
||||
} else {
|
||||
local32 = getOp(size - 1);
|
||||
}
|
||||
if (size > 2) {
|
||||
local32 = JagString.concatenate(new JagString[] { local32, aClass100_2, JagString.parseInt(size - 2), LocalizedText.MOREOPTIONS});
|
||||
}
|
||||
return local32;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!wk", name = "a", descriptor = "(I[Lclient!na;)[Lclient!na;")
|
||||
public static JagString[] annotateOps(@OriginalArg(1) JagString[] ops) {
|
||||
@Pc(8) JagString[] annotatedOps = new JagString[5];
|
||||
for (@Pc(15) int i = 0; i < 5; i++) {
|
||||
annotatedOps[i] = JagString.concatenate(new JagString[] { JagString.parseInt(i), aClass100_168 });
|
||||
if (ops != null && ops[i] != null) {
|
||||
annotatedOps[i] = JagString.concatenate(new JagString[] { annotatedOps[i], ops[i] });
|
||||
}
|
||||
}
|
||||
return annotatedOps;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!u", name = "a", descriptor = "(Lclient!me;IIII)V")
|
||||
public static void addNpcEntries(@OriginalArg(0) NpcType arg0, @OriginalArg(1) int arg1, @OriginalArg(3) int arg2, @OriginalArg(4) int arg3) {
|
||||
if (size >= 400) {
|
||||
return;
|
||||
}
|
||||
if (arg0.multiNpcs != null) {
|
||||
arg0 = arg0.getMultiNpc();
|
||||
}
|
||||
if (arg0 == null || !arg0.aBoolean183) {
|
||||
return;
|
||||
}
|
||||
@Pc(35) JagString local35 = arg0.name;
|
||||
if (arg0.combatLevel != 0) {
|
||||
@Pc(47) JagString local47 = client.game == 1 ? LocalizedText.RATING : LocalizedText.LEVEL;
|
||||
local35 = JagString.concatenate(new JagString[] { local35, getCombatLevelColor(arg0.combatLevel, PlayerList.self.combatLevel), Static70.aClass100_593, local47, JagString.parseInt(arg0.combatLevel), aClass100_448 });
|
||||
}
|
||||
if (anInt5014 == 1) {
|
||||
add(Static169.anInt4075, (long) arg2, JagString.concatenate(new JagString[] {aClass100_203, aClass100_407, local35 }), arg1, (short) 26, LocalizedText.USE, arg3);
|
||||
} else if (Static241.aBoolean302) {
|
||||
@Pc(378) ParamType local378 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039);
|
||||
if ((anInt4999 & 0x2) != 0 && (local378 == null || arg0.getParam(Static121.anInt3039, local378.defaultInt) != local378.defaultInt)) {
|
||||
add(Static246.anInt5393, (long) arg2, JagString.concatenate(new JagString[] {aClass100_466, aClass100_407, local35 }), arg1, (short) 45, aClass100_545, arg3);
|
||||
}
|
||||
} else {
|
||||
@Pc(129) JagString[] local129 = arg0.ops;
|
||||
if (aBoolean237) {
|
||||
local129 = annotateOps(local129);
|
||||
}
|
||||
@Pc(140) int local140;
|
||||
if (local129 != null) {
|
||||
for (local140 = 4; local140 >= 0; local140--) {
|
||||
if (local129[local140] != null && (client.game != 0 || !local129[local140].equalsIgnoreCase(LocalizedText.ATTACK))) {
|
||||
@Pc(161) byte local161 = 0;
|
||||
if (local140 == 0) {
|
||||
local161 = 17;
|
||||
}
|
||||
if (local140 == 1) {
|
||||
local161 = 16;
|
||||
}
|
||||
@Pc(176) int local176 = -1;
|
||||
if (local140 == 2) {
|
||||
local161 = 4;
|
||||
}
|
||||
if (local140 == 3) {
|
||||
local161 = 19;
|
||||
}
|
||||
if (arg0.cursor1Op == local140) {
|
||||
local176 = arg0.cursor1;
|
||||
}
|
||||
if (local140 == arg0.cursor2Op) {
|
||||
local176 = arg0.cursor2;
|
||||
}
|
||||
if (local140 == 4) {
|
||||
local161 = 2;
|
||||
}
|
||||
add(local176, (long) arg2, JagString.concatenate(new JagString[] {aClass100_965, local35 }), arg1, local161, local129[local140], arg3);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (client.game == 0 && local129 != null) {
|
||||
for (local140 = 4; local140 >= 0; local140--) {
|
||||
if (local129[local140] != null && local129[local140].equalsIgnoreCase(LocalizedText.ATTACK)) {
|
||||
@Pc(271) short local271 = 0;
|
||||
if (arg0.combatLevel > PlayerList.self.combatLevel) {
|
||||
local271 = 2000;
|
||||
}
|
||||
@Pc(281) short local281 = 0;
|
||||
if (local140 == 0) {
|
||||
local281 = 17;
|
||||
}
|
||||
if (local140 == 1) {
|
||||
local281 = 16;
|
||||
}
|
||||
if (local140 == 2) {
|
||||
local281 = 4;
|
||||
}
|
||||
if (local140 == 3) {
|
||||
local281 = 19;
|
||||
}
|
||||
if (local140 == 4) {
|
||||
local281 = 2;
|
||||
}
|
||||
if (local281 != 0) {
|
||||
local281 += local271;
|
||||
}
|
||||
add(arg0.anInt3752, (long) arg2, JagString.concatenate(new JagString[] {aClass100_965, local35 }), arg1, local281, local129[local140], arg3);
|
||||
}
|
||||
}
|
||||
}
|
||||
add(Static225.anInt5073, (long) arg2, JagString.concatenate(new JagString[] {aClass100_965, local35 }), arg1, (short) 1007, LocalizedText.EXAMINE, arg3);
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!rj", name = "a", descriptor = "(IIILclient!e;I)V")
|
||||
public static void addPlayerEntries(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) Player arg2, @OriginalArg(4) int arg3) {
|
||||
if (PlayerList.self == arg2 || size >= 400) {
|
||||
return;
|
||||
}
|
||||
@Pc(158) JagString local158;
|
||||
if (arg2.anInt1671 == 0) {
|
||||
@Pc(22) boolean local22 = true;
|
||||
if (PlayerList.self.anInt1667 != -1 && arg2.anInt1667 != -1) {
|
||||
@Pc(43) int local43 = arg2.combatLevel < PlayerList.self.combatLevel ? PlayerList.self.combatLevel : arg2.combatLevel;
|
||||
@Pc(58) int local58 = PlayerList.self.anInt1667 < arg2.anInt1667 ? PlayerList.self.anInt1667 : arg2.anInt1667;
|
||||
@Pc(69) int local69 = local43 * 10 / 100 + local58 + 5;
|
||||
@Pc(76) int local76 = PlayerList.self.combatLevel - arg2.combatLevel;
|
||||
if (local76 < 0) {
|
||||
local76 = -local76;
|
||||
}
|
||||
if (local69 < local76) {
|
||||
local22 = false;
|
||||
}
|
||||
}
|
||||
@Pc(95) JagString local95 = client.game == 1 ? LocalizedText.RATING : LocalizedText.LEVEL;
|
||||
if (arg2.combatLevel < arg2.anInt1656) {
|
||||
local158 = JagString.concatenate(new JagString[] { arg2.getName(), local22 ? getCombatLevelColor(arg2.combatLevel, PlayerList.self.combatLevel) : Static204.aClass100_896, Static70.aClass100_593, local95, JagString.parseInt(arg2.combatLevel), Static78.aClass100_465, JagString.parseInt(arg2.anInt1656 - arg2.combatLevel), aClass100_448 });
|
||||
} else {
|
||||
local158 = JagString.concatenate(new JagString[] { arg2.getName(), local22 ? getCombatLevelColor(arg2.combatLevel, PlayerList.self.combatLevel) : Static204.aClass100_896, Static70.aClass100_593, local95, JagString.parseInt(arg2.combatLevel), aClass100_448 });
|
||||
}
|
||||
} else {
|
||||
local158 = JagString.concatenate(new JagString[] { arg2.getName(), Static70.aClass100_593, LocalizedText.SKILL, JagString.parseInt(arg2.anInt1671), aClass100_448 });
|
||||
}
|
||||
@Pc(275) int local275;
|
||||
if (anInt5014 == 1) {
|
||||
add(Static169.anInt4075, (long) arg0, JagString.concatenate(new JagString[] {aClass100_203, Static105.aClass100_561, local158 }), arg3, (short) 1, LocalizedText.USE, arg1);
|
||||
} else if (!Static241.aBoolean302) {
|
||||
for (local275 = 7; local275 >= 0; local275--) {
|
||||
if (Player.options[local275] != null) {
|
||||
@Pc(291) short local291 = 0;
|
||||
if (client.game == 0 && Player.options[local275].equalsIgnoreCase(LocalizedText.ATTACK)) {
|
||||
if (arg2.combatLevel > PlayerList.self.combatLevel) {
|
||||
local291 = 2000;
|
||||
}
|
||||
if (PlayerList.self.anInt1650 != 0 && arg2.anInt1650 != 0) {
|
||||
if (PlayerList.self.anInt1650 == arg2.anInt1650) {
|
||||
local291 = 2000;
|
||||
} else {
|
||||
local291 = 0;
|
||||
}
|
||||
}
|
||||
} else if (Player.secondaryOptions[local275]) {
|
||||
local291 = 2000;
|
||||
}
|
||||
@Pc(353) short local353 = Static5.aShortArray2[local275];
|
||||
@Pc(358) short local358 = (short) (local353 + local291);
|
||||
add(Player.cursors[local275], (long) arg0, JagString.concatenate(new JagString[] { Static204.aClass100_896, local158 }), arg3, local358, Player.options[local275], arg1);
|
||||
}
|
||||
}
|
||||
} else if ((anInt4999 & 0x8) != 0) {
|
||||
add(Static246.anInt5393, (long) arg0, JagString.concatenate(new JagString[] {aClass100_466, Static105.aClass100_561, local158 }), arg3, (short) 15, aClass100_545, arg1);
|
||||
}
|
||||
for (local275 = 0; local275 < size; local275++) {
|
||||
if (actions[local275] == 60) {
|
||||
opBases[local275] = JagString.concatenate(new JagString[] { Static204.aClass100_896, local158 });
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!aj", name = "a", descriptor = "(BILclient!be;)I")
|
||||
public static int getOpCursor(@OriginalArg(1) int arg0, @OriginalArg(2) Component arg1) {
|
||||
if (!InterfaceList.getServerActiveProperties(arg1).method503(arg0) && arg1.anObjectArray29 == null) {
|
||||
return -1;
|
||||
} else if (arg1.anIntArray39 == null || arg0 >= arg1.anIntArray39.length) {
|
||||
return -1;
|
||||
} else {
|
||||
return arg1.anIntArray39[arg0];
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!il", name = "a", descriptor = "(III)V")
|
||||
public static void method3556(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2) {
|
||||
aBoolean187 = true;
|
||||
anInt3902 = arg0;
|
||||
anInt2388 = arg1;
|
||||
anInt3259 = arg2;
|
||||
anInt1742 = -1;
|
||||
anInt2954 = -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue