Welcome to TRiBot Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

tri335go

Registered
  • Content count

    16
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

0 Neutral

About tri335go

  • Rank
    New Botter

Recent Profile Visitors

122 profile views
  1. thank u very much. also do u know which api i could use to detect if an NPC is in a particular position that i'd like to check if he's in?
  2. thank you everyone, problem has been solved.
  3. hi, i want to check what an enemy is wearing/has equipped that is nearby/getall, what api would i use to do this?
  4. hi, i am trying to use a games necklace to teleport. first, i click rub on the games necklace, then the text opens up asking where I want to teleport to. i thought maybe npcchat would work but it didn't. what is this chat api called for that of the games necklace so I can select the option I want to teleport to? thanks
  5. thats beautiful :,)
  6. hi, I'm trying to make a script where I walk through the wilderness and if an enemy is near I tele. The problem is that when I do a blindwalk through the wilderness to where I'm trying to go, it doesn't read my method that says to teleport if it sees a player. how do i make it so that it checks for enemies during the blindwalk as an else statement, or how should i go about it? thanks
  7. thank you for this i have read about 20 times will probably read about 20 more lol. ok thank you I didn't realize I still needed sleep with general.random there for some reason I figured it would take its place, and here I was thinking that my "Dynamic Sleep" was working wonders when it wasn't even working lol. When you say to make sure the clicking method returned true, are you saying to run the script once at that point, and if the tree gets clicked, then I can proceed with the script?
  8. hey i have created a follow-up script edit of the previous one above hoping you can tell me how my dynamic sleep looks! i took your advice on that and attempted to learn as best I could. //======================================================================================================= if (treeArea()) { TREE = Objects.findNearest(25, "Yew"); if (TREE.length > 0 && TREE[0] != null && TREE[0].isOnScreen() && Player.getAnimation() == -1) { Clicking.click("Chop", TREE[0]); Timing.waitCondition(new Condition() { //insert starts here @Override public boolean active() { return Player.getAnimation() == 867; //change statement after "return " to whatever action is supposed to happen next. } }, General.random(1500, 2000)); } } if (!treeArea()) { WebWalking.walkTo(new RSTile(3187, 3227, 0)); } } //=======================================================================================================
  9. thank you, i'm sure these questions must be very dumbed down to u, but i really appreciate it alot.
  10. ok do i need to make a class, import anything, and make a method at all or do i just insert like that wherever needed? and when exactly should i use it?
  11. Hi. I am trying to set up Dynamic/Conditional Sleep. Here is a piece of my script I am trying to add the sleep to. I have looked at a lot of guides and still can't piece it together. How often should I Dynamic Sleep? Every step of the way? When I use the bank? Not sure. Also, do I still need to create a Timer class in itself like some outdated guide on here showed, or just import Timer? Do I also import condition? Lastly, how would I add it to this particular method for example. Thank you. private void bankLogs() { if (Banking.isInBank()){ if (!Banking.isBankScreenOpen()) { Banking.openBankBooth(); sleep(500, 700); } if(Banking.isBankScreenOpen()){ if(Inventory.getCount("Yew logs") > 0) { Banking.depositAllExcept(AXES); } } } if (!Banking.isInBank()){ WebWalking.walkToBank(); }
  12. i will, thank u
  13. ok so how would i edit the script to fix this? I apologize I'm very new to all of this, but learning by example is my best way I find to learn, if you could be kind enough!
  14. hi, i apologize for not posting whole script. i updated the topic with whole script, if you could please edit your feedback. Thank you!
  15. hi. this is one of my very first scripts. i am having trouble. when i use my chopLogs method, it works, but once it banks, and returns to the spot, it doesn't click on the tree. suggestions? if you need more of script i can provide. letting me know any errors i made or ways to do things better, especially for the particular problem i described would be great, with provided code line inserts and where, etc. but feel free to help in any way u prefer! UPDATED WITH WHOLE SCRIPT: package scripts.TestWoodCutterv2; import org.tribot.api.Clicking; import org.tribot.api.General; import org.tribot.api2007.*; import org.tribot.api2007.types.*; import org.tribot.script.Script; import org.tribot.script.ScriptManifest; @ScriptManifest(name = "---", category = "---", authors = "---") public class TestWoodCutterV2 extends Script { RSObject[] TREES = Objects.findNearest(15, "Yew"); RSItem[] LOGS = Inventory.find("Yew Logs"); private int[] AXES = {1361}; private boolean treeArea() { RSArea treeArea = new RSArea(new RSTile[]{ new RSTile(3177, 3235, 0), new RSTile(3177, 3222, 0), new RSTile(3193, 3217, 0), new RSTile(3194, 3234, 0)} ); if (treeArea.contains(Player.getPosition())) { return true; } return false; } public void run() { General.println("TestWoodCutterV2 has started."); General.println(treeArea()); while (loop()) { sleep(50); loop(); } } private boolean loop() { if (Inventory.isFull()) { bankLogs(); } if (!Inventory.isFull()) { chopLogs(); } return true; } private void bankLogs() { if (Banking.isInBank()) { if (!Banking.isBankScreenOpen()) { Banking.openBankBooth(); sleep(250, 700); } if (Banking.isBankScreenOpen()) { if (Inventory.getCount("Yew Logs") > 0) { Banking.depositAllExcept(AXES); } } } if (!Banking.isInBank()) { WebWalking.walkToBank(); } } private void chopLogs() { if (!treeArea()) { WebWalking.walkTo(new RSTile(3187, 3227, 0)); sleep(50); } if (treeArea()) { if (TREES.length > 0) { if (Player.getAnimation() == -1) { Clicking.click("Chop", TREES[0]); General.sleep(10000, 15000); } } } } }