Everything posted by Explv
-
Explv's OSBot Manager
Yes it should work on Centos 7
-
Explv's OSBot Manager
It has only been tested on Windows 10 and Linux. I will try and add some stuff that will make it compatible with older windows versions
- What's up you shit heads
-
Explv's OSBot Manager
Will take a look tonight
-
Stuck - script won't start
You don't need @ Override. It simply improves readability and provides some benefit with compiler checking. It is recommended but not required.
- Hi, im Captain Hoe
- Hi, im Captain Hoe
-
ArrayList to Area
If you just want to create a rectangular area then you should use the: Area(int x1, int y1, int x2, int y2) Constructs a rectangular area using x and y coordinates from two separate positions. Or Area(Position southWest, Position northEast) Constructs a rectangular area using two positions Constructors.
-
ArrayList to Area
List<Position> posList = new ArrayList<>(); Position[] positions = posList.toArray(new Position[posList.size()]); Or List<Position> posList = new ArrayList<>(); Position[] positions = posList.stream().toArray(Position[]::new);
-
inventory.GetAmount("Coins") bugging occasionally
Ok looks fine as far as I can see
-
inventory.GetAmount("Coins") bugging occasionally
I meant where in your code are you calling your getState() method
-
inventory.GetAmount("Coins") bugging occasionally
Where are you calling this method? Just to make sure you aren't doing something incorrect?If you aren't then you should file a bug report
-
Which car should i buy?
rx8 is more fun to drive imo, but pretty small inside. BMW looks nicer If i had to choose i'd pick the bmw
-
Explv's AIO [13 skill AIO in 1 script]
Thanks, I'll check it out now
-
Explv's OSBot Manager
Issue has been fixed, was related to ) included in the script name
-
Explv's OSBot Manager
-1 is the default option, when it is set to -1 the -mem parameter isn't set by the application. I will change -1 to say something like "default" to make this less confusing
-
Explv's OSBot Manager
If you have configs from the first version unfortunately it is likely you will have to remake them because I changed the way the serialisation works when I changed to use a table view.
-
Explv's OSBot Manager
Yes Either run it from the terminal: java -jar /path/to/dir/explv_osbot_manager*.jar Or setup the .jar file to open with Java on double click, by finding instructions online for your distribution, for example: http://askubuntu.com/questions/192914/how-run-a-jar-file-with-a-double-click
-
Explv's OSBot Manager
Fixed, sorry about the inconvenience UPDATED 2016-10-24: - Fixed saving and loading
-
Explv's OSBot Manager
Ah shit sorry, I must have broken it with the latest update. I will fix it tonight, and update the thread when it's fixed. Thanks
-
Calling an Instance in onLoop
I recommend you follow some Java tutorials before trying to write scripts: https://www.tutorialspoint.com/java/java_object_classes.htm
-
Hit splats API?
This is a possible alternative, although it isn't 5xp per 1 damage, and it depends on attack type and method: http://2007.runescape.wikia.com/wiki/Combat_Options
-
Hit splats API?
You could try: NPC npc = npcs.closest("Cow"); // Can be a Player instead int[] splatDamage = npc.accessor.getSplatDamage(); int[] splatTimes = npc.accessor.getSplatTime();
-
Hit splats API?
I'm not sure if there are hitsplats in the API anymore, but to work out the damage to your player you could just do: private int previousHealth; @ Override public final void onStart() { previousHealth = getHealth(); } @ Override public final int onLoop() throws InterruptedException { final int currentHealth = getHealth(); if (currentHealth < previousHealth) { final int damage = previousHealth - currentHealth; // Calculate the damage previousHealth = currentHealth; } return random(100, 150); } private int getHealth() { return getSkills().getDynamic(Skill.HITPOINTS); } Or if you just want to know the % of hp remaining, for example to know when to eat, you can do: public final int getHealthPercent() { return (getSkills().getDynamic(Skill.HITPOINTS) * 100) / getSkills().getStatic(Skill.HITPOINTS); }
-
Our loop of life
So you think you are immortal eh? We'll see about that :ninja: