Jump to content

Safee

Member
  • Content count

    3
  • Joined

  • Last visited

  1. Safee

    PI Client Error

    bumpppppppppppppp
  2. Safee

    PI Client Error

    When I activate orbs on the client I'm using it crashes. I get this error [CODE]Exception in thread "Thread-3" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at Client.loadAllOrbs(Client.java:11851) at Client.drawMinimap(Client.java:9580) at Client.drawGameScreen(Client.java:8029) at Client.processDrawing(Client.java:8810) at RSApplet.run(RSApplet.java:192) at Client.run(Client.java:4593) at java.lang.Thread.run(Unknown Source)[/CODE] Here is line 11851 in Client.java [CODE]int currentLevel = Integer.parseInt(currentStats), maxLevel = Integer.parseInt(maxStats), level = (int) (((double) currentLevel / (double) maxLevel) * 100D);[/CODE] If you guys have any ideas on what to fix in this line please help :) OH and this is my full loadorbs method: [CODE]private void loadAllOrbs(int xOffset) { drawSpecialOrb(); int[] spriteID = { isPoisoned && hpHover ? 8 : 7, prayHover ? 8 : 7, runHover ? 8 : 7, sumActive && sumHover ? 8 : 7 }, coloredOrbSprite = { 0, clickedQuickPrayers ? 2 : 1, runClicked ? 4 : 3, sumActive ? 6 : 5 }, orbSprite = { 9, 10, (runClicked ? 12 : 11), 13 }; String cEnergy = RSInterface.interfaceCache[149].message.replaceAll("%", ""); String hp = RSInterface.interfaceCache[4016].message.replaceAll("%", ""); int currentHP = hp.length() > 0 ? Integer.parseInt(hp) : 0, currentEnergy = cEnergy.length() > 0 ? Integer.parseInt(cEnergy) : 0; for (int i = 0; i < 3; i++) { String currentStats = RSInterface.interfaceCache[currentInterface[i]].message.replaceAll("%", ""), maxStats = RSInterface.interfaceCache[maximumInterface[i]].message.replaceAll("%", ""); int currentLevel = Integer.parseInt(currentStats), maxLevel = Integer.parseInt(maxStats), level = (int) (((double) currentLevel / (double) maxLevel) * 100D); cacheSprite[spriteID[i]].drawSprite(orbX[i] + xOffset, orbY[i]); cacheSprite[coloredOrbSprite[i]].drawSprite(coloredOrbX[i] + xOffset, coloredOrbY[i]); double percent = (i == 2 ? runEnergy ? currentEnergy / 100D : 100 : level / 100D), fillHp = 26 * percent, fillPrayer = 26 * percent, fillRun = 26 * percent; double[] fill = { fillHp, fillPrayer, fillRun}; int depleteFill = 26 - (int) fill[i]; cacheSprite[14].myHeight = depleteFill; try { cacheSprite[14].drawSprite(coloredOrbX[i] + xOffset, coloredOrbY[i]); } catch (Exception e) { } cacheSprite[orbSprite[i]].drawSprite(orbIconX[i] + xOffset, orbIconY[i]); smallText.method382(getOrbTextColor(i == 2 ? runEnergy ? currentEnergy : 100 : level), orbTextX[i] + xOffset, "" + (i == 2 ? runEnergy ? cEnergy : 100 : i == 0 && newDamage ? currentHP * 10 : RSInterface.interfaceCache[currentInterface[i]].message.replaceAll("%", "")), orbTextY[i], true); } if(frameMode == ScreenMode.FIXED) { cacheSprite[worldHover ? 54 : 53].drawSprite(202, 20); } else { cacheSprite[worldHover ? 52 : 51].drawSprite(frameWidth - 118, 154); } }[/CODE]
  3. Safee

    Pi models help

    Ok so the ground/inventory models work great, although when i wield the sword, the sword doesnt seem to move with the animation i have it set for. any ideas? I cant post a link to picture, but the sword stays at the side of my character while my hands are as if i was holding a 2h(the correct animation)
×