Jump to content

Search the Community

Showing results for tags 'function'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 5 results

  1. basically I to check if this is null or not: [CODE] if (getObject(moveX,moveY,heightLevel) != null){[/CODE] Code for the function: [CODE] public Object getObject(int x, int y, int height) { for (Object o : objects) { if (o.objectX == x && o.objectY == y && o.height == height) return o; } return null; }[/CODE] however I get the error that I cant pass this as it is in static context, whereas the function is non-static. Is there a way to workaround this issue? EDIT: nvm fixed ^_^ [url]http://stackoverflow.com/questions/14567360/calling-non-static-methods-from-other-classes[/url]
  2. I managed to get a jar that i had working from earlier, and i managed to get it onto a webclient and it went functional. But theres one problem. The webclient will start to load...But then it'll just stop there and do nothing. It won't even give an error, its just stuck at "Starting up". There are no white screens so im quite confused as to whats going on with it..
  3. I'm using Hyperion and I'm having a hard time re-routing the F-keys + finding the correct client class file the changes need to be made in. The only search for keyevent/keylistener are these two classes: [code] /* Class80 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ import java.awt.event.KeyEvent; public class Class80 { public static RSString aClass16_1501 = Class37_Sub2.crateRSString((byte) 121, "blinken1:"); public static int anInt1502; public static int[] anIntArray1503 = new int[2000]; public static long[] aLongArray1504 = new long[100]; public static long aLong1505; public static int anInt1506; public static Class15 aClass15_1507; public static Signlink aClass51_1508; public static void method1299(int i, long l) { try { anInt1502++; if (l != 0L) { if (RSInterface.anInt340 >= 100) Class37_Sub4_Sub7_Sub1_Sub1.method505((Class37_Sub9_Sub8 .aClass16_3045), 0, Class24.aClass16_596, (byte) 87); else { RSString rSString = Class37_Sub4_Sub13.method708(37, l).method164(70); for (int i_0_ = i; (RSInterface.anInt340 ^ 0xffffffff) < (i_0_ ^ 0xffffffff); i_0_++) { if ((aLongArray1504[i_0_] ^ 0xffffffffffffffffL) == (l ^ 0xffffffffffffffffL)) { Class37_Sub4_Sub7_Sub1_Sub1.method505 (Class37_Sub9_Sub8.aClass16_3045, 0, (Class37_Sub9_Sub27.method881 (-7, new RSString[] { rSString, Class38.aClass16_846 })), (byte) 71); return; } } for (int i_1_ = 0; (i_1_ ^ 0xffffffff) > (Class9.anInt173 ^ 0xffffffff); i_1_++) { if ((l ^ 0xffffffffffffffffL) == (Class71.aLongArray1360[i_1_] ^ 0xffffffffffffffffL)) { Class37_Sub4_Sub7_Sub1_Sub1.method505 (Class37_Sub9_Sub8.aClass16_3045, 0, (Class37_Sub9_Sub27.method881 (i ^ ~0x69, (new RSString[] { Class37_Sub9_Sub31.aClass16_3491, rSString, Class60.aClass16_1145 }))), (byte) 100); return; } } if (rSString.equalsRSString(-94, (Class37_Sub23 .aClass37_Sub4_Sub7_Sub1_Sub2_2234 .aClass16_3993))) Class37_Sub4_Sub7_Sub1_Sub1.method505 (Class37_Sub9_Sub8.aClass16_3045, 0, Class37_Sub23.aClass16_2239, (byte) 71); else { Class10.anInt195++; aLongArray1504[RSInterface.anInt340] = l; RSInterface.aClass16Array332[RSInterface.anInt340++] = (Class37_Sub4_Sub13.method708 (Class37_Sub4_Sub7_Sub1_Sub1.method502(i, 37), l)); Class37_Sub9_Sub32.anInt3509 = Class83.anInt1515; Class42.aClass37_Sub11_Sub1_936.method989(-1494101117, 152); Class42.aClass37_Sub11_Sub1_936.method949(l, (byte) -103); } } } } catch (RuntimeException runtimeexception) { throw Class37_Sub4_Sub7_Sub3.method516(runtimeexception, ("ug.A(" + i + ',' + l + ')')); } } public static int method1300(KeyEvent keyevent, int i) { anInt1506++; if (i != -15009) return -71; int i_2_ = keyevent.getKeyChar(); if ((i_2_ ^ 0xffffffff) == -8365) return 128; if ((i_2_ ^ 0xffffffff) >= -1 || (i_2_ ^ 0xffffffff) <= -257) i_2_ = -1; return i_2_; } public static void method1301(int i) { if (i >= 32) { aClass51_1508 = null; aLongArray1504 = null; aClass16_1501 = null; aClass15_1507 = null; anIntArray1503 = null; } } } [/code] [code] /* Class21 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; public class Class21 implements KeyListener, FocusListener { public static int anInt558 = -1; public static RSString aClass16_559 = Class37_Sub2.crateRSString((byte) 110, "Zu viele Verbindungen von Ihrer Adresse)3"); public static RSString aClass16_560; public static RSString aClass16_561 = Class37_Sub2.crateRSString((byte) 111, "Fps:"); public static int anInt562; public static int anInt563; public static int anInt564; public static int anInt565; public static int anInt566; public static int anInt567; public static Class32 aClass32_568; public synchronized void keyPressed(KeyEvent keyevent) { if (Class37_Sub9_Sub13.aClass21_3126 != null) { Class37_Sub13.anInt2120 = 0; int i = keyevent.getKeyCode(); if (i < 0 || (i ^ 0xffffffff) <= (Class37_Sub5.anIntArray1879.length ^ 0xffffffff)) i = -1; else { i = Class37_Sub5.anIntArray1879[i]; if ((i & 0x80) != 0) i = -1; } if ((Class13.anInt230 ^ 0xffffffff) <= -1 && i >= 0) { Class37_Sub9_Sub19.anIntArray3271[Class13.anInt230] = i; Class13.anInt230 = 0x7f & 1 + Class13.anInt230; if ((Class37_Sub9_Sub26.anInt3390 ^ 0xffffffff) == (Class13.anInt230 ^ 0xffffffff)) Class13.anInt230 = -1; } if (i >= 0) { int i_0_ = Class37_Sub9_Sub16.anInt3208 + 1 & 0x7f; if ((Class37_Sub9_Sub21.anInt3314 ^ 0xffffffff) != (i_0_ ^ 0xffffffff)) { Class86.anIntArray1577[Class37_Sub9_Sub16.anInt3208] = i; Class37_Sub9_Sub31.anIntArray3485[(Class37_Sub9_Sub16 .anInt3208)] = -1; Class37_Sub9_Sub16.anInt3208 = i_0_; } } int i_1_ = keyevent.getModifiers(); if ((0xa & i_1_ ^ 0xffffffff) != -1 || (i ^ 0xffffffff) == -86 || i == 10) keyevent.consume(); } anInt567++; } public static void method228(int i) { aClass16_561 = null; aClass32_568 = null; aClass16_560 = null; if (i != 0) aClass16_561 = null; aClass16_559 = null; } public synchronized void focusLost(FocusEvent focusevent) { anInt565++; if (Class37_Sub9_Sub13.aClass21_3126 != null) Class13.anInt230 = -1; } public synchronized void keyReleased(KeyEvent keyevent) { if (Class37_Sub9_Sub13.aClass21_3126 != null) { Class37_Sub13.anInt2120 = 0; int i = keyevent.getKeyCode(); if (i >= 0 && Class37_Sub5.anIntArray1879.length > i) i = ~0x80 & Class37_Sub5.anIntArray1879[i]; else i = -1; if (Class13.anInt230 >= 0 && (i ^ 0xffffffff) <= -1) { Class37_Sub9_Sub19.anIntArray3271[Class13.anInt230] = i ^ 0xffffffff; Class13.anInt230 = 1 + Class13.anInt230 & 0x7f; if ((Class13.anInt230 ^ 0xffffffff) == (Class37_Sub9_Sub26.anInt3390 ^ 0xffffffff)) Class13.anInt230 = -1; } } anInt566++; keyevent.consume(); } public void keyTyped(KeyEvent keyevent) { anInt564++; if (Class37_Sub9_Sub13.aClass21_3126 != null) { int i = Class80.method1300(keyevent, -15009); if (i >= 0) { int i_2_ = 0x7f & Class37_Sub9_Sub16.anInt3208 - -1; if (i_2_ != Class37_Sub9_Sub21.anInt3314) { Class86.anIntArray1577[Class37_Sub9_Sub16.anInt3208] = -1; Class37_Sub9_Sub31.anIntArray3485[(Class37_Sub9_Sub16 .anInt3208)] = i; Class37_Sub9_Sub16.anInt3208 = i_2_; } } } keyevent.consume(); } public void focusGained(FocusEvent focusevent) { anInt563++; } static { aClass16_560 = (Class37_Sub2.crateRSString ((byte) 113, " steht bereits auf Ihrer Ignorieren)2Liste(Q")); } } [/code]
  4. Pretty basic script I made, anyone can do it, pretty basic start to functions. [php] <?php function redirect($url, $time = '0') { sleep($time); header("Location: ".$url); } ?> [/php] Pretty simple, easy to use. Use as [php] <?php redirect("http://www.google.com"); ?> [/php] or A timed redirection (This code means that in 5 seconds it will take you to Google whilst the above code will take you to Google straight away.) [php] <?php redirect("http://www.google.com", "5"); ?> [/php]
  5. This is just a beyond simple user-defined function I've made: [php] function encrypt($type, $value){ switch($type) { case "md5": $value = md5($value); break; case "sha1": $value = sha1($value); break; case "whirlpool": $value = hash("whirlpool", $value); break; case "sha512": $value = hash("sha512", $value); break; } return $value; } [/php] Use as: [php] echo encrypt("sha512", "whatever you want to encrypt"); [/php]
×