Everything posted by Explv
- Creating classes..
-
Creating classes..
@Mushphang you are not passing the MethodProvider parameter to your Tester class, you are calling the empty constructor. This means that when you call logTest, a NullPointerException will be thrown as the ggg variable is null. You should initialize your Tester instance in onStart instead, and pass a reference to a MethodProvider instance. As your main class extends MethodProvider, you can pass "this" as the parameter.
-
Smithing sleep not working
Nothing wrong with using the inventory variable instead of the getInventory() method (which just returns inventory)
-
Project Catalyst
I believe there is a limit to how many times you can sell the same script privately. I think it's 3 but don't quote me on that
-
Make gui close when Bot stops
Override the onExit method, and hide the GUI?
-
Botting ruins the game. You are terrible people.
Let's hope you get another
-
Botting ruins the game. You are terrible people.
Wow, what a shit troll
-
getHealthPercent()
To get your player's health you should use getSkills().getDynamic(Skill.HITPOINTS) That returns the current hitpoint value. You can also get the players max hitpoints using getSkills().getStatic(Skill.HITPOINTS) You can then calculate health percent using them: getSkills().getDynamic(Skill.HITPOINTS) * 100 / getSkills().getStatic(Skill.HITPOINTS);
-
Interacting with an array of strings instead of a string
What do you mean only trade 1 account? It will always choose the closest of the three. You need to be way more specific
-
Interacting with an array of strings instead of a string
Does the one account that works not have any spaces in it's username?
-
Islam - Fighting Propaganda with Truth
Bring it on you fucking midget
-
Islam - Fighting Propaganda with Truth
You haven't even read the book of zammyran, idiot
-
Islam - Fighting Propaganda with Truth
@Saiyan can we ban @MLK now? Even though this is the spam section, it's a botting website and I don't think religious arguments / racism has any place here
-
Islam is the religion of peace!
But Jesus looked at them and said, with men it is impossible, but not with Explv; for with Explv all things are possible. Ringo 16:11
-
Islam is the religion of peace!
And we know that Explv causes everything to work together for the good of those who love Explv and are called according to his purpose for them. Jimmy 9:23 Have I not commanded you? Be strong and courageous. Do not be terrified; do not be discouraged, for Explv your God will be with you wherever you go. Bob 12:14
-
Dead NPC
Firstly a "Fire Giant" is an NPC, not an RS2Object. To avoid a while loop is simple, you just have to think of your script as one big loop. Store the fire giant you are currently attacking in a global variable, so you can check if it is dead and attack a new one if true: private NPC fireGiant; @Override public int onLoop() throws InterruptedException { if (fireGiant == null || !fireGiant.exists() || fireGiant.getHealthPercent() == 0) { attackFireGiant(); } return 200; } private void attackFireGiant() { fireGiant = getNpcs().closest(npc -> npc.getName().equals("Fire Giant") && getMap().canReach(npc) && npc.isAttackable()); if (fireGiant != null && fireGiant.interact("Attack")) { new ConditionalSleep(5000) { @Override public boolean condition() throws InterruptedException { return !fireGiant.isAttackable() || myPlayer().isInteracting(fireGiant); } }.sleep(); } }
-
Interacting with an array of strings instead of a string
-removed-
-
Interacting with an array of strings instead of a string
Do not do this. Are there spaces in the usernames?
-
Retrieve Logged in user's displayname
myPlayer().getName()
- Walker
-
API for SDN to pull sdnid and script name to DB?
You can get all the free script IDs from the add button URLs on the script page. You can't do this however for premium or VIP scripts. And no, there isn't anything in the API. Generally people get the IDs from the log when running the script, or from the script writer.
-
Re executing a walk event
Are you making a new event each time you want to walk? If not, then you should.
- Coding
-
Explv's AIO [13 skill AIO in 1 script]
Still needs fixing, been very busy lately sorry
-
how to make the cursor move in a circular way
Well this seems like a stupid thing to do, but whatever. Presumably you did maths in school, and i'm really unsure as to why you could not Google this yourself...... The equation to calculate the x and y circumference coordinates for a given origin, radius, & angle is: x = centreX + radius * cos(angle) y = centerY + radius * sin(angle) For the sin and cos functions in Java you can use Math.cos(angle) and Math.sin(angle) where the angle is in radians. (360 degrees is 2pi radians) So first to calculate the origin you would get the bounding box (Rectangle) of the Entity using: Rectangle rect = entity.getModel().getBoundingBox(entity.getGridX(), entity.getGridY(), entity.getZ()); And then get the center point with getCentreX() and getCenterY() You can choose a radius yourself, or use something like (width / 2) Once you have the components, you can then calculate the points on the circumference at x angle increments, e.g. 2pi / 360 increments, and move the mouse to each one.