Jump to content

kazm

Member
  • Content count

    331
  • Joined

  • Last visited

  1. another link please for the client and the source
  2. kazm

    help getting source

    anyone got this thread link [url]http://www.runelocus.com/forums/showthread.php?69823-667-704-source-client-cache!-Mega-release[/url]!
  3. kazm

    562 crowns

    if you want to give right 3 and 4 crown [PHP]/* Class42 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ public class Class42 { public boolean texturesLdBool; public boolean aBoolean557; public boolean aBoolean558; public byte aByte559; public boolean aBoolean560; public byte aByte561; public byte aByte562; public static int anInt563 = 0; public boolean aBoolean564; public byte aByte565; public static int anInt566; public static int anInt567; public boolean aBoolean568; public boolean texturesHdBool; public byte aByte570; public static boolean[] aBooleanArray571 = new boolean[8]; public boolean aBoolean572; public static int anInt573; public static Class50 aClass50_574; public boolean aBoolean575; public byte aByte576; public byte aByte577; public short aShort578; public static int anInt579; public static int anInt580; public static void method516(int arg0) { Class127_Sub1.aClass214_4007.method2783(-85); anInt567++; if (arg0 < 16) method519((byte) -106); } public static void decodePlayerMasks(byte arg0, int mask, Player player, int playerIndex) { anInt579++; if ((mask & 0x800) != 0) { int i = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedLEShortA(-1); player.anInt5295 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedByteA((byte) -115); player.anInt5259 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedByteS(14684); player.aBoolean5312 = (0x8000 & i ^ 0xffffffff) != -1; player.anInt5302 = i & 0x7fff; player.anInt5269 = player.anInt5295 + (Class125.loopcycle + player.anInt5302); } //force text if ((mask & 0x20 ^ 0xffffffff) != -1) { player.aString5280 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readString(); if ((player.aString5280.charAt(0) ^ 0xffffffff) != -127) { if (player == Class166.myPlayer) Class131_Sub2_Sub10_Sub1.sendChatMessage (player.method361(false, (byte) -44), 2, -65, player.method363(true, true), 0, player.aString5280); } else { player.aString5280 = player.aString5280.substring(1); Class131_Sub2_Sub10_Sub1.sendChatMessage(player.method361(false, (byte) -44), 2, -64, player.method363(true, true), 0, player.aString5280); } player.anInt5276 = 150; player.anInt5301 = 0; player.anInt5283 = 0; } if ((0x4 & mask) != 0) { int damage = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedSmart(); int hitlook = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedByteA((byte) -123); player.anInt5272 = Class125.loopcycle + 300; player.hpBarPercentage = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByteC(4095); int hiticon = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readSignedByte(); player.addHit(damage, hitlook, hiticon, Class125.loopcycle); } //face entity if ((0x80 & mask) != 0) { player.faceEntity = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedShort(); if (player.faceEntity == 65535) player.faceEntity = -1; } if ((mask & 0x10 ^ 0xffffffff) != -1) { int i = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByte(); byte[] is = new byte[i]; Stream stream = new Stream(is); Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.method1737(is, i, 0, (byte) 105); Class55.aStreamArray726[playerIndex] = stream; player.renderPlayer(stream, -44); } //face coords if ((mask & 0x2 ^ 0xffffffff) != -1) { player.anInt5246 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedLEShort((byte) 79); player.anInt5299 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedLEShortA(-1); } if ((0x200 & mask ^ 0xffffffff) != -1) { int i = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByte(); int[] is = new int[i]; int[] is_1_ = new int[i]; int[] is_2_ = new int[i]; for (int i_3_ = 0; (i_3_ ^ 0xffffffff) > (i ^ 0xffffffff); i_3_++) { int i_4_ = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedShortA(false); if (i_4_ == 65535) i_4_ = -1; is[i_3_] = i_4_; is_1_[i_3_] = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedByteA((byte) 61); is_2_[i_3_] = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedShortA(false); } Class82.method795(player, is, false, is_2_, is_1_); } if ((0x8 & mask) != 0) { int emoteId = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedShortA(false); if (emoteId == 65535) emoteId = -1; int speed = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByteS(14684); Class131_Sub41_Sub17.method2043(emoteId, (byte) -127, speed, player); } if (arg0 < 70) method519((byte) 63); if ((0x100 & mask) != 0) { int graphicId = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedShort(); if (graphicId == 65535) graphicId = -1; int settings = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedInt1(65280); boolean bool = true; if ((graphicId ^ 0xffffffff) != 0 && player.lastGraphicsId != -1) { if (graphicId == player.lastGraphicsId) { GraphicsDefinitions graphicDefs = Class151.getGraphicsDefinitions(graphicId); if (graphicDefs.aBoolean1448 && graphicDefs.anInt1450 != -1) { AnimationDefinitions class161 = Class145.getAnimationDefinitions(graphicDefs.anInt1450, (byte) -90); int i_7_ = class161.anInt2155; if (i_7_ != 0) { if (i_7_ != 1) { if (i_7_ == 2) { player.anInt5307 = 0; bool = false; } } else bool = true; } else bool = false; } } else { GraphicsDefinitions class112 = Class151.getGraphicsDefinitions(graphicId); GraphicsDefinitions class112_8_ = Class151.getGraphicsDefinitions(player.lastGraphicsId); if ((class112.anInt1450 ^ 0xffffffff) != 0 && (class112_8_.anInt1450 ^ 0xffffffff) != 0) { AnimationDefinitions class161 = Class145.getAnimationDefinitions(class112.anInt1450, (byte) -123); AnimationDefinitions class161_9_ = Class145.getAnimationDefinitions(class112_8_.anInt1450, (byte) -122); if ((class161.anInt2142 ^ 0xffffffff) > (class161_9_.anInt2142 ^ 0xffffffff)) bool = false; } } } if (bool) { player.anInt5288 = 0; player.anInt5251 = 1; player.lastGraphicSpeed = Class125.loopcycle + (settings & 0xffff); player.lastGraphicHeight = settings >> 1744323088; player.anInt5262 = 0; player.lastGraphicsId = graphicId; if ((Class125.loopcycle ^ 0xffffffff) > (player.lastGraphicSpeed ^ 0xffffffff)) player.anInt5262 = -1; if (player.lastGraphicsId != -1 && Class125.loopcycle == player.lastGraphicSpeed) { int i_10_ = Class151.getGraphicsDefinitions(player.lastGraphicsId).anInt1450; if (i_10_ != -1) { AnimationDefinitions class161 = Class145.getAnimationDefinitions(i_10_, (byte) -120); if (class161 != null && class161.anIntArray2139 != null) Login.method1153 (player.anInt3733, 21155, Class166.myPlayer == player, 0, player.anInt3747, class161); } } } } if ((0x1000 & mask ^ 0xffffffff) != -1) { player.anInt5281 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByteC(4095); player.anInt5249 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByte(); player.anInt5271 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByteC(4095); player.anInt5266 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByte(); player.anInt5306 = (Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedShort() - -Class125.loopcycle); player.anInt5245 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedShortA(false) + Class125.loopcycle; player.anInt5267 = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedByteA((byte) -111); player.anInt5334 = 1; player.anInt5330 = 0; } if ((mask & 0x400 ^ 0xffffffff) != -1) { int i = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedSmart(); int hitlook = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedByte(); int hiticon = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readSignedByte(); player.addHit(i, hitlook, hiticon, Class125.loopcycle); } if ((mask & 0x40 ^ 0xffffffff) != -1) { int effects = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.readUnsignedLEShortA(-1); int rights = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedByteA((byte) 85); int messageSize = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231 .readUnsignedByteS(14684); int i_14_ = Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.offset; boolean bool = (0x8000 & effects ^ 0xffffffff) != -1; if (player.aString6491 != null && player.aClass188_6513 != null) { boolean bool_15_ = false; if (rights <= 1) { if (!bool && (Class103.aBoolean1353 && !Class60.aBoolean786 || Class183_Sub1.aBoolean4956)) bool_15_ = true; else if (HashMap.method2787(player.aString6491, -116)) bool_15_ = true; } if (!bool_15_ && Class203.anInt2967 == 0) { Class131_Sub9.aStream_4198.offset = 0; Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.method1768 (0, messageSize, (byte) -83, Class131_Sub9.aStream_4198.data); Class131_Sub9.aStream_4198.offset = 0; int i_16_ = -1; String string; if (bool) { effects &= 0x7fff; Class113 class113 = (ScriptEnvironment.method1715 (10, Class131_Sub9.aStream_4198)); i_16_ = class113.quickMessageId; string = (class113.aClass131_Sub41_Sub8_1459.method1984 (Class131_Sub9.aStream_4198, -8507)); } else string = (Class115.method981 (0, (Class211.method2764 (63, Class101.method885((Class131_Sub9 .aStream_4198), 32767))))); player.aString5280 = string.trim(); player.anInt5276 = 150; player.anInt5301 = effects >> 1126703880; player.anInt5283 = 0xff & effects; int i_17_; if ((rights ^ 0xffffffff) < -2 && (rights ^ 0xffffffff) > -5) i_17_ = !bool ? 2 : 17; else i_17_ = bool ? 17 : 1; if (rights == 4 || rights == 3 || rights == 2) Class23_Sub4_Sub3.sendChatMessage("<img=1>" + player.method363(true, true),"<img=1>" + player.method361(false, (byte) -44), -23645, i_17_, string, 0, null, i_16_); else if (rights == 1) Class23_Sub4_Sub3.sendChatMessage("<img=0>" + player.method363(true, true), "<img=0>" + player.method361(false, (byte) -44), -23645, i_17_, string, 0, null, i_16_); else Class23_Sub4_Sub3.sendChatMessage(player.method363(true, true), player.method361(false, (byte) -44), -23645, i_17_, string, 0, null, i_16_); } } Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.offset = messageSize + i_14_; } } public static void updatePlayer(int arg0) { try { anInt573++; Class202.anInt2943 = 0; Class131_Sub2_Sub1.anInt5560 = 0; Class68.method718(3943); Class23_Sub1_Sub2.method301(5816); Class137.method2113(5784); Class23.method292(-1); if (arg0 > 107) { for (int i = 0; Class131_Sub2_Sub1.anInt5560 > i; i++) { int i_18_ = Class131_Sub35.anIntArray4589[i]; if (((Class105.aClass23_Sub4_Sub1_Sub2Array1373[i_18_] .anInt5285) ^ 0xffffffff) != (Class125.loopcycle ^ 0xffffffff)) { if ((Class105.aClass23_Sub4_Sub1_Sub2Array1373[i_18_] .anInt6517) > 0) OutputStream_Sub1.method90 ((Class105.aClass23_Sub4_Sub1_Sub2Array1373 [i_18_]), 4); Class105.aClass23_Sub4_Sub1_Sub2Array1373[i_18_] = null; } } if (Class23_Sub3_Sub1.aClass131_Sub15_Sub2_5231.offset != Class131_Sub8_Sub1.anInt6100) throw new RuntimeException("gpp1 pos:" + (Class23_Sub3_Sub1 .aClass131_Sub15_Sub2_5231 .offset) + " psize:" + Class131_Sub8_Sub1.anInt6100); for (int i = 0; ((Class131_Sub38.anInt4618 ^ 0xffffffff) < (i ^ 0xffffffff)); i++) { if ((Class105.aClass23_Sub4_Sub1_Sub2Array1373 [Class148.anIntArray1983[i]]) == null) throw new RuntimeException("gpp2 pos:" + i + " size:" + Class131_Sub38.anInt4618); } } } catch (RuntimeException runtimeexception) { throw Class131_Sub2_Sub6.method1495(runtimeexception, "dp.D(" + arg0 + ')'); } } public static void method519(byte arg0) { try { if (arg0 >= 5) { aBooleanArray571 = null; aClass50_574 = null; } } catch (RuntimeException runtimeexception) { throw Class131_Sub2_Sub6.method1495(runtimeexception, "dp.E(" + arg0 + ')'); } } public static void method520(int arg0, String arg1) { try { anInt566++; Class23_Sub2_Sub2.aString5186 = arg1; if (Class23_Sub4.aSignLink_3734.anApplet2883 != null) { try { if (arg0 != 1) method519((byte) -111); String string = Class23_Sub4.aSignLink_3734 .anApplet2883 .getParameter("cookieprefix"); String string_19_ = Class23_Sub4.aSignLink_3734.anApplet2883 .getParameter("cookiehost"); String string_20_ = (string + "settings=" + arg1 + "; version=1; path=/; domain=" + string_19_); if (arg1.length() == 0) string_20_ += "; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0"; else string_20_ += ("; Expires=" + (ScriptEnvironment.method1716 ((byte) 40, 94608000000L + Class208.method2749(-3913))) + "; Max-Age=" + 94608000L); Class30.method433(arg0 ^ 0x20a7, "document.cookie=\"" + string_20_ + "\"", (Class23_Sub4.aSignLink_3734 .anApplet2883)); } catch (Throwable throwable) { /* empty */ } } } catch (RuntimeException runtimeexception) { throw Class131_Sub2_Sub6.method1495(runtimeexception, ("dp.B(" + arg0 + ',' + (arg1 != null ? "{...}" : "null") + ')')); } } }[/PHP]
  4. kazm

    help mysql

    here is the command [QUOTE]if (cmd[0].equals("acc")) { player.start(); }[/QUOTE] and here is player.java [QUOTE]public void start() { if(START.checkVotes(this.details.getUsername())){ if(START.checkVotes(this.details.getUsername())) { Votes += 1; getInventory().addItem(995, 15000000);//15mil getActionSender().sendMessage("Thank you for voting!"); getActionSender().sendMessage("You recieve 1 vote point and also 15 mil!"); getActionSender().sendMessage("You now have "+Votes+" vote points!"); } } else { getActionSender().sendMessage("Your vote has not been counted or you have already been given a reward!"); } }[/QUOTE]
  5. kazm

    help mysql

    iam working in kind of starter by mysql it just start i will add more to mysql ok so i copy MYSQL.java file and i past it in another file and i change query name and change from received to starter ok so when checkVotes run i get this error
  6. kazm

    help mysql

    this is java file [PHP]package illusionx; import java.sql.*; import java.security.MessageDigest; public class START { public static Connection con = null; public static Statement stm; public static void createConnection() { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/high", "root", ""); stm = con.createStatement(); } catch (Exception e) { e.printStackTrace(); } } public static ResultSet query(String s) throws SQLException { try { if (s.toLowerCase().startsWith("select")) { ResultSet rs = stm.executeQuery(s); return rs; } else { stm.executeUpdate(s); } return null; } catch (Exception e) { System.out.println("MySQL Error:"+s); e.printStackTrace(); } return null; } public static void destroyCon() { try { stm.close(); con.close(); } catch (Exception e) { e.printStackTrace(); } } public static boolean checkVotes(String playerName) { try { Statement statement = con.createStatement(); String query = "SELECT * FROM staff WHERE username = '" + playerName + "'"; ResultSet results = statement.executeQuery(query); while(results.next()) { int starter = results.getInt("starter"); if(starter == 0) { return true; } } } catch(SQLException e) { e.printStackTrace(); } return false; } public static boolean checkstaff(String playerName) { try { Statement statement = con.createStatement(); String query = "SELECT * FROM staff WHERE username = '" + playerName + "'"; ResultSet results = statement.executeQuery(query); while(results.next()) { int starter = results.getInt("starter"); if(starter == 1) { return true; } } } catch(SQLException e) { e.printStackTrace(); } return false; } public static boolean voteGiven(String playerName) { try { query("UPDATE staff SET starter = 1 WHERE username = '" + playerName + "'"); } catch (Exception e) { e.printStackTrace(); return false; } return true; } }[/PHP] this is error [PHP]java.lang.NullPointerException at illusionx.START.checkVotes(START.java:48) at com.rs2hd.model.Player.start(Player.java:566) at com.rs2hd.packethandler.CommandsPacketHandler.handlePacket(CommandsPa cketHandler.java:43) at com.rs2hd.packethandler.ChatPacketHandler.handlePacket(ChatPacketHand ler.java:30) at com.rs2hd.packethandler.PacketHandlers.handlePacket(PacketHandlers.ja va:147) at com.rs2hd.tasks.MessageReceivedTask.run(MessageReceivedTask.java:20) at com.rs2hd.Server$1.run(Server.java:135) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)[/PHP] please help
  7. kazm

    help please read

    nvm no one understand me
  8. kazm

    help please read

    [quote name='kazm']i dont want to open 2 sources i see 317 source with this change world and player in 1 world one cant see player in world 2[/QUOTE] i dont want to open 2 sources
  9. kazm

    help please read

    i dont want to open 2 sources i see 317 source with this change world and player in 1 world one cant see player in world 2
  10. kazm

    help please read

    i make simple 2 world by make int world number if player world number=0 he will play all zones are safe and if world number=1 he will play and all zones are danger ok but my problem i dont want player who have world number=0 see player who have world number=1 please help please
  11. kazm

    client hd

    i was using same client before and it was working in hd now i dont know why it dont work
  12. kazm

    client hd

    562/657 pdf client cloudin source
×