Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold

Red_Spark

Registered
  • Content Count

    377
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Red_Spark

  1. Wrong section <_<.This is Tutorial Requests. You want to go to Script Requests ->https://tribot.org/forums/forum/38-requests/
  2. Use Clicking class, it does all the randomness for you in a human like pattern
  3. Need a bit more info ^^.Errors or anything?The main cause of this could be bad java install.You JVM is fucking up. That could be a rendering issue too.Does tribot work fine without a script running.How are other games running.Try running the bot on a virtual machine to see if something on your system that is causing the issue.
  4. No, its the tribot.jar in your .tribot/dependecies If on windows it's ->C:\Users\"User_Name"\AppData\Roaming\.tribot\dependancies You can use %appdata% in the start->search bar to open the Roaming folder .And navigate to the .tribot folder(dot->.tribot)
  5. Red_Spark

    Tips to start

    Ye it's fine.I general VPS ends up being cheaper to run than your own machine(Electricity and hardware cost)
  6. https://discord.gg/meGjpjm Dedicated to Tribot
  7. Very useful and works great. Just need to replace Filter<RSItem> with Predicate<RSItem>, since Filter is Deprecated
  8. @Laniax this is awesome.Makes the code a lot clearer and easier to write.
  9. Interface wise i was always looking for a nicer solution thank for that.What i was doing is having a database interfaces that I use for all my bots.So if something changed i would only need to change one value to fix it for all my scripts :).With your idea i can add some self correcting code to scan for the interface via text/action... and update the database value. The while loop is not infinite.It breaks out if the bot miss-clicks 3-5 times.But adding the timeout as a fail-safe is not a bad idea.I'll do that from now on
  10. A small snippet that selects the Item or Noted option in bank. If notedOn = true ,it will enable Noted in bank notedOn = false ,it will enable Item in bank UPDATE: Added a fail safe for the click loop(times out after 10 sec) Now scanning for the interface via Text(that method should be moved outside and only called one pet bot run or when the interface needs to be updated) Using Entity Selector by laniax please download it and import it. Topic: GitRepo: https://github.com/Laniax/Entity-Selector public static boolean setNoted(boolean notedOn) { //Getting Note button state RSVarBit varBit = RSVarBit.get(3958); if (varBit == null) { General.println("VarBit null for Item/Noted"); return false; } //Setting noted button to on/off if (varBit.getValue() == (notedOn ? 1 : 0)) { //It's already set to on/off return true; } //Getting the Item/Note button interface RSInterface button = Entities.find(InterfaceEntity::new) .inMaster(12) .textEquals(notedOn ? "Note" : "Item") .getFirstResult(); if (button == null) { General.println("Item/Note button interface is null"); return false; } //Trying to click on the Item/Note button int buttonClickAttempts = 0; long loopFailSafe = Timing.currentTimeMillis(); while (!Clicking.click(button)) { buttonClickAttempts++; General.sleep(500, 1000); if (buttonClickAttempts >= General.random(3, 5)) { General.println("Too many failed attempts to click Item/Note button"); return false; } if(Timing.timeFromMark(loopFailSafe) > 10000){ General.println("Method timed out after 10+sec"); return false; } } //Fail safe check if we really set Item/Note return Timing.waitCondition(() -> varBit.getValue() == (notedOn ? 1 : 0), General.random(2000, 3000)); } Happy Coding!
  11. Red_Spark

    Tips to start

    Tip 1: Do not use your own computer to run the farm, rent a VPS. Tip 2: People will not share their methods, because they are competing with you :). Tip 3: Having private scripts that you are the only user will reduce ban rates. Tip 4: Take anything anyone says about ban rates and "best ways to do it" with a grain of salt.People that think they know everything tend to know the least ^^. Tip 5: Have fun. Starting is always difficult and you will get banned.
  12. Login bot was fixed for me this update . And TriBot is working on their own CLI.I don't think you can downgrade you version You can try using this
  13. Can you expand on what's the problem?I have been using it and it seems to work fine
  14. That's pretty much what i'm doing :).This also lets me use tribots contains method to see if i'm in the area.I just find it off that the api has a method for translating X and Y but not Z =[. PS:I never assume anything.The weirdest shit happens XD.
  15. Not really sure what #toLocalTile() does.The doc doesn't really say. I'll explain by example: Lets say i have polygon area RSArea area = new RSArea(new RSTile[]{new RSTile(3000, 3000, 0), new RSTile(3050, 3000, 0), new RSTile(3050, 3050, 0),new RSTile(3080, 3000, 0)}) So lets say the area maps the 1st(ground) floor of a building.What I want to do is translate the area for the second floor.It is exactly the same but the plane(z) is 1 instead of 0. What is an easy way to do it?The way i did it now is i have a RSTile[] array that stores the polygon corners and I manually loop trough the array and make a new array with the z being 1.Than I paste the polygon into a new RSArea. public static final RSTile[] MILL_AREA_POLYGONS_POINTS = new RSTile[]{new RSTile(3166,3303), new RSTile(3163,3306), new RSTile(3163, 3307), new RSTile(3166, 3311), new RSTile(3167,3311), new RSTile(3171, 3307), new RSTile(3171, 3306), new RSTile(3167,3302)}; public static final RSArea MILL_AREA_0 = new RSArea(MILL_AREA_POLYGONS_POINTS); public static final RSArea MILL_AREA_1 = new RSArea(translateZ(MILL_AREA_POLYGONS_POINTS, 1)); public static final RSArea MILL_AREA_2 = new RSArea(translateZ(MILL_AREA_POLYGONS_POINTS, 2)); public static RSTile[] translateZ(RSTile[] tiles, int z){ RSTile[] translatedTiles = new RSTile[tiles.length+1]; for(int i = 0; i < tiles.length; i++){ translatedTiles[i] = translateZ(tiles[i], z); } return translatedTiles; } public static RSTile translateZ(RSTile tile, int z){ return new RSTile(tile.getX(), tile.getY(), z); }
  16. To be honest I'm at a loss.Only think i can think of now is to re-download tribe since we had an update.Also can you get as far as the log in for tribot?If so you could try to run it in dev mode
  17. @patoon17 Whats the deal here?I see your saying he scammed you for 22m?Do you have proof?Why did you not leave a negative trade feedback, harassing members is not how you should deal with scam issues. @YoHoJo What's the protocol for dealing with this?Can @OG Sticks raise a feedback dispute if its only on his forum threads?
  18. You could try and raise a feedback dispute -> https://tribot.org/forums/forum/146-feedback-dispute/ Did you do any trade/service with him?Why is he leaving those negative comments?Maybe you could talk it out like adults?
  19. Try using java -jar TRiBot_Loader.jar Also as far as i know Tribot will not support java 11.If that is the only option tribot is seeing than you paths are set up wrong. A HowTo switch between java versions.(you want to use version 8 ) https://tecadmin.net/switch-between-java-versions-on-ubuntu/
  20. what command do u use to run the -jar file? could you also run echo $CLASSPATH and show me the results
  21. Any way to translate z plane for RSTile or RSArea? Example:I have a house mapped out and the other floors are the came coordinates just z plane +1 or -1.Any easy way to translate it? I know i could loop trough the RSArea and manually redo each tile with a different z plane, but it feels like there should be a method for this, same as for the x and y coordinates :).
  22. Awesome, the anti-ban part was the main thing i was interested in.Thanks for the quick response.
  23. Could anyone confirm how RSCharacter.adjustCameraTo() works?Does it randomise the tile it adjust to.Does it adjust height and zoom?The doc is not very clear on this =[.
×
×
  • Create New...