Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/22/24 in all areas

  1. NEW! Added Grand Exchange auto-restocking! Perfect for goldfarms!! Features Coming Soon: - Deathwalk support - Salamander support - More ironman routes for barrows How to use Bot Manager or Script Queue: Script ID is 1181 Script Parameter is the saved profile name, e.g. hello123.txt
    1 point
  2. RS2Widget myWid = widgets.get(219, 1, 1); You are referring to this line right? Its ok to do because I am assigning an Object reference here. An object reference is just like a regular variable assignment (ex: int myint = 1;) except it deals with a class (ex: Rs2Widget, ArrayList, String) instead of a primitive (int, double, boolean). Remember, in Java an object reference can be assigned to null. Assuming the widgets.get() returns null, a null pointer will only occur if I attempt to do something with it without null checking, (Such as myWid.isVisible()). Thats why I still have your original null check just modified to use myWid. if(myWid != null && myWid.isVisible()) Watch this video to get a more indepth explanation of primitives vs references.
    1 point
  3. You can put multiple messages in there if you wanna do it like that, if (dialogues.selectOption("Take to sawmill: 26 x Mahogany logs", "Take to sawmill: 26 x Teak logs")) {} and you can just improve this piece of code like this: (widget ids can change once in a while if new things get added or UI changes) RS2Widget toSawmillWidget = getWidgets().getWidgetContainingText(219, "Take to sawmill:"); if (toSawmillWidget != null && toSawmillWidget.isVisible()) { // Either interact if(toSawmillWidget.interact()){ } //OR do a keyboard press, usually it's alway on 1 I assume? if(getKeyboard().typeKey('1')){ } }else{ useLogsOnButler(logName); }
    1 point
  4. hey,can i get a trail on this please
    1 point
  5. Will add more tomorrow when SDN has been updated with latest updates
    1 point
  6. Already answered above but yeah some items don't have any tracking/configs on them including toxic blowpipe, tridents, ring of recoils, dodgy necklaces, BUT with dodgy necklaces it's easier because the item disappears when it runs out so we can always assume a dodgy necklace has >0 charges. On my thiever bot I use dodgy necklaces and I simply ask how many necklaces to bring, usually 3 or so per trip.
    1 point
×
×
  • Create New...