rev185
This commit is contained in:
@@ -2,12 +2,17 @@ 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("fy")
|
||||
@ObfuscatedName("fi")
|
||||
@Implements("UserComparator6")
|
||||
public class UserComparator6 extends AbstractUserComparator {
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lho;"
|
||||
)
|
||||
@Export("NetCache_currentResponse")
|
||||
public static NetFileRequest NetCache_currentResponse;
|
||||
@ObfuscatedName("a")
|
||||
@Export("reversed")
|
||||
final boolean reversed;
|
||||
|
||||
@@ -15,10 +20,10 @@ public class UserComparator6 extends AbstractUserComparator {
|
||||
this.reversed = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljl;Ljl;I)I",
|
||||
garbageValue = "-1158182029"
|
||||
signature = "(Ljx;Ljx;B)I",
|
||||
garbageValue = "67"
|
||||
)
|
||||
@Export("compareBuddy")
|
||||
int compareBuddy(Buddy var1, Buddy var2) {
|
||||
@@ -33,557 +38,13 @@ public class UserComparator6 extends AbstractUserComparator {
|
||||
return this.compareBuddy((Buddy)var1, (Buddy)var2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("bx")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)Ljava/lang/String;",
|
||||
garbageValue = "1774248129"
|
||||
signature = "(Ljava/lang/String;I)I",
|
||||
garbageValue = "-1069282044"
|
||||
)
|
||||
public static String method3408(byte[] var0, int var1, int var2) {
|
||||
char[] var3 = new char[var2];
|
||||
int var4 = 0;
|
||||
int var5 = var1;
|
||||
|
||||
int var8;
|
||||
for (int var6 = var2 + var1; var5 < var6; var3[var4++] = (char)var8) {
|
||||
int var7 = var0[var5++] & 255;
|
||||
if (var7 < 128) {
|
||||
if (var7 == 0) {
|
||||
var8 = 65533;
|
||||
} else {
|
||||
var8 = var7;
|
||||
}
|
||||
} else if (var7 < 192) {
|
||||
var8 = 65533;
|
||||
} else if (var7 < 224) {
|
||||
if (var5 < var6 && (var0[var5] & 192) == 128) {
|
||||
var8 = (var7 & 31) << 6 | var0[var5++] & 63;
|
||||
if (var8 < 128) {
|
||||
var8 = 65533;
|
||||
}
|
||||
} else {
|
||||
var8 = 65533;
|
||||
}
|
||||
} else if (var7 < 240) {
|
||||
if (var5 + 1 < var6 && (var0[var5] & 192) == 128 && (var0[var5 + 1] & 192) == 128) {
|
||||
var8 = (var7 & 15) << 12 | (var0[var5++] & 63) << 6 | var0[var5++] & 63;
|
||||
if (var8 < 2048) {
|
||||
var8 = 65533;
|
||||
}
|
||||
} else {
|
||||
var8 = 65533;
|
||||
}
|
||||
} else if (var7 < 248) {
|
||||
if (var5 + 2 < var6 && (var0[var5] & 192) == 128 && (var0[var5 + 1] & 192) == 128 && (var0[var5 + 2] & 192) == 128) {
|
||||
var8 = (var7 & 7) << 18 | (var0[var5++] & 63) << 12 | (var0[var5++] & 63) << 6 | var0[var5++] & 63;
|
||||
if (var8 >= 65536 && var8 <= 1114111) {
|
||||
var8 = 65533;
|
||||
} else {
|
||||
var8 = 65533;
|
||||
}
|
||||
} else {
|
||||
var8 = 65533;
|
||||
}
|
||||
} else {
|
||||
var8 = 65533;
|
||||
}
|
||||
}
|
||||
|
||||
return new String(var3, 0, var4);
|
||||
}
|
||||
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcu;ZI)I",
|
||||
garbageValue = "-1182264787"
|
||||
)
|
||||
static int method3407(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? GrandExchangeOfferAgeComparator.field76 : KitDefinition.field3252;
|
||||
if (var0 == ScriptOpcodes.CC_GETSCROLLX) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLY) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTEXT) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.text;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLWIDTH) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollWidth;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLHEIGHT) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollHeight;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELZOOM) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelZoom;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_X) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelAngleX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Z) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelAngleZ;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Y) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelAngleY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTRANSTOP) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.transparencyTop;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTRANSBOT) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.transparencyBot;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.color;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETFILLCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.color2;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETFILLMODE) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.fillMode.rsOrdinal();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELTRANSPARENT) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelTransparency ? 1 : 0;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcu;ZB)I",
|
||||
garbageValue = "126"
|
||||
)
|
||||
static int method3411(int var0, Script var1, boolean var2) {
|
||||
Widget var3;
|
||||
if (var0 == ScriptOpcodes.IF_GETINVOBJECT) {
|
||||
var3 = Canvas.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.itemId;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETINVCOUNT) {
|
||||
var3 = Canvas.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
if (var3.itemId != -1) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.itemQuantity;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_HASSUB) {
|
||||
int var5 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
InterfaceParent var4 = (InterfaceParent)Client.interfaceParents.get((long)var5);
|
||||
if (var4 != null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETTOP) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Client.rootInterface;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("ae")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcu;ZI)I",
|
||||
garbageValue = "600807723"
|
||||
)
|
||||
static int method3402(int var0, Script var1, boolean var2) {
|
||||
int var3;
|
||||
if (var0 == 6600) {
|
||||
var3 = WorldMapRectangle.plane;
|
||||
int var9 = class223.baseX * 64 + (class223.localPlayer.x >> 7);
|
||||
int var5 = class286.baseY * 64 + (class223.localPlayer.y >> 7);
|
||||
Decimator.getWorldMap().method6272(var3, var9, var5, true);
|
||||
return 1;
|
||||
} else {
|
||||
WorldMapArea var11;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETMAPNAME) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
String var16 = "";
|
||||
var11 = Decimator.getWorldMap().getMapArea(var3);
|
||||
if (var11 != null) {
|
||||
var16 = var11.getExternalName();
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var16;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_SETMAP) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
Decimator.getWorldMap().setCurrentMapAreaId(var3);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETZOOM) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().getZoomLevel();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_SETZOOM) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
Decimator.getWorldMap().setZoomPercentage(var3);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_ISLOADED) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().isCacheLoaded() ? 1 : 0;
|
||||
return 1;
|
||||
} else {
|
||||
Coord var15;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_JUMPTODISPLAYCOORD) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
Decimator.getWorldMap().setWorldMapPositionTarget(var15.x, var15.y);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_JUMPTODISPLAYCOORD_INSTANT) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
Decimator.getWorldMap().setWorldMapPositionTargetInstant(var15.x, var15.y);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_JUMPTOSOURCECOORD) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
Decimator.getWorldMap().jumpToSourceCoord(var15.plane, var15.x, var15.y);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_JUMPTOSOURCECOORD_INSTANT) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
Decimator.getWorldMap().jumpToSourceCoordInstant(var15.plane, var15.x, var15.y);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETDISPLAYPOSITION) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().getDisplayX();
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().getDisplayY();
|
||||
return 1;
|
||||
} else {
|
||||
WorldMapArea var13;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGORIGIN) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var13 = Decimator.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var13.getOrigin().packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGSIZE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var13 = Decimator.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = (var13.getRegionHighX() - var13.getRegionLowX() + 1) * 64;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = (var13.getRegionHighY() - var13.getRegionLowY() + 1) * 64;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGBOUNDS) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var13 = Decimator.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var13.getRegionLowX() * 64;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var13.getRegionLowY() * 64;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var13.getRegionHighX() * 64 + 64 - 1;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var13.getRegionHighY() * 64 + 64 - 1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGZOOM) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var13 = Decimator.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var13.getZoom();
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == 6615) {
|
||||
var15 = Decimator.getWorldMap().getDisplayCoord();
|
||||
if (var15 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var15.x;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var15.y;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETCURRENTMAP) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().currentMapAreaId();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETDISPLAYCOORD) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
var13 = Decimator.getWorldMap().getCurrentMapArea();
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
} else {
|
||||
int[] var14 = var13.position(var15.plane, var15.x, var15.y);
|
||||
if (var14 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var14[0];
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var14[1];
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
Coord var7;
|
||||
if (var0 == 6618) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
var13 = Decimator.getWorldMap().getCurrentMapArea();
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
} else {
|
||||
var7 = var13.coord(var15.x, var15.y);
|
||||
if (var7 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var7.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
Coord var12;
|
||||
if (var0 == 6619) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]);
|
||||
WorldMapLabel.method439(var3, var12, false);
|
||||
return 1;
|
||||
} else if (var0 == 6620) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]);
|
||||
WorldMapLabel.method439(var3, var12, true);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_COORDINMAP) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]);
|
||||
var11 = Decimator.getWorldMap().getMapArea(var3);
|
||||
if (var11 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
return 1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var11.containsCoord(var12.plane, var12.x, var12.y) ? 1 : 0;
|
||||
return 1;
|
||||
}
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETSIZE) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().getDisplayWith();
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().getDisplayHeight();
|
||||
return 1;
|
||||
} else if (var0 == 6623) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
var13 = Decimator.getWorldMap().mapAreaAtCoord(var15.plane, var15.x, var15.y);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var13.getId();
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == 6624) {
|
||||
Decimator.getWorldMap().setMaxFlashCount(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
return 1;
|
||||
} else if (var0 == 6625) {
|
||||
Decimator.getWorldMap().resetMaxFlashCount();
|
||||
return 1;
|
||||
} else if (var0 == 6626) {
|
||||
Decimator.getWorldMap().setCyclesPerFlash(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
return 1;
|
||||
} else if (var0 == 6627) {
|
||||
Decimator.getWorldMap().resetCyclesPerFlash();
|
||||
return 1;
|
||||
} else {
|
||||
boolean var10;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_PERPETUALFLASH) {
|
||||
var10 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
|
||||
Decimator.getWorldMap().setPerpetualFlash(var10);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_FLASHELEMENT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
Decimator.getWorldMap().flashElement(var3);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_FLASHELEMENTCATEGORY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
Decimator.getWorldMap().flashCategory(var3);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_STOPCURRENTFLASHES) {
|
||||
Decimator.getWorldMap().stopCurrentFlashes();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_DISABLEELEMENTS) {
|
||||
var10 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
|
||||
Decimator.getWorldMap().setElementsDisabled(var10);
|
||||
return 1;
|
||||
} else {
|
||||
boolean var4;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_DISABLEELEMENT) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1] == 1;
|
||||
Decimator.getWorldMap().disableElement(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_DISABLEELEMENTCATEGORY) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1] == 1;
|
||||
Decimator.getWorldMap().setCategoryDisabled(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETDISABLEELEMENTS) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().getElementsDisabled() ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETDISABLEELEMENT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().isElementDisabled(var3) ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_GETDISABLEELEMENTCATEGORY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Decimator.getWorldMap().isCategoryDisabled(var3) ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == 6638) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]);
|
||||
var7 = Decimator.getWorldMap().method6316(var3, var12);
|
||||
if (var7 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var7.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else {
|
||||
AbstractWorldMapIcon var8;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_LISTELEMENT_START) {
|
||||
var8 = Decimator.getWorldMap().iconStart();
|
||||
if (var8 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var8.getElement();
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var8.coord2.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_LISTELEMENT_NEXT) {
|
||||
var8 = Decimator.getWorldMap().iconNext();
|
||||
if (var8 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var8.getElement();
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var8.coord2.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else {
|
||||
WorldMapElement var6;
|
||||
if (var0 == ScriptOpcodes.MEC_TEXT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var6 = Decimator.WorldMapElement_get(var3);
|
||||
if (var6.name == null) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var6.name;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.MEC_TEXTSIZE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var6 = Decimator.WorldMapElement_get(var3);
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var6.textSize;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.MEC_CATEGORY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var6 = Decimator.WorldMapElement_get(var3);
|
||||
if (var6 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var6.category;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.MEC_SPRITE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var6 = Decimator.WorldMapElement_get(var3);
|
||||
if (var6 == null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var6.sprite1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_ELEMENT) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = EnumDefinition.worldMapEvent.mapElement;
|
||||
return 1;
|
||||
} else if (var0 == 6698) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = EnumDefinition.worldMapEvent.coord1.packed();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDMAP_ELEMENTCOORD) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = EnumDefinition.worldMapEvent.coord2.packed();
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("hv")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)V",
|
||||
garbageValue = "2147289809"
|
||||
)
|
||||
@Export("calculateMenuBounds")
|
||||
static void calculateMenuBounds(int var0, int var1) {
|
||||
int var2 = class173.fontBold12.stringWidth("Choose Option");
|
||||
|
||||
int var3;
|
||||
int var4;
|
||||
for (var3 = 0; var3 < Client.menuOptionsCount; ++var3) {
|
||||
var4 = class173.fontBold12.stringWidth(class40.method799(var3));
|
||||
if (var4 > var2) {
|
||||
var2 = var4;
|
||||
}
|
||||
}
|
||||
|
||||
var2 += 8;
|
||||
var3 = Client.menuOptionsCount * 15 + 22;
|
||||
var4 = var0 - var2 / 2;
|
||||
if (var4 + var2 > FloorDecoration.canvasWidth) {
|
||||
var4 = FloorDecoration.canvasWidth - var2;
|
||||
}
|
||||
|
||||
if (var4 < 0) {
|
||||
var4 = 0;
|
||||
}
|
||||
|
||||
int var5 = var1;
|
||||
if (var1 + var3 > WallDecoration.canvasHeight) {
|
||||
var5 = WallDecoration.canvasHeight - var3;
|
||||
}
|
||||
|
||||
if (var5 < 0) {
|
||||
var5 = 0;
|
||||
}
|
||||
|
||||
UrlRequester.menuX = var4;
|
||||
class51.menuY = var5;
|
||||
FriendSystem.menuWidth = var2;
|
||||
WorldMapDecoration.menuHeight = Client.menuOptionsCount * 15 + 22;
|
||||
@Export("stringCp1252NullTerminatedByteSize")
|
||||
public static int stringCp1252NullTerminatedByteSize(String var0) {
|
||||
return var0.length() + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user