Jump to content
Ulsting

Would like Feedback on my Script

Recommended Posts

Greetings all,

I have just created my first script! I am making this post primarily to have other scripters give me feedback on my code in general. Specifically, I am looking for comments about my ABC2 implementation as well as my TRiBot API usage, and whether I could be doing things better with regards to either. But any advice is welcome.

One thing in particular I am not quite proud of is how I determined what is "open ground". I have looked at other firemaker scripts that I could find and they seemed to be doing it in much the same way. I tried to come up with a more elegant, robust, and all together decent solution but after a while I just wanted to get a working script and start getting feedback.

For those of you who aren't scripters and would just like to try the firemaker in order to help me bug test, YOU HAVE BEEN WARNED, it has NOT been tested very thoroughly nor am I at all an experienced scripter and as such, I can not speak as to how well I have implemented anti ban techniques.

That being said, if anyone would like to test my script and find bugs or behavior that should be changed, you are more than welcome to. Please include the client log along with your bug report, as I have made the script quite verbose intentionally, at least for now.

 

Firemaker.java

 

AntiBanExtenderUtil.java

 

Edited by Ulsting
  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Encoded
      http://encodedscripting.com/
      Auto Wintertodt Pro subdues the Wintertodt located on Zeah for profitable firemaking experience.
      This is a dangerous activity. Do not bot with any items you are not willing to lose!
      Requirements:
      - 50+ Firemaking
      Recommended:
      - 21+ Woodcutting w/ Mithril axe if fletching
      - 41+ Woodcutting w/ Rune axe if not fletching
      Current Options:
      - Fletching
      - Lighting Brazier
      - Fixing Brazier
      - Idling at 500 Points
      Braziers Supported:
      - South West
      - South East
      Food Supported:
      - Any item with the "Eat" option, including cakes.
      - Wine
      - Saradomin brews if using item id.
      ABC2 ABCL 10
      Dragon axe special attack supported.
      Purchase:
      5 credits for 1 month, 3 instances. 7 credits for 1 month, 5 instances. 10 credits for 3 months, 3 instances. 2 credits for 14 days, 1 instance.
      Note: Instances are the amount of accounts that can be ran simultaneously. 90 minute monthly trial; try it before you buy it!

      Click here to purchase.
      Progress Reports:


      Dynamic Signatures:

      Usage Guidelines:
      Have roofs disabled and camera at max zoom.
      Food name must be the exact name when inputting it in the GUI.
      Must have all required items at script start:
      - Axe equipped or in inventory.
      - Tinderbox in inventory.
      - Knife in inventory (only if fletching).
      - Hammer in inventory (only if fixing brazier).
      Client freezing when starting the script?
      Add wintertodt.encodedscripting.com and 192.241.226.189 to TRiBot's firewall always allow.
      Script Support: https://discord.gg/FDnMbkU
      Food Tab Explained

      Food ID or Name - The case sensitive name of the food or the id of it.
      Amount to Withdraw - The maximum amount of food that will be withdrawn when banking. 
      Food Amount To Bank At - The minimum amount of food the script will return to the bank at after a round is finished. 
      Eat At Bank - Withdraws additional food to heal to full or close to full at the bank.
      Use ABC2 Eat At Health - Relies on TRiBot's antiban to determine what health value to eat at.
      Minimum Health to Eat At - self explanatory
      Health Variation - The random amount that is added or subtracted from the minimum health to eat at value. Prevents the script from always eating at the same hp. 
    • By duk151
      Request: Alching on charged bracelets of ethereum
      Description:   Starting with some gold and nature rune in your inventory and have revenant ethers in your bank. Buying 26 uncharged bracelets of ethereum from grand exchange and charge each bracelet with 1 revenant ether. After 26 bracelets are charged it is now time for high alching all of them from your inventory and now profits are made and should go on repeat.  If it possible to set max buying price for uncharged bracelets it would be great. Sorry for my bad English, I can record all the process and send it to you, to understand me more.
      Please add me on Discord if you are willing to write this script for me. Thank you,
      Discord  duk151#5871

      Payment Amount: $110  If all works fine.
      Time:  As soon as possible
    • By agro36
      All of the current ones are broken / not working at all.
       
      Anyone that can do one that works? 
    • By lets be friends
      1.
      If you're using a local script, is there a way to run the script from within the same script if the script is ending? So basically if the script stops for some reason I want to rerun it. Sometimes the bot will fuck itself trying to dismiss a random (has been happening for like a year) so the script will stop. Would be nice if I could just automatically re-run it from the onEnd function or something so that as the script ends it also restarts itself. I could add other parameters so that it doesnt re-run when I don't want it to.

      2.
      Do extra threads slow down the script by much?
      Will having a concurrent thread that updates my database every 5 minutes or so and the rest of the time it will just sleep going to slow my script down? Or would it be better to start the thread when it needs to update and stop it when its done? and would that slow down the script noticeably?
      Right now it will update every 5 minutes but it takes a few seconds to do it and I would rather get rid of that if I can. Also if the extra thread doesn't slow down the script at all it would be nice to chuck some other stuff in there to speed up the actual botting part. like getting prices or something.
    • By fulma
      hey, need help. im running two bots,  bot after ~14 mins stops. running zulrah script. any thoughts?  
      [08:12:48] at java.security.AccessController.doPrivileged(Native Method) [08:12:48] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [08:12:48] at java.awt.EventQueue.dispatchEvent(Unknown Source) something like that and after these lines bot automatically stops. to able run script again , i have to kill script instance.
    • By Bot123455
      I made this NMZ Pot Sipper in my free time after taking a Java class this last fall semester. I am very new to the Tribot API and Java in general so it is not the best script, but it seems to work well.



      Features:
      - Drinks an overload potion when needed
      - Drinks prayer potion when needed
      - Dynamic Sleeping
      - GUI with useful information
       
      To start the script simply go into NMZ put your melee prayer up and start the script! I am looking for more proggies and testers so any constructive feedback would be wonderful, please no flame I am not claiming to be good at scripting nor am I claiming this NMZ script is good in anyway just practicing and improving.
      Repository Link: https://tribot.org/repository/script/id/2618
      GitHub Code: https://github.com/kingboypwnz/KingboyNMZ
       
      Coming Soon:
      - fix HP XP/Hour
      - Super Restore Support
      - Absorption potion Support
      - Rockcake Support
      - Updated GUI/Paint
      - Better Anti-Ban (still no bans reported as writing this)
    • By Rezon365
      I'm talking about F2P, long run account scripts that will get you 100k?/h
       
      Premium scripts or not doesn't matter
  • Our picks

    • This release includes:

      Fix shift clicking option selecting


      Fix high paint delay settings saving


      Update prayer IDs for the quick select menu


      Remove RS3 support


      Fix hooks



      RS3 Support Removed

      The RS3 client hasn't been updated since our Old-School version of TRiBot was released, as many of you may have noticed. Keeping all of the RS3 code in the client made the client as a whole harder to maintain, larger, slower, and messier. As hardly anyone still uses the RS3 client, and since the RS3 API was hardly functioning, we made the decision to completely remove it from TRiBot.

      For the average user, this means that the client will be smaller, cleaner, and faster. Future updates will also take less work meaning there will be more frequent updates.

      If you were one of the few users still using the RS3 client, we apologize for the inconvenience. No future support for RS3 is planned. There are many other botting clients which has support for RS3, so we recommend finding an alternative if you wish to continue botting on RS3.
        • Thanks
        • Like
      • 22 replies
    • Please welcome our new developers, @JoeDezzy1, @erickho123, @Encoded, and @wastedbro.

      These members will be responsible for working on, maintaining, and improving TRiBot.

      This means that bug fixes and improvements will now come at a much faster pace! We're committed to providing users with the best botting experience possible!
        • Thanks
        • Like
      • 30 replies
    • This release includes:

      More 3rd party libraries for script writers to use


      Apache Commons Codec


      Apache Commons Collections


      Apache Commons Configuration


      Apache Commons IO


      Apache Commons Lang


      Apache Commons Math


      GSON


      Guava


      JFoenix




      Hint arrow API


      Game#getHintArrowX


      Game#getHintArrowY




      Fix player hooks including Player#getSkullIcon and Prayer#getPrayerIcon
        • Thanks
        • Like
      • 49 replies
    • This update includes:

      Fix broken hooks


      Fix login bot for the message "No reply from login server. Please wait 1 minute and try again."


      Fix bug relating to which bot tab is sent human input


      General#randomLong bug fix involving negative numbers


      Fix GE API



      Please note: There are still some issues with the login bot due to a change in the game mechanisms handling the login screen. We're working on a fix and will upload it when ready.
        • Thanks
        • Like
      • 37 replies
    • This release will:

      Fix key event handling issue


      Fix other event handling issue


      Fix RSServer hook


      Update world hopper to have it use OCR, thanks to Todd


      Use proper disposal of old Graphics objects


      Reformat code


      Rearrange code


      Organize code imports


      Apply around 8000 automated code refactorings


      Make preparations for Java 9


      Fix 11 various bugs


      Add more reliable debugging support


      Fix mouseEntered/Exited event dispatching bug


      Fix minimap walking bug where it opens the map


      Fix broken hooks for today's game update
        • Thanks
        • Like
      • 100 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×