-
Posts
70 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by SolaceCoding
-
-
if i like you, ill gib invite
-
1
-
-
private static final int[] XP = { 0, 83, 174, 276, 388, 512, 650, 801, 969, 1154, 1358, 1584, 1833, 2107, 2411, 2746, 3115, 3523, 3973, 4470, 5018, 5624, 6291, 7028, 7842, 8740, 9730, 10824, 12031, 13363, 14833, 16456, 18247, 20224, 22406, 24815, 27473, 30408, 33648, 37224, 41171, 45529, 50339, 55649, 61512, 67983, 75127, 83014, 91721, 101333, 111945, 123660, 136594, 150872, 166636, 184040, 203254, 224466, 247886, 273742, 302288, 333804, 368599, 407015, 449428, 496254, 547953, 605032, 668051, 737627, 814445, 899257, 992895, 1096278, 1210421, 1336443, 1475581, 1629200, 1798808, 1986068, 2192818, 2421087, 2673114, 2951373, 3258594, 3597792, 3972294, 4385776, 4842295, 5346332, 5902831, 6517253, 7195629, 7944614, 8771558, 9684577, 10692629, 11805606, 13034431 };
XP List ^
public int getPercentUntilLevel(Skill skill) { int getStatic = this.getSkills().getExperience(skill) - XP[this.getSkills().getStatic(skill) - 1]; int getDynamic = XP[this.getSkills().getStatic(skill)] - XP[this.getSkills().getStatic(skill) - 1]; int percentage = getStatic * 100 / getDynamic; return percentage > 0 ? percentage : 0; }
Calculation method ^
g.drawString("%tillstr " + getPercentUntilLevel(Skill.STRENGTH), 10, 20);
Implementation ^
Enjoy
public class XpDistance { private final Script script; @SuppressWarnings("unused") private final Bot b; public XpDistance(final Script script, final Bot b) { this.script = script; this.b = b; } private final int[] XP = {0, 83, 174, 276, 388, 512, 650, 801, 969, 1154, 1358, 1584, 1833, 2107, 2411, 2746, 3115, 3523, 3973, 4470, 5018, 5624, 6291, 7028, 7842, 8740, 9730, 10824, 12031, 13363, 14833, 16456, 18247, 20224, 22406, 24815, 27473, 30408, 33648, 37224, 41171, 45529, 50339, 55649, 61512, 67983, 75127, 83014, 91721, 101333, 111945, 123660, 136594, 150872, 166636, 184040, 203254, 224466, 247886, 273742, 302288, 333804, 368599, 407015, 449428, 496254, 547953, 605032, 668051, 737627, 814445, 899257, 992895, 1096278, 1210421, 1336443, 1475581, 1629200, 1798808, 1986068, 2192818, 2421087, 2673114, 2951373, 3258594, 3597792, 3972294, 4385776, 4842295, 5346332, 5902831, 6517253, 7195629, 7944614, 8771558, 9684577, 10692629, 11805606, 13034431}; public int getXpUntilLevel(Skill skill, int level) { int currentXp = this.script.skills.getExperience(skill); int xpUntilLevel = this.XP[level-1] - currentXp; return xpUntilLevel > 0 ? xpUntilLevel : 0; } public int getXpUntilNextLevel(Skill skill) { int currentXp = this.script.skills.getExperience(skill); int currentLevel = this.script.skills.getStatic(skill); return this.XP[currentLevel] - currentXp; } public int getXpPastCurrentLevel(Skill skill) { int currentXp = this.script.skills.getExperience(skill); int currentLevel = this.script.skills.getStatic(skill); return currentXp - this.XP[currentLevel-1]; } }
Edit: just noted "percentage"
Depends,
Percentage until next level from 0 xp?
or
Percentage until level from your current level's min XP?
Thanks guys, Appreciate the help.
-
1
-
-
Is there a method for getting the percentage to the next level, I'm shit at math too so yeah, appreciate helperino
-
Tbh, your never going to climb unless you take responsibility for your mistakes, you can't always blame your team, you was the jungler, jungler is one of the easiest roles to carry with. grow up and stop blaming other for your mistakes and misplays l0l
-
Ain't no yasuo getting near me when im kiting him with 0 minions to gap close #Mechanics
-
Ashe is good for 'lower level' games but I hate using her as she gets owned too fast (then again most adcs do)
No they don't not if you have good positioning and mechanics.
-
Ashe isn't viable in any elo, unless your playing against bronze retards that don't know how to focus, i main adc, and i would rather eat shit then consider playing her in ranked.
-
Grats, i have had a penta with nearly every ADC, but my first was Vayne.
-
Well, I do agree that they are sexy, but you also can make the SWING GUI also sexy by using custom substence to change the look and feel of it
Yes but why add an extra jar file or alot more code when you can use 2 file? haha but thank you for replying anyway.
-
These aren't Swing GUI's their JavaFX guis using CSS:P
-
In my opinion theses GUI's are beautiful, tell me if you agree or not?
-
1
-
-
Right click the report abuse button below the chatbox, and then click toggle player option
:
-
Right click the report abuse and click toggle and then it won't do that.
-
It just adds bulk to the API and the bot in the long run, we can't really be making methods for everything, then what are us scripters there for?
Ah true, thanks for pointing it out haha, OT: you got skype man?:P
-
I think something like this is best left to the discretion of the scripter
True... But i just thought it'd be useful.
-
Hi, i thought it would be useful to add some sort of Jobs/Nodes system what it would do is basically attacking a npc could be a Node like these basically:
public class ConsumeFood implements Node { public boolean activate() { return client.getSkills().getCurrentLevel(Skill.HITPOINTS) <= (client .getSkills().getLevel(Skill.HITPOINTS) * eatAt); } public void execute() throws InterruptedException { for (int food : foodIds) { if (client.getInventory().contains(food)) { if (selectInventoryOption(client.getInventory() .getSlotForId(food), "Eat")) { log("Eating food..."); } } } } }
-
When interacting with an npc the mouse moves accurately but really slow?
-
Oh my goodness i can't wait<3
-
How would i go about on checking xp on a certain skill i.e Hovering over fishing?
-
Nice one lads, keep up the great work.
-
He used dat mouse trail xD
-
Everytime i try to click an npc using selectEntityclickoption i get an error NULLPOINTER?:
spotObject = closestNPC(spotId) if (spotObject != null) { selectEntityOption(spotObject, "Lure") } else { log("Null pointer yet again") }
-
-
Why am i getting an error in this code, the selectEntityOption, i have had this error for hours i can't seem to fix no matter what i do.
I know its a nullpouinter error but the bankObg isn't null?-.- refer to 'bankObj = closestObject(bankId);
int walkToBank() { bankObj = closestObject(bankId); if (bankObj != null) { selectEntityOption(bankObj, "Bank", "Bank booth") sleep(1000 + gRandom(300, 50)); } else { log("FUCKING NULLPOINTER BASTARD DIE."); } if (client.getBank().isOpen()) state = State.BANK return 500 + gRandom(1000, 400) }
I also get this cunt.
Cannot cast object 'true' with class 'java.lang.Boolean' to class 'int'
Scripting on League of Legends
in Spam/Off Topic
Posted
Coming from someone that scripts runescape, makes sense.