Jump to content

Optimum Scripts

Members
  • Posts

    39
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Optimum Scripts

  1. I'm pretty sure dynamic didn't mean anything unless i was using dragon axe using the special, changed it and still the same error. Thanks though for spotting that out
  2. My current progression bar isn't working correctly, it's shortening instead of widening gif: http://i.imgur.com/VV7g5JA.gifv here is the code: /** * Calculates the length of the progress bar * * @return - the progress bar length */ public int calculateLength() { int value = 0; int alphaFactor = 165; int baseXp = skills.getDynamic(Skill.WOODCUTTING); int currentXp = skills.getExperience(Skill.WOODCUTTING); int nextLevel = skills.getExperienceForLevel( skills.getStatic(Skill.WOODCUTTING) + 1 ); currentXp -= nextLevel; currentXp += baseXp; value = currentXp; return Math.abs(value) / alphaFactor; } i want it to increase in size fixed: /** * Calculates the length of the progress bar * * @return - the progress bar length */ public int calculateLength() { int value = 0; int alphaFactor = 165; int baseXp = skills.getExperienceForLevel( skills.getStatic(Skill.WOODCUTTING)); int currentXp = skills.getExperience(Skill.WOODCUTTING); int nextLevel = skills.getExperienceForLevel( skills.getStatic(Skill.WOODCUTTING) + 1 ); logger.debug("baseXp "+ baseXp); logger.debug("currentXp "+ currentXp); logger.debug("nextLevel "+ nextLevel); int levelXp = nextLevel - baseXp; logger.debug("level xp "+ levelXp); value = (nextLevel - currentXp) -(currentXp - baseXp); logger.debug("new value "+value); return Math.abs(value - levelXp) / alphaFactor; }
  3. Thanks for the welcome messages lads!
  4. Thanks Hi Sorry , are youtube links aloud?
  5. Alright guys, You can call me optimum. I love java and i hope that i can bring some pretty efficient scripts to you. Feel free to ask me any questions, thanks!
×
×
  • Create New...