Everything posted by Bobrocket
-
VPS?
Your bottleneck will be the CPU. If you look for a company called defensiveservers, they offer windows VPS cheaper. Their plan of the same price for Windows has 3 vCPU cores vs OVH's 2 vCPU cores, albeit with less RAM.
-
Law School orientation had me like
Congrats on the pussy + free sub bro! My day was pretty good, got my replacement pc parts so its no longer broken and I can work again, I still have homework to do before my classes start on the 7th and I have to get a bag and all too
-
Improving my combat method
Just a thought, wouldn't it be better to have the separate class so that way you don't recreate the filter everytime its needed?
-
Request: Zulrah script
Still no bot for it! Right now my priorities are finishing my fletching script and then getting a proper webwalker, and then I will begin on a KBD script
-
Paying Gp for someone to teach me how to do my homework.
It's the same, just changing the letter for the y intercept
-
Paying Gp for someone to teach me how to do my homework.
make a graph from -10 to +10 on both axes, work out all the y values from x=-10 to x=10 (they will be in the formula y=mx+c) and plot them where x=0 is the x intercept, where y=0 is the y intercept. the gradient will be the m value in the formula y=mx+c (how much up/down for each x increment)
-
Request: Zulrah script
Don't release our secrets! ;) Good luck on the release with your bot (provided you release it), I was going to work on one if I got my hands on an account that could do zulrah, however for now I think I will stick to another boss like kbd
-
my siggy
Wow bro did you RIP that from the game cache????
-
flame poem thread
Jams loves my hams When he sees them he like "Damn!" But he mad cuz they my hams Ain't no one fuck with my hams You looking at me and you think I'm coming Come on then and meet me at Woking I rhyme so hard you'll be choking To even try and spit my bars, you ain't no king! *drops mic*
-
Improving my combat method
To fix your implementation, replace .closest("Yak") with .closest(<filter>)
-
hacker contacted with me
Obvious answer, you brute force the mainframe! Duh, who doesn't know that?
-
Improving my combat method
What's the advantage for a custom filter over just an anonymous filter?
-
Omni Scripts - Request your trials here
Authed. Enjoy! Next time, follow the format please
-
No Gui popping up
What scripts are you using? Maybe they take some time to load?
-
Is there a questing script?
I was working on one, could always revive it and see how it works. Would be a long project however :p
-
fix dialogue api
Your onLoop() will be executing anywhere from 5-10 times per second (depending on your return value of course, should typically have it at around 215ms), so you can imagine it would be clicking 5-10 times per second since it will just continue the loop after clicking continue. A way to do this would be to see if there is a widget with the text "Please wait...", as this is the substitute when you click continue (right?), and if there is, you wait. Another way is to sleep until the widget changes/disappears.
-
Improved Interact
When I get on my PC, I'll post my interact method so you can get a feel for it EDIT Here it is. It's not the best example, it uses while loops (which you shouldn't typically use), and obviously you need external vars (biasDeviation and contextMenuDeviation) for tihs to work. public boolean interactWith(NPC e, String action) throws InterruptedException { if (e == null) { return false; } if (getMenuAPI().isOpen()) { getMouse().click(false); sleep(sleepDeviateRand(5, 15)); } //e.hover(); while (!getMouse().isOnCursor(e)) { e.hover(); /*sleep(sleepDeviateRand(1, 2));*/ } //hover String tooltip = getMenuAPI().getTooltip().toLowerCase(); String estimatedToolTip = (action + " " + e.getName()).toLowerCase(); if ((getFirstAction(e).equals(action) && getMouse().getOnCursorCount() == 1) || tooltip.startsWith(estimatedToolTip)) { getMouse().click(false); log("Left clicked!"); return true; } while (!getMenuAPI().isOpen()) { getMouse().click(true); sleep(sleepDeviateRand(5, 15)); } //open interface sleep(sleepDeviateRand(5, 15)); List<Option> options = getMenuAPI().getMenu(); int rectIndex = -1; for (int i = 0; i < options.size(); i++) { Option o = options.get(i); String s = o.action; if (s.equals(action)) { rectIndex = i; break; } } if (rectIndex == -1) { return false; } Rectangle optionRect = getMenuAPI().getOptionRectangle(rectIndex); int height = optionRect.height; int startX = optionRect.x; int startY = optionRect.y; int width = optionRect.width; int endX = startX + width; int endY = startY + height; int perc = 0; if (contextMenuDeviation > 10) { //We want to get the correct context values if (and only if) we have a suitable context menu dev. value (otherwise we just go for the entire object) float percentage = width / 100; //Keep as much precision as possible percentage *= contextMenuDeviation; perc = (int) percentage; } int centreX = (startX + (width / 2)); if (biasDeviation) { Point p = getMouse().getPosition(); int mouseX = (int) p.getX(); if (mouseX > centreX) { //Right side of the context menu startX = centreX; if (perc > 0) { endX = (startX + (perc / 2)); //We do (perc / 2) because in the calculation we account for the entire width } } else { //Left side of the context menu endX = centreX; if (perc > 0) { startX = (centreX - (perc / 2)); } } } else { startX += (perc / 2); endX -= (perc / 2); } //2px bounds incase the bounding boxes are fucked int randX = getRandom(startX + 1, endX - 1); int randY = getRandom(startY + 1, endY - 1); Area mouseArea = createArea(new Point(randX, randY), 2); //Create a 3x3 box while (!mouseArea.contains((int) getMouse().getPosition().getX(), (int) getMouse().getPosition().getY())) { getMouse().move(randX, randY); sleep(sleepDeviateRand(5, 15)); } //move to option sleep(sleepDeviateRand(5, 15)); while (getMenuAPI().isOpen()) { getMouse().click(false); sleep(sleepDeviateRand(5, 15)); } //click sleep(sleepDeviateRand(25, 45)); return true; }
-
New just started scripting
If you had the source for that, it would be running off of the OSBot 1 API which is old. There are good tutorials, snippets etc in the appropriate sections. Good luck!
-
AFK Script
Why were you standing in varrock again?
-
Omni Scripts - Request your trials here
Authed. Enjoy!
-
Omni Scripts - Request your trials here
Authed. Enjoy!
-
FREE Lumbridge Man/Woman Thiever (1-30 in hours)
I feel like my identity has been stolen :'( Good job though! As Apaec said, look into player height (remember that player height also fluctuates normally so add 3 to the player height at all times to negate that)
-
Runtime nullpointer while reading inventory contents
Are you null checking? Item i = getInventory().getItem("Tuna"); if (i != null /* other checks */) { //execute }
-
Random #10202103124
Holy fucking shit that's deep
-
[Coming soon] OmniFletch - AIO - 1-99 fletching in one sitting - task based
Hey guys! The script is finally ready for it's beta SDN debut, still looking for testers!