Everything posted by HexMurder
-
Clean sources?
I'm not talking about a source for an anti-ban. Just a source. Any good one.
-
Clean sources?
I appreciate all the comments, and thanks for the information about anti-ban. But, I'm still looking for a well written source to study here ?
-
Clean sources?
Right, I get the whole idea of anti ban. I just want to see how people already implement it into their code.
-
Clean sources?
I'm a fairly experienced software developer and recently decided I wanted to learn to write bots. I have written a few very basic bots just to get the hang of it. I.e. power chopper, g.e. looter, a fishing bot that gets its own wood and cooks the fish. These are all useful of course, but they are very basic. And the code I have written for them is very procedural, and i am sure they would be detected very easily. I'm just looking for some basic, clean sources, that implement some anti ban methods that i can study. I have looked at a bunch of things in the snippet section but most of them are exactly that. Snippets. I'm by no means looking to copy / paste a source, I just want to learn from someone who already knows what they are doing. Also, at what point would it be acceptable to apply for scripter rank? Thanks in advance guys.
-
Get price per item?
I see.. Thanks. Is there a way to look up items in the api already? i'm currently using the grandExchange.buyItem method, which always results in the item being bought, and I just want to search it, and then query the price.
-
Get price per item?
Trying to get the price per item of the item I am currently looking at in the GE. i.e. the bot looks up a law rune and the value is "367" by default, so i want to retrieve the "367". I tried using the getOfferPrice method but it always returns 0. my code is below. Thanks in advance. grandExchange563,"Law rune", grandExchange.getOfferPrice(), 1; also tried grandExchange563,"Law rune", getGrandExchange.getOfferPrice(), 1;
-
Quick question(s)
3 questions i believe are fairly simple. First question: (Main reason for posting) How do i randomize my getWalking().webWalk? Every time my bot runs back from the bank to my "Area" that i have defined, he always stands on the same block upon reaching his destination. So how would i randomize this so that he always walks somewhere withing my defined area, but not to the same point every time? Second question being: when i level up, how do i get the bot to click continue instead of ignoring it and continuing it's grind? Third: Why is my onMessage not working? Tried several things and can't seem to get it to register at all. public void onMessage(String message) { if(message.contains("You get some willow logs.")) { itemsGained++; } }
-
Safe to bot and play legit?
would that make any difference if i use the same ip on all 4 accounts?
-
Safe to bot and play legit?
pls read op.
-
Safe to bot and play legit?
What's a safe way to trade the gold i gather from my bots to my main? (using same ip for all)
-
Safe to bot and play legit?
I'm sure this has been answered a hundred times over but i couldn't find the answer. (probably using wrong keywords) but anyways, i was just wondering if it was safe to have a bot or two running at the same time that i am playing legit on my main account. Same ip. So far i have been either strictly botting or strictly playing on my main. Any insight would be nice. Thanks guys.
-
Script causing massive lag
Thanks. I will look into using states. Not sure what they are but i will find out soon enough i'm sure. How would you recommend i make this less intensive right now? without using states? adding something like this? if(myPlayer().isAnimating()) { sleep(random(500, 4500)); }
-
Explv's Scripting 101
Can you go over (idk what they are technically called, but i'm gonna call them mouse events) mouse events? Like hovering the mouse over a skill to check the xp, or moving it off screen, etc?
-
Script causing massive lag
Thanks man. Do you know of any well written sources i could take a look at by chance? been looking around and most of them are very very messy. (Not to say that mine is clean lol). I'm just trying to get a feel for how the api works, and usually reading others code is a quick way to pick it up.
-
Script causing massive lag
the return of that function is a sleep? I had no clue. Thanks..
-
Script causing massive lag
i have no idea. Not sure how i would check. It seems that adding sleep(100); fixed it. Not sure why it was necessary. is this normal behavior? public final int onLoop() throws InterruptedException { if(inventory.isFull()) { bank(); } else { chop(); sleep(100); //this is what fixed it } return 0; } [/CODE]
-
Script causing massive lag
I am brand new to java / scripting. I have a background in C# and C++ so it hasn't been difficult for me to pick up thus far. (been playing around for about 2 hours now). But i just finished my first semi useful script that just chops willows, and banks them. It does it's purpose how i intended it to. However, when i am actually cutting the trees my CPU usage jumps from 5% to 60+%. and when i stop to go bank it jumps back down to 5% again. Maybe it's my sleep methods or something? can anyone give me some insight on my nooby mistake? lol thanks. package Woodcutter; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.event.WebWalkEvent; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "HexMurder", name = "A Test Script", info = "Null", version = 0.1, logo = "") public final class WC_Script extends Script { final Area TREE_WILLOW_DRAYNOR = new Area(3081, 3223, 3092, 3239); @Override public final void onStart() { log("WC test bot launhced."); } @Override public final void onExit() { log("WC test bot closed."); } @Override public final int onLoop() throws InterruptedException { if(inventory.isFull()) { bank(); } else { chop(); } return 0; } public void chop() throws InterruptedException { if(TREE_WILLOW_DRAYNOR.contains(myPosition())) { Entity tree = getObjects().closest("Willow"); if(tree != null) { if(tree.isVisible()) { if(!myPlayer().isAnimating() && !myPlayer().isMoving()) { tree.interact("Chop down"); sleep(random(800, 1600)); } } else { getWalking().webWalk(tree.getPosition()); } } } else { getWalking().webWalk(TREE_WILLOW_DRAYNOR); } } public void bank() throws InterruptedException { if(Banks.DRAYNOR.contains(myPosition())) { Entity bankbooth = getObjects().closest("Bank booth"); if(bankbooth != null) { bankbooth.interact("Bank"); sleep(random(1000, 2000)); } if(getBank().isOpen()) { bank.depositAll(1519); sleep(random(900, 1800)); } } else { getWalking().webWalk(Banks.DRAYNOR); } } } [/CODE]
-
Explv's Scripting 101
Great tutorial. I have a background in C# and C++ so this was very easy to pick up with your guide. Keep it up man! would love to see you finish this thing.