Jump to content

Articron

Trade With Caution
  • Posts

    183
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Articron

  1. As far as I know, it includes having several scripts, all atleast decent of quality, and keeping to produce those while you keep your already released ones updated. Apart from that, pretty sure you need to have the community love your scripts lol Edit: Code design is apparently also a very important factor.
  2. Articron

    BETA v1.7.4

    Good thing that the getPassword() issue is resolved, this could've costed many people their accounts.
  3. I see what you did there :p
  4. I found this offensive towards script writers. We are not even expected to update our scripts (when they are free). You are basically receiving a present from us, and instead of being thankfull, you get provoked and start crying about how it's not a bigger present. Ungratefull to the max.
  5. your rock id changes, make a constant check on what your player is interacting with.
  6. This is a great step forward for OSBOT. Great job guys, and a special thanks to Brainfree.
  7. As the Area's get broken through updates occasionally, I think this topic will have a point nevertheless ;)
  8. import org.osbot.script.MethodProvider; import org.osbot.script.Script; import org.osbot.script.rs2.Client; import org.osbot.script.rs2.map.Position; public class Area { private int z; private int maxX; private int maxY; private int minX; private int minY; Script script; public Area(int x1, int y1, int x2, int y2,int z) { this.z = z; maxX = (x1 > x2? x1 : x2); maxY = (y2 > y1? y2 : y2); minX = (x1 < x2? x1 : x2); minY = (y2 < y1? y2 : y1); } public boolean isInArea(Client c) { if (c.getMyPlayer().getX() >= minX && c.getMyPlayer().getX() <= maxX && c.getMyPlayer().getY() <= maxY && c.getMyPlayer().getY() >= minY) return true; else return false; } public void walktoZone() throws InterruptedException { int xDeficit = maxX - minX; int yDeficit = maxY - minX; Position toWalk = new Position(maxX - (MethodProvider.random(0,xDeficit)), maxY - (MethodProvider.random(0,yDeficit)), z); script.walkMiniMap(toWalk); } }
  9. What's the behaviour of this thread based random scripts? Where does the main script pick up again after the event is solved? Will it redo the method it was doing or?
  10. I agree, for the relatively small community we are right now, there are way too many scammers.
  11. Articron

    BETA v1.4.1

    Is withdrawing items fixed in this revision?
  12. I could make a Theiving script if I had a theiving level higher then 1 on my account, lol.
  13. A good merchable item currently is rune knives. Buy for 3K a peice, sell them at 3.5K each.
  14. Yeah I guess that's a cheaphax for it, it's a model that isn't yet added into OsBot.
  15. I've tried playing around with the Position class, but I can't seem to make my script click a certain tile (based on the game coordinates). Any help?
  16. Apparently opening the bank is missing/broken in the current OsBot API, so I just wanted to share you guys the method. It's HIGHLY likely you will find simliar things in released scripts. final int[] BANK_IDS = { 1604, 2213 }; /** * Opens the nearby bank * @throws InterruptedException */ private void openBank() throws InterruptedException { if (!client.getBank().isOpen()) { for (int bank : BANK_IDS) { if (canReach(script.closestObject(bank)) && closestObject(bank) != null) { selectEntityOption(closestObject(bank), "Bank", "Bank booth"); } else { //wandelenNaarBank(); log("Can't find the bank!"); } } } else log("Bank is already open"); }
  17. Ah, Wiz has explained my problem very well! Thanks bro ;)
  18. Oh, hahaha, I'm sorry, I should've been more clear in my initial post. Anyway, what I'm trying to explain is the following: Snippet from let's say Altar.java: Combat combat; public int onLoop() { try { useItemsonAltar(); activateAltar(); combat.killCow(); } catch (InterruptedException e) { log("nope werkt ni!"); e.printStackTrace(); } return 1; } The method it's refering to in Combat.java: public void killCow() throws InterruptedException { sleep(3000); unicow = closestNPC(UNICOW_ID); if (unicow != null && !unicow.isUnderAttack()) unicow.interact("Attack",true,true); while (client.getClient().getMyPlayer().isUnderAttack()) { log("currently under attack: " + Boolean.toString(client.getClient().getMyPlayer().isUnderAttack())); sleep(5000); } lootHorns(); } It seems that it has trouble trying to call that method from another class, even though I tried a fake constructor, or anything amongst the sorts. My IDE doesn't show up any errors, let alone that I think I made a mistake, OsBot itself just won't execute the killCow method, and will skip it to repeat the onLoop().
  19. Hi, I'm currently making a combat script. I have divided this script into multiple classes, being Combat.java, Walking.java, Main.java, And various other classes. When I create an object from another class, to use it's methods and everything that comes with it, Osbot just gives me the "error with script executor" error thing. Any help?
×
×
  • Create New...