Jump to content

hadesflames

Registered
  • Content Count

    83
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

3 Neutral

About hadesflames

  • Rank
    Botter

Recent Profile Visitors

1,320 profile views
  1. hadesflames

    Script taking too long to perform action

    You could also have a bunch of calls to the sleep/wait methods that you don't want being called in that place which delays your code from running.
  2. hadesflames

    Basic setup and scripting question

    The URL doesn't work, you have to use the provided doc package. I had the same problem with the package. Then I upgraded eclipse to luna (for unrelated reasons) and it magically fixed itself. I also went with a fresh upgrade deleting everything except my workspace folder. Dunno if the newer version, or the fact that I went to a clean install fixed the problem but I have documentation now.
  3. hadesflames

    Basic setup and scripting question

    You just write it exactly as it appears on RS. Check out TRiLeZ's scripting tutorial: https://tribot.org/forums/topic/30185-trilezs-scripting-tutorial/
  4. hadesflames

    Basic setup and scripting question

    It's compiling isn't it?
  5. hadesflames

    Code giving me a null exception with RSTile

    Okay, try changing your Variables class to this: package scripts;import org.tribot.api2007.types.RSArea;import org.tribot.api2007.types.RSGroundItem;import org.tribot.api2007.types.RSNPC;import org.tribot.api2007.types.RSTile;public class Variables {public static RSTile Tile1;public static RSTile Tile2;public static RSTile Tile3;public static void init(){ Tile1 = new RSTile(2755, 3683, 0); Tile2 = new RSTile(2755, 3691, 0); Tile3 = new RSTile(2756, 3602, 0);}}Then call Variables.init() at the top of your run method in your main script class. If this works it should prove that for some reason, RSTile doesn't initialize properly during the static block execution phase.
  6. hadesflames

    Bot always fails bank pin?

    He does say that, but it doesn't change the fact that the pin solver fails and locks you out of your bank. Idk if it's a problem with the solver itself regardless of your pin, or because it actually doesn't solve pins that start with a 0. But what I do know is in all of my RS3 scripts where I make my script solve my pin using Banking#inPin("XXXX") it works flawlessly every time.
  7. hadesflames

    Bot always fails bank pin?

    Does your pin happen to start with a 0? Just out of curiosity.
  8. RSPlayer players[] = Players.find("player_name"); if(players.length > 0 && players[0].getAnimation() == xxx){ // Player is performing animation with id xxx }
  9. hadesflames

    Code giving me a null exception with RSTile

    Okay, so what you're actually getting is an Exception in initializer error. The error is telling you that a null pointer was the cause of your error. This means your tiles in the Variables class are not being initialized properly. What's happening here is that the constructor for RSTile is throwing an exception, which is causing the tiles in the Variable class to remain null. The reason for which this is happening, I don't know. Try changing Variables.java to this: package scripts;import org.tribot.api2007.types.RSArea;import org.tribot.api2007.types.RSGroundItem;import org.tribot.api2007.types.RSNPC;import org.tribot.api2007.types.RSTile;public class Variables {public static final RSTile Tile1;public static final RSTile Tile2;public static final RSTile Tile3;static{ try{ Tile1 = new RSTile(2755, 3683, 0); }catch(Exception e){ General.println("Tile 1 failed."); e.printStackTrace(); } try{ Tile2 = new RSTile(2755, 3691, 0); }catch(Exception e){ General.println("Tile 2 failed."); e.printStackTrace(); } try{ Tile3 = new RSTile(2756, 3602, 0); }catch(Exception e){ General.println("Tile 3 failed."); e.printStackTrace(); }}}Run it, and show what you get. Alternatively, someone who knows tribot better than me can enlighten us on why the RSTile constructor is throwing an exception.
  10. hadesflames

    Code giving me a null exception with RSTile

    Can you post the full error you get?
  11. You're not paying for something that will get you ban. The ban is a risk you take each time you bot. You pay for the time and work the scripter puts into the script...
  12. hadesflames

    Interface help

    For me, unless it's in the documentation, then it's not guaranteed. Besides, it's better to have a needless null check than not have one when it is. If the null check really isn't needed, the JVM's JIT will get rid of it anyway.
  13. hadesflames

    Interface help

    I didn't know what Interfaces#isValid did, as the description in the documentation is terrible. The docs also does not indicate whether or not getAbsolutePosition is guaranteed not to return a null. When you don't get a guarantee from the documentation, you have to do a null check.
  14. hadesflames

    Interface help

    First off, you should change the first bit to this: if(P != null && P.length > 0){So, what you're saying is it always performs the action whether the interface is up or not right? In that case it means Interfaces#get is returning an interface rather than just null, so you must need to do some other check to determine if that interface is actually being displayed or not. For example: RSInterface interface1 = Interfaces.get(279, 5); if(interface1 == null || interface1.getAbsolutePosition() == null || !Screen.isInViewPort(interface1.getAbsolutePosition())) { //Challenge }
  15. hadesflames

    Bot Wont Start-Up

    Does it show any errors before closing?
×