Search in sources :

Example 61 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class WorldMapRegion method method426.

@ObfuscatedName("at")
@ObfuscatedSignature(signature = "(I)Ljava/util/List;", garbageValue = "-2012315534")
List method426() {
    LinkedList var1 = new LinkedList();
    var1.addAll(this.field471);
    var1.addAll(this.field466.values());
    return var1;
}
Also used : LinkedList(java.util.LinkedList) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 62 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class WorldMapRegion method drawFlashingMapIcons.

@ObfuscatedName("d")
@ObfuscatedSignature(signature = "(Ljava/util/HashSet;III)V", garbageValue = "-1472148153")
@Export("drawFlashingMapIcons")
void drawFlashingMapIcons(HashSet var1, int var2, int var3) {
    Iterator var4 = this.field466.values().iterator();
    while (var4.hasNext()) {
        MapIcon var5 = (MapIcon) var4.next();
        if (var1.contains(Integer.valueOf(var5.areaId))) {
            Area var6 = Area.mapAreaType[var5.areaId];
            this.method413(var6, var5.screenX, var5.screenY, var2, var3);
        }
    }
    this.method412(var1, var2, var3);
}
Also used : Iterator(java.util.Iterator) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 63 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class class234 method method4359.

@ObfuscatedName("i")
@ObfuscatedSignature(signature = "(JLjava/lang/String;B)I", garbageValue = "-54")
static final int method4359(long var0, String var2) {
    Random var3 = new Random();
    Buffer var4 = new Buffer(128);
    Buffer var5 = new Buffer(128);
    int[] var6 = new int[] { var3.nextInt(), var3.nextInt(), (int) (var0 >> 32), (int) var0 };
    var4.putByte(10);
    int var7;
    for (var7 = 0; var7 < 4; ++var7) {
        var4.putInt(var3.nextInt());
    }
    var4.putInt(var6[0]);
    var4.putInt(var6[1]);
    var4.putLong(var0);
    var4.putLong(0L);
    for (var7 = 0; var7 < 4; ++var7) {
        var4.putInt(var3.nextInt());
    }
    var4.encryptRsa(class85.field1302, class85.field1305);
    var5.putByte(10);
    for (var7 = 0; var7 < 3; ++var7) {
        var5.putInt(var3.nextInt());
    }
    var5.putLong(var3.nextLong());
    var5.method3507(var3.nextLong());
    Buffer.method3727(var5);
    var5.putLong(var3.nextLong());
    var5.encryptRsa(class85.field1302, class85.field1305);
    var7 = Projectile.getLength(var2);
    if (var7 % 8 != 0) {
        var7 += 8 - var7 % 8;
    }
    Buffer var8 = new Buffer(var7);
    var8.putString(var2);
    var8.offset = var7;
    var8.encryptXtea2(var6);
    Buffer var9 = new Buffer(var8.offset + var5.offset + var4.offset + 5);
    var9.putByte(2);
    var9.putByte(var4.offset);
    var9.putBytes(var4.payload, 0, var4.offset);
    var9.putByte(var5.offset);
    var9.putBytes(var5.payload, 0, var5.offset);
    var9.putShort(var8.offset);
    var9.putBytes(var8.payload, 0, var8.offset);
    byte[] var11 = var9.payload;
    int var13 = var11.length;
    StringBuilder var14 = new StringBuilder();
    int var17;
    for (int var15 = 0; var15 < var13 + 0; var15 += 3) {
        int var16 = var11[var15] & 255;
        var14.append(class317.field3924[var16 >>> 2]);
        if (var15 < var13 - 1) {
            var17 = var11[var15 + 1] & 255;
            var14.append(class317.field3924[(var16 & 3) << 4 | var17 >>> 4]);
            if (var15 < var13 - 2) {
                int var18 = var11[var15 + 2] & 255;
                var14.append(class317.field3924[(var17 & 15) << 2 | var18 >>> 6]).append(class317.field3924[var18 & 63]);
            } else {
                var14.append(class317.field3924[(var17 & 15) << 2]).append("=");
            }
        } else {
            var14.append(class317.field3924[(var16 & 3) << 4]).append("==");
        }
    }
    String var12 = var14.toString();
    var12 = var12;
    try {
        URL var19 = new URL(ClientPacket.method3421("services", false) + "m=accountappeal/login.ws");
        URLConnection var26 = var19.openConnection();
        var26.setDoInput(true);
        var26.setDoOutput(true);
        var26.setConnectTimeout(5000);
        OutputStreamWriter var20 = new OutputStreamWriter(var26.getOutputStream());
        var20.write("data2=" + ClanMember.method5258(var12) + "&dest=" + ClanMember.method5258("passwordchoice.ws"));
        var20.flush();
        InputStream var21 = var26.getInputStream();
        var9 = new Buffer(new byte[1000]);
        do {
            var17 = var21.read(var9.payload, var9.offset, 1000 - var9.offset);
            if (var17 == -1) {
                var20.close();
                var21.close();
                String var22 = new String(var9.payload);
                if (var22.startsWith("OFFLINE")) {
                    return 4;
                } else if (var22.startsWith("WRONG")) {
                    return 7;
                } else if (var22.startsWith("RELOAD")) {
                    return 3;
                } else if (var22.startsWith("Not permitted for social network accounts.")) {
                    return 6;
                } else {
                    var9.decryptXtea(var6);
                    while (var9.offset > 0 && var9.payload[var9.offset - 1] == 0) {
                        --var9.offset;
                    }
                    var22 = new String(var9.payload, 0, var9.offset);
                    if (!ScriptVarType.method22(var22)) {
                        return 5;
                    } else {
                        if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Action.BROWSE)) {
                            try {
                                Desktop.getDesktop().browse(new URI(var22));
                                return 2;
                            } catch (Exception var24) {
                                ;
                            }
                        }
                        if (class57.field646.startsWith("win")) {
                            ItemLayer.method2580(var22, 0);
                        } else if (class57.field646.startsWith("mac")) {
                            WorldMapType2.method553(var22, 1, "openjs");
                        } else {
                            ItemLayer.method2580(var22, 2);
                        }
                        return 2;
                    }
                }
            }
            var9.offset += var17;
        } while (var9.offset < 1000);
        return 5;
    } catch (Throwable var25) {
        var25.printStackTrace();
        return 5;
    }
}
Also used : InputStream(java.io.InputStream) URI(java.net.URI) URL(java.net.URL) URLConnection(java.net.URLConnection) Random(java.util.Random) OutputStreamWriter(java.io.OutputStreamWriter) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 64 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class WorldMapData method method308.

@ObfuscatedName("j")
@ObfuscatedSignature(signature = "(IIB)Z", garbageValue = "124")
public boolean method308(int var1, int var2) {
    int var3 = var1 / 64;
    int var4 = var2 / 64;
    if (var3 >= this.minX && var3 <= this.field431) {
        if (var4 >= this.minY && var4 <= this.field436) {
            Iterator var5 = this.field435.iterator();
            WorldMapSectionBase var6;
            do {
                if (!var5.hasNext()) {
                    return false;
                }
                var6 = (WorldMapSectionBase) var5.next();
            } while (!var6.vmethod758(var1, var2));
            return true;
        } else {
            return false;
        }
    } else {
        return false;
    }
}
Also used : Iterator(java.util.Iterator) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 65 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class WorldMapData method method354.

@ObfuscatedName("x")
@ObfuscatedSignature(signature = "(III)Lim;", garbageValue = "1095448979")
public Coordinates method354(int var1, int var2) {
    Iterator var3 = this.field435.iterator();
    WorldMapSectionBase var4;
    do {
        if (!var3.hasNext()) {
            return null;
        }
        var4 = (WorldMapSectionBase) var3.next();
    } while (!var4.vmethod758(var1, var2));
    return var4.vmethod777(var1, var2);
}
Also used : Iterator(java.util.Iterator) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Aggregations

ObfuscatedName (net.runelite.mapping.ObfuscatedName)72 ObfuscatedSignature (net.runelite.mapping.ObfuscatedSignature)71 Iterator (java.util.Iterator)30 Export (net.runelite.mapping.Export)23 IOException (java.io.IOException)11 LinkedList (java.util.LinkedList)10 List (java.util.List)6 Container (java.awt.Container)5 Insets (java.awt.Insets)5 HashSet (java.util.HashSet)5 JSObject (netscape.javascript.JSObject)5 URL (java.net.URL)4 HashMap (java.util.HashMap)4 ByteArrayInputStream (java.io.ByteArrayInputStream)3 File (java.io.File)3 URI (java.net.URI)3 Canvas (java.awt.Canvas)2 Graphics (java.awt.Graphics)2 BufferedImage (java.awt.image.BufferedImage)2 PixelGrabber (java.awt.image.PixelGrabber)2