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


Popular Content

Showing content with the highest reputation on 02/11/2020 in all areas

  1. 1 point
    A free script that allows you to start your own F2P Goldfarm with fishing lobsters. Accepts all trade requests and receives gold. Uses the gold to automatically buy all the required fishing equipment. Levels 1-20: Net fishing Levels 20-40: Fly fishing Starting from level 40 the script will fish lobsters, which will be banked in the Port Sarim deposit box. Being robust, easy-to-use and completely free, this is an excellent script for the new TRiBot users that are interested in starting a small farm and learn the basics of goldfarming. How to use: 1. Create a new account and complete Tutorial Island using a script. [Optional] If you want to trade the lobsters before the account has 18 hours of in-game time, use a quester to automatically get 7 Quest Points. 2. After you're done with the account, run this script; it will start waiting to receive a trade. 3. Simply log in on a mule account trade with the bot, and offer it gold (5,000-10,000 recommended). All trade requests / windows will be automatically accepted by the bot. Done! After receiving the gold, the script will automatically do everything else. [Waiting to receive gold] [Buying the required tools] [Net fishing 1-20] [Fly Fishing 20-40] [Fishing Lobsters 40-∞ ] Enjoy!
  2. 1 point
    While attempting to upload my own script to the repository with JavaFX, I realized there was not a lot of information on this topic. This tutorial will explain how to incorporate JavaFX into your Tribot scripts and how to make sure it will work correctly when uploaded to the repository. Part 1 - JavaFX Why use JavaFX? JavaFX offers a high level of customization, including support of style sheets and FXML, and is the future of user interfaces in java. Prior to JavaFX, Swing was used to create user interfaces. JavaFX supports a variety of features that were previously not available in Swing. Furthermore, basic items in JavaFX have been updated to look much more modern then their Swing counterpart. Swing GUI vs. JavaFX GUI How do I learn JavaFX? Because there is already a large number of resources that currently exist to teach JavaFX, I will not be discussing everything about how to learn the basics of JavaFX. I highly recommend reading Oracle's guide to getting started with JavaFX located at https://docs.oracle.com/javafx/2/get_started/jfxpub-get_started.htm (I used this myself to learn the basics) FXML? FXML is "an XML-based user interface markup language created by Oracle Corporation for defining the user interface of a JavaFX application." as stated by Wikipedia at https://en.wikipedia.org/wiki/FXML. I highly recommend that you use FXML to design your GUI layouts. An easy to use drag and drop program that will create the FXML code for you is Scene Builder. Using this program, you don't need practically anything about FXML to get started. Scene Builder can be downloaded at http://gluonhq.com/products/scene-builder/. It is very similar to the Swing WindowBuilder plugin for Eclipse (or the Netbeans GUI builder, however, I don't recall its name). Scene Builder I'm ready to get started. For the purpose of this tutorial, we will create a basic application that has a textfield and a button and will save the value of the textfield when the button is pressed and will print it to the Tribot Client Debug. First, in order to use JavaFX in your IDE you must download the e(fx)clipse plugin for Eclipse located at https://www.eclipse.org/efxclipse/install.html. If you do not use Eclipse then you must find another plugin that will allow you to create JavaFX applications in your IDE. Do a quick google search and I'm sure you will be able to find it. Now we want to set up our JavaFX program. I recommend using Laniax's GUI API located at https://github.com/Laniax/LanAPI/tree/master/core/gui (thanks @laniax) Download the GUI class and the AbstractGUIController class and put them into your scripts package. The GUI handles all front end parts of the user interface, and the controller handles the logic. For the sake of this basic program, we are not going to use anything else from Laniax so delete everything that contains LogProxy and log in it. Additionally you may have to delete a few extra lines from the GUI class that involve other classes from the Laniax's API. Now create a main class that will extend script. We are going to create a new GUI object and display it, and wait until the GUI is complete. The URL fxml will contain the path to where we will place the FXML file. The "null" will be replaced with the path as a string. Now we want to build the GUI Controller. Remove the "getEnableNotifications" from the AbstractGUIController as we will not be using this. Create a new class called "Controller" that extends AbstractGUIController. The required initialize method is called when the FXML is loaded. Anything that must occur when the FXML is loaded can be placed within the method. In this case we will leave it blank. We will come back to these later on. Next we want to design the actual GUI with FXML. You must download Scene Builder (displayed above) at http://gluonhq.com/products/scene-builder/ to build your FXML file. An example of a complete FXML file created with Scene Builder is https://github.com/Naton1/nSand-Crabs/blob/master/fx/gui.fxml. Simply drag and drop the components you would like to use in Scene Builder. Open Scene Builder and click File, New to start a new application. Drag and drop the components as you wish to construct your GUI. I suggest messing around with this program for a bit to understand the basics of Scene Builder and JavaFX. Explore everything so that you can become familiar with all of the options you have (on both the left and right sidebars). Code Created by Scene Builder Now, in order to reference any of these objects from our java program, we need to give them each an fx id. This can be done by clicking on the item in Scene Builder that you want to reference, and then clicking "code" on the right sidebar. Type in whatever you want to call the component in your java program. Additionally, to add event handlers, enter the name of a method you want to call when an action is performed on the specified component in the onAction textfield. For this example, we will name the textfield as "textField" and the button as "startScriptButton". We will name the method that is called when the button is pressed "startScriptPressed". Furthermore, we need to set the "controller" of this FXML file. This can be done by clicking on the Controller tab and selecting your Controller class in the bottom left hand corner. Now, we want to incorporate this into our JavaFX application. Open up the GUIController and add two new fields, one for the new textfield and one for the button. They must be named exactly as named in the FXML. Additionally, all fxml objects must be referenced with the @FXML annotation. While you are doing this be sure that you are importing the correct javafx packages (hopefully your IDE will do this for you). We also need to add in the method that we added, #startScriptPressed Now when the button is pressed in the GUI, the startScriptPressed method will be called. Place all logic inside this method. We are simply going to have to print to the client debug. Don't forget to close the GUI so that the loop in the main script will end. Now all we have to do is go back in and edit the path to our FXML file, and we are all set to run the program. Now run the program and the text in the textfield will print to the client debug in Tribot. Congratulations! You made your first (very basic) Tribot script with JavaFX & FXML! This only shows the basics of what JavaFX can do but as you explore it more you will discover all of the incredible things that can now be done with this useful platform. Part 2 - JavaFX & FXML on the Tribot repository Obfuscation When uploading any files to the repository, they are all obfuscated, meaning the names of the objects in the code are all changed. When the FXML tries to reference a java object, it needs the exact name of the object. Therefore, we need something that can make sure the obfuscator does not change the names of important objects. This can be done by downloading an external .jar known as Allatori Annotations, also located on Laniax's API. https://github.com/Laniax/LanAPI/blob/master/allatori-annotations.jar This must be added to your build path in your IDE by right clicking on your project, going to build path, add external jar, and locating the jar that was just downloaded. Now to make sure certain names do not change, we just add the @DoNotRename annotation to the class, and all fields + methods that are related to the FXML. Example of adding in the @DoNotRename annotations Cannot reference local .fxml files When uploading your script to the repository, you cannot access your .fxml file. The only way to load a .fxml file into your GUI through Tribot is by uploading the .fxml file to a website or another method discovered by Laniax. You can either upload it to your own website and use the path of that as the argument to your URL object Example of URL of .fxml file uploaded to personal website Or you can do what @IceKontroI came up with - "I did have this problem a while back and my solution was to use Pastebin. Upload the .fxml file to https://pastebin.com/ then load up the raw FXML. That link can be used instead of a local file path, only problem is that it needs to be manually updated." The method that Laniax discovered to get around uploading your .fxml file is as follows: Quoted from Laniax The End Thanks for reading my guide, if you have any questions or if you have any other useful information that I could add, than please let me know. Hope this helps some of you from some of the problems that I had
  3. 1 point
  4. 1 point
    Argument used: Purchase;grandtree;foodname:Lobster;mousespeed:200;minsleep:250;maxsleep:500Screenshot/gif (including paint): https://gyazo.com/c4f490261bcab402215906c0e40e3359 Bot debug (txt file or pastebin link): [15:04:48] java.lang.NullPointerException [15:04:48] at scripts.ezquesters.ezquester.EzQuester.passArguments(EzQuester.java:64) [15:04:48] at obf.lD.SA(zd:336) [15:04:48] at java.lang.Thread.run(Unknown Source) Client debug (txt file or pastebin link): [15:05:48] Arguments: Purchase;grandtree;foodname:Lobster;mousespeed:200;minsleep:250;maxsleep:500 [15:05:48] Script Started: EzQuester v1. [15:05:49] Setting up global walk condition. [15:05:49] Received argument: Purchase [15:05:49] Received argument: grandtree [15:05:49] Received argument: foodname:Lobster [15:05:49] Received argument: mousespeed:200 [15:05:49] Received argument: minsleep:250 [15:05:49] Received argument: maxsleep:500 [15:05:49] Task number 1: SetupTask [15:05:49] Task number 2: GrandTree [15:05:50] We already have all quest items! Any additional info to provide: The paint says "managing_combat", has not started the quest and has all requirements, just equips staff and sits in the bank stuck for hours, I have deleted hooks, cache etc.
  5. 0 points
    Hey all! Anybody recommend a good woodcutting botting guide? Maybe one that uses scripts?
  6. 0 points
    dont lie.... you went and studied with the master programing yogis and mystics in deep caves in the mountains, in some odd named asian town. i know this.
  • Create New...