• Log in or sign up for an account here: https://www.sythe.org/login

Ruski's Strangeplant anti-random

boboboy7

Member
Joined
Feb 12, 2009
Sythe Gold
0
Messages
45
anyone know where can i get Strangeplant anti-random? please help thx ^_^
 
Stop making new topics for everything.
 
I take no credit for this...

import com.speljohan.rsbot.script.Random;
import com.speljohan.rsbot.script.wrappers.RSNPC;
import com.speljohan.rsbot.script.wrappers.RSTile;
import java.awt.Point;
import java.util.List;


public class RuskisStrangePlant extends Random {

@Override
public double getVersion() {
return 1.0;
}

@Override
public String getAuthor() {
return "Ruski";
}

@Override
public String getName() {
return "RuskisStrangePlant";
}

@Override
public boolean activateCondition() {
RSNPC strangePlant = getNearestNPCByID(STRANGE_PLANT_ID);
if(strangePlant != null) {
RSTile strangePlantTile = strangePlant.getLocation();
if(distanceTo(strangePlantTile) == 1) {
currentPlant = strangePlant;
return true;
}
}
return false;
}

@Override
public int loop() {
if(currentPlant != null) {
if(!currentPlant.isValid() || getNearestNPCByID(STRANGE_PLANT_ID) == null) {
return -1;
}
if(currentPlant.getAnimation() == 348) {
return random(510, 1310);
}
if(currentPlant.getAnimation() == 350) {
return random(410, 810);
}
if(currentPlant.getAnimation() <= 0 && currentPlant.isValid()) {
clickNPC(currentPlant, "Pick");
return random(6100, 11000);
}
}
return -1;
}

private boolean clickNPC(RSNPC npc, String action) {
if (npc == null) {
return false;
}
RSTile tile = npc.getLocation();
if (!tile.isValid()) {
return false;
}

try {
Point screenLoc = npc.getScreenLocation();
if (distanceTo(tile) > 6 || !pointOnScreen(screenLoc)) {
turnToTile(tile);
}
if (distanceTo(tile) > 20) {
walkTileMM(tile);
return false;
}
for (int i = 0; i < 12; i++) {
screenLoc = npc.getScreenLocation();
if (!npc.isValid() || !pointOnScreen(screenLoc)) {
return false;
}
moveMouse(screenLoc, -15, 15);
if (getMenuItems().get(0).toLowerCase().contains(npc.getName().toLowerCase())) {
break;
}
if (getMouseLocation().equals(screenLoc)) {
break;
}
}
List<String> menuItems = getMenuItems();
if (menuItems.isEmpty()) {
return false;
}
for (int a = 0; a < menuItems.size(); a++) {
if (menuItems.get(a).toLowerCase().contains(npc.getName().toLowerCase())) {
if (menuItems.get(0).toLowerCase().contains(action.toLowerCase())) {
clickMouse(true);
return true;
} else {
clickMouse(false);
return atMenu(action);
}
}
}
} catch (Exception e) {
System.out.print("clickNPC(RSNPC, String) error: " + e);
return false;
}
return false;
}

private int ALIVE_ANIM = 348;
private int DEAD_ANIM = 350;
private int STRANGE_PLANT_ID = 407;
private RSNPC currentPlant;
}

save as RuskisStrangePlant.java
 
thx but i dont know what to do with all this? i have to save it in a text document right? then name it RuskisStrangePlant.java then put it into randoms folder after that? done?
 
thx but i dont know what to do with all this? i have to save it in a text document right? then name it RuskisStrangePlant.java then put it into randoms folder after that? done?
 
can someone help me with the codes? how can i make it into a java class file?
 
Save as RuskisStrangePlant.java in the randoms folder, noobs shouldn't be aloud to bot :D.
 
i just did.....nothing changed...i saved it as a .java but its still a text document...
 
Don't you have to run the compiler? :P
 
ok you rude ppl who called me idiot and noobs i got working thank you and hope your character get banned
 
Why call him an idiot you idiot? What is the strangeplant btw?

Its a members only random event.
Basically a plant grows out of the grown, you pick it to get a strange fruit (eating it heals run energy).
If you don't pick it, it becomes an aggressive random that can POISON, so if your poisoned and anti-combat kicks in, even though you run away you will still die.
 
Runescape Gamblingrunescape gambling
Back
Top