Everything posted by Optimum Scripts
-
Progression Bar
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
-
Progression Bar
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; }
-
Optimum Chopper [My first Script] [Open Source]
Explanation?
-
Optimum Chopper [My first Script] [Open Source]
I was planning on right clicking players nearby , I've been analyzing my own behaviors ingame Setter and getter's aren't really necessary atm, i know it's bad practice not using proper encapsulation but hey, it's a start. and again, thanks a lot!
-
Optimum Chopper [My first Script] [Open Source]
Can't tell if serious or not :P
-
Optimum Chopper [My first Script] [Open Source]
Thanks everyone, The script is now funtional, banking, chopping. My next plan is to work on anti-ban, please give me ideas
-
Optimum Chopper [My first Script] [Open Source]
Thanks for this, about the id's, theres more than 1 bank booth object (one that's closed, one that's not even a bank but called bank booth) all within draynor, that's why i actually wanted to use the id's, about the npc's i will use the name Thanks for the Banks.DRAYNOR, clearly i didn't read the API :P Wouldn't isAnimating pickup walking as an animation ? Edit: https://github.com/Optimumrsps/OptimumChopper/blob/master/src/com/optimum/impl/Started.java#L35
-
Hello
Thanks for the welcome messages lads!
-
Optimum Chopper [My first Script] [Open Source]
Thanks everyone
-
Optimum Chopper [My first Script] [Open Source]
Thanks a lot
-
Optimum Chopper [My first Script] [Open Source]
I'm new to the 07 scripting scene, but i love java so why not make a script. This script will contain some of my own anti-ban systems, and i will hopefully create a really efficient bot that cuts willow logs, this is obviously work in progress Soruce Code: https://github.com/Optimumrsps/OptimumChopper If you have any information or questios for me, don't be afraid to ask/say
-
Hello
Thanks Hi Sorry , are youtube links aloud?
-
Hello
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!