Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
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 Starfox
      Hello everyone,
       
      I am posting this to let anyone who wants to join know that I am now hosting a Discord chat for TRiBot users. You can use this chat to talk to other users, ask questions, or simply hang out in the chat. We are the most active botting chat so far with over 40 users online at all times of day.
       
      You can use Discord on the web, or download the application for Windows, Mac OS, or Linux if you prefer. You can find the Discord site here.
       
      To join the chat, simply follow this link and you will automatically join the chat once you accept the invite. All members are welcome, and even if you don't have anything to say you are welcome to afk in the Discord chat. It is required that you make your Discord chat username the same as your TRiBot username so it is easier for other members to identify you. You also must register an e-mail with discord; this is to prevent spam accounts from joining (sorry).
       
       
      I reserve the right to permanently ban anyone from this unofficial chat for any reason. 


      TRiBot Discord Chat Roles:
      @administrator - All tribot admins get this role Your username separated from other members in a nice and shiny red color Ability to do any action in the discord chat except manage the server @moderator - All tribot mods get this role Your username separated from other members in a beautiful green color Kick and ban members Remove messages Move members between channels Create an instant invite to the discord chat Mute members Deafen members Ability to use the @everyone mention to notify all users in the chat of a message @user_moderator Kick members Remove messages Create an instant invite to the discord chat Move members between channels @scripter - All tribot scripters get this role This role is given to people who have the scripter role on TRiBot. You can ask these members questions about programming and script writing. @verified - This role is given out to people who have confirmed their identity on TRiBot. @market_banned - These members are banned from the black market on the TRiBot forums. @trade_with_caution - These members have the TWC pip on the TRiBot forums. @everyone - The default role for anyone in the chat. If you would like to become @verified, simply private message @Starfox or @TacoManStan on TRiBot and discord stating that you would like to be verified.
       
      Moderators and User Moderators, you have the ability to create instant invites to the TRiBot Chat. To create one, click the symbol next to the cog on the #tribotchat text channel. You can replace my global invite link with your own in your signature. I can use this as a metric to see how many people are using your link to join. Who knows, maybe I will reward the users who are getting more people to join =^).
       
      Moderator Application Format:
      Link to your tribot profile List past experiences moderating other forums (with sources) A brief description of your character as a person Send your application to Starfox on discord through a private message.
       
      TRiBot Discord Chat Channels:
      #tribotchat1 The main chat channel for general discussion #tribotchat2 The second chat channel for general discussion overflow #tribotscripting The chat channel to talk about scripting, ask questions, or get help with scripting #oldschoolchat Talk about anything old school runescape related here  
       
      TRiBot Discord Chat Rules:
      You must make your Discord chat username the same as your TRiBot forum username. Do not impersonate any TRiBot member. Do not spam the text channel with tons of the same message or similar messages. If you are purposefully annoying or otherwise unnecessarily argumentative, expect a ban. Do not flame other members of the chat. Arguing is allowed. General in-good-taste banter and harmless comments are also allowed. No Black Market transactions are allowed to take place on Discord. You must conduct them on the forums or elsewhere. Do not purposefully start arguments for the sake of trolling and/or provoke people in the chat. No doxing/hacking/phishing. Do not brag or talk about hacking/doxing other users. You cannot advertise anything of your own such as a website or service. If you break any of the above rules, you will be immediately un-verified and removed from the discord chat.
       
       
       
      If you'd like to support the TRiBot Discord Chat, copy this text into your signature (credits to @Encoded for the image):
        [url][img=http://i.imgur.com/YDz8pP0.png][/img]https://discord.gg/2bYcdjB[/url]  
      I hope to see you in the chat soon!
    • 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 Wormsarecool
      New To TriBot!
      Quick, possibly stupid, question for y'all.
      Say I bought the Auto Tithe Farm and Auto Wintertodt scrips; do those scripts activate the second I purchase them and add them to my client, or do they activate the first time I run them in the client?
      Thanks all!!!
      edit; only reason I ask is because I'm trying to purchase credits and it continues to say something in the lines of "Your card is not made for purchases like this." So was going to attempt to purchase the scripts I want ahead of time.. unless someone can help me out with my situation. Attempting to purchase 25 credits for $25 with my Prepaid Visa Debit Card.
    • 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 goxdom
      Is it better to use WebWalking methods or Walking methods while making scripts? Attempting to create my first script. Advantages/disadvantages?
    • 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 will:

      Fix LG for both OSBuddy and RuneLite


      Fix issue where the resizable client isn't able to be made smaller (Thanks @JoeDezzy1)


      Fix detection of the logout game tab when resizable mode and side panels are enabled (Thanks @JoeDezzy1)


      Add initial support for Sentry to allow us to identify and easily debug exceptions happening with all TRiBot users


      Add methods to determine if the bank is actually loaded, and not just the overarching interface (Thanks @wastedbro)



      Upcoming updates:

      Improved CLI support


      Full Sentry support


      Much more
      • 48 replies
    • This release will:

      Fix NPE in Camera API (Thanks @wastedbro)


      Update deposit box interface ids (Thanks @Encoded)


      Add various bank methods (Thanks @wastedbro)


      Banking#getWithdrawXQuantity


      Banking#getDefaultWithdrawQuantity


      Banking#arePlaceholdersOn




      Fix resizeable minimap bug (Thanks @wastedbro)


      Remove Java 8 requirement


      Please note: TRiBot is not yet fully compatible with Java 10+




      Fix the break handler issues by ensuring the break handler thread never gets paused


      Fix broken settings hooks



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Haha
        • Like
      • 68 replies
    • This release will:

      Add support for using custom F key bindings to switch between game tabs (Thanks @erickho123)


      Fix tab opening for "Skills" and "Kourend Tasks" (Thanks @erickho123)



      Note: If you are using LG, please restart both the RS client and TRiBot
      • 34 replies
    • This release will:

      Fix an issue where breaks would stop firing


      Fix Combat#getWildernessLevel, use dynamic search for text and cache ID for later calls


      Fix an NPE in the Combat API


      Fix Mouse#leaveGame bug where the mouse wouldn't actually leave the game screen
      • 21 replies
    • This release will:

      Add LG support for Runelite


      Fix NPCChat issues


      Fix a bug where the camera angle setter would just hold down a key for 5 seconds (the timeout)


      Slightly adjust the rotation via keys to be more accurate


      Add the ability for asynchronous camera movement via keys


      Make Camera rotation via mouse more fluid, with more antiban, and work much better in resizable mode


      Add a "Camera#setCamera" method, allowing the rotation and angle to be set in parallel


      Increase the likelihood of using the mouse for camera movements


      Add support for adjusting the camera to positionable entities (Positionable#adjustCameraTo)



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Haha
      • 59 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×