Jump to content

So Clear

Member
  • Content count

    89
  • Joined

  • Last visited

About So Clear

  • Rank
    Iron Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. You can't open player files on a higher revision server. Thats for 317 etc, You edit your ranks in a file, search for drake and it should come up
  2. Na man it's cool, only posted the links because "Shrugs" said links only linked you to cache download
  3. Server Client Cache -One Time
  4. Nice work mate, Hope this gets finished Will there be any beta testing?
  5. You wont be needing any run.bat if you use a IDE like Eclipse,NetBeans etc
  6. Open up loader.java in the client folder and change the ip. Then in the src file go to Settings.java, 9 out of 10 times the ip is already set to 127.0.0.1
  7. The client does not load?
  8. The prayer icon over head will appear if i remove a item i am wearing and the icon will stay over my head even if i turn prayers off, and if i again remove a item i am wearing the icon will go away (when i have no prayers on) Why is it doing this?
  9. So Clear

    Prayers?

    Why does not the prayer icon appear over my head? The icon only appears if i take off a item i am wearing? It does the same with regular prayer book http://prntscr.com/du0f3c http://imgur.com/a/h8z4K What am i missing? Both are Appearence.java private void writeSkull(OutputStream stream) { stream.writeByte(player.hasSkull() ? player.getSkullId() : -1); stream.writeByte(player.getPrayer().getPrayerHeadIcon()); stream.writeByte(hidePlayer ? 1 : 0); }[/CODE] public void generateAppearenceData() { OutputStream stream = new OutputStream(); stream.writeByte(player.getPrayer().getPrayerHeadIcon()); // prayer icon // TODO Auto-generated method stub }[/CODE] Prayer.java public int getPrayerHeadIcon() { if (onPrayersCount == 0) return -1; int value = -1; if (usingPrayer(0, 16)) value += 8; if (usingPrayer(0, 17)) value += 3; else if (usingPrayer(0, 18)) value += 2; else if (usingPrayer(0, 19)) value += 1; else if (usingPrayer(0, 22)) value += 4; else if (usingPrayer(0, 23)) value += 6; else if (usingPrayer(0, 24)) value += 5; else if (usingPrayer(1, 6)) { value += 16; if (usingPrayer(1, 8)) value += 2; else if (usingPrayer(1, 7)) value += 3; else if (usingPrayer(1, 9)) value += 1; } else if (usingPrayer(1, 7)) value += 14; else if (usingPrayer(1, 8)) value += 15; else if (usingPrayer(1, 9)) value += 13; else if (usingPrayer(1, 17)) value += 20; else if (usingPrayer(1, 18)) value += 21; return value; } private boolean usePrayer(int prayerId) { if (prayerId < 0 || prayerId >= prayerLvls[getPrayerBook()].length) return false; if (player.getSkills().getLevelForXp(5) < prayerLvls[this .getPrayerBook()][prayerId]) { player.getPackets().sendGameMessage( "You need a prayer level of at least " + prayerLvls[getPrayerBook()][prayerId] + " to use this prayer."); return false; } if (getPrayerBook() == 0 && prayerId == 25 || prayerId == 27) { if (player.getSkills().getLevelForXp(Skills.DEFENCE) < 70) { player.getPackets() .sendGameMessage( "You need a defence level of at least 70 to use this prayer."); return false; } } else if (getPrayerBook() == 1) { if (player.getSkills().getLevelForXp(Skills.DEFENCE) < 30) { player.getPackets() .sendGameMessage( "You need a defence level of at least 30 to use this prayer."); return false; } } if (player.getPrayerDelay() >= Utils.currentTimeMillis()) { player.getPackets() .sendGameMessage( "You are currently injured and cannot use protection prayers!"); if (ancientcurses && prayerId >= 6 && prayerId <= 9) return false; else if (prayerId >= 16 && prayerId <= 19) return false; } if (!usingQuickPrayer) { if (onPrayers[getPrayerBook()][prayerId]) { onPrayers[getPrayerBook()][prayerId] = false; closePrayers(prayerId); onPrayersCount--; player.getAppearence().generateAppearenceData(); player.getPackets().sendSound(2663, 0, 1); return true; } } else { if (quickPrayers[getPrayerBook()][prayerId]) { quickPrayers[getPrayerBook()][prayerId] = false; player.getPackets().sendSound(2663, 0, 1); return true; } } boolean needAppearenceGenerate = false; if (getPrayerBook() == 0) { switch (prayerId) { case 0: case 5: case 13: closePrayers(closePrayers[getPrayerBook()][0], closePrayers[getPrayerBook()][10]); break; case 1: case 6: case 14: closePrayers(closePrayers[getPrayerBook()][1], closePrayers[getPrayerBook()][3], closePrayers[getPrayerBook()][4], closePrayers[getPrayerBook()][10]); break; case 2: case 7: case 15: closePrayers(closePrayers[getPrayerBook()][2], closePrayers[getPrayerBook()][3], closePrayers[getPrayerBook()][4], closePrayers[getPrayerBook()][10]); break; case 3: case 11: case 20: closePrayers(closePrayers[getPrayerBook()][1], closePrayers[getPrayerBook()][2], closePrayers[getPrayerBook()][3], closePrayers[getPrayerBook()][10]); break; case 4: case 12: case 21: closePrayers(closePrayers[getPrayerBook()][1], closePrayers[getPrayerBook()][2], closePrayers[getPrayerBook()][4], closePrayers[getPrayerBook()][10]); break; case 8: case 9: case 26: closePrayers(closePrayers[getPrayerBook()][5]); break; case 10: closePrayers(closePrayers[getPrayerBook()][6]); break; case 17: case 18: case 19: closePrayers(closePrayers[getPrayerBook()][7], closePrayers[getPrayerBook()][9]); needAppearenceGenerate = true; break; case 16: closePrayers(closePrayers[getPrayerBook()][8], closePrayers[getPrayerBook()][9]); needAppearenceGenerate = true; break; case 22: case 23: case 24: closePrayers(closePrayers[getPrayerBook()][7], closePrayers[getPrayerBook()][8], closePrayers[getPrayerBook()][9]); needAppearenceGenerate = true; break; case 25: case 27: case 28: case 29: closePrayers(closePrayers[getPrayerBook()][0], closePrayers[getPrayerBook()][1], closePrayers[getPrayerBook()][2], closePrayers[getPrayerBook()][3], closePrayers[getPrayerBook()][4], closePrayers[getPrayerBook()][10]); break; default: return false; } } else { switch (prayerId) { case 0: if (!usingQuickPrayer) { player.setNextAnimation(new Animation(12567)); player.setNextGraphics(new Graphics(2213)); } closePrayers(closePrayers[getPrayerBook()][0]); break; case 1: case 2: case 3: case 4: closePrayers(closePrayers[getPrayerBook()][5], closePrayers[getPrayerBook()][6]); break; case 5: if (!usingQuickPrayer) { player.setNextAnimation(new Animation(12589)); player.setNextGraphics(new Graphics(2266)); } closePrayers(closePrayers[getPrayerBook()][2]); break; case 7: case 8: case 9: case 17: case 18: closePrayers(closePrayers[getPrayerBook()][3]); needAppearenceGenerate = true; break; case 6: closePrayers(closePrayers[getPrayerBook()][4]); needAppearenceGenerate = true; break; case 10: case 11: case 12: case 13: case 14: case 15: case 16: closePrayers(closePrayers[getPrayerBook()][1], closePrayers[getPrayerBook()][6]); break; case 19: // stop changing this idiot. it doesnt stop walk on rs if (!usingQuickPrayer) { player.setNextAnimation(new Animation(12565)); player.setNextGraphics(new Graphics(2226)); } closePrayers(closePrayers[getPrayerBook()][1], closePrayers[getPrayerBook()][5], closePrayers[getPrayerBook()][6]); break; default: return false; } } if (!usingQuickPrayer) { onPrayers[getPrayerBook()][prayerId] = true; resetDrainPrayer(prayerId); onPrayersCount++; if (needAppearenceGenerate) player.getAppearence().generateAppearenceData(); } else { quickPrayers[getPrayerBook()][prayerId] = true; } player.getPackets().sendSound(2662, 0, 1); return true; }
×