Jump to content

BravoTaco

Scripter II
  • Posts

    240
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by BravoTaco

  1. Source Link: Source Releases Link: Releases Direct Jar Download: File How to use: Current Features: Planned Features: Changelog:
  2. Yeah i had a little issue with this when i was testing it with the lag. It wouldn't get stuck when it was already open, instead it would close the trade and re-trade the person. Which should be fixed now. Edit: Just realised i forgot to add this fix to this particular trade() method. Currently at work and my phone keeps crashing when i try to edit it. Ill fix it once i get home. Edit For The Edit: Should be fixed now.
  3. Thanks for the feedback. Ive had it re-loop after failing to put an item in and it did not break it. If there is a specific part of it that will break if it has to re-loop let me know. For the lag ill have to test it once i get home by limiting bandwith for the connection lag and using low resource mode for game lag. Ill let ya know what breaks, since im pretty sure something might. Update: I tried it out with 10 fps, 232ish ping, and mirror mode set at 1000ms reaction time. It never broke but I did notice that if you are currently in a trade and it does loop back it will exit the trade and re-trade with the person, this should be fixed now though.
  4. Thanks. I haven't tested it that much, so I'm sure that there will be some edge cases I forgot to handle. Let me know how it goes.
  5. I've seen a couple threads with people having trouble with the trade api so I wrote this up to hopefully help with that. This features initiating trades, offering items, declining the trade and accepting all the way through the trade or accepting just one screen. If you want anything added to it or find any bugs let me know, and I will try and implement/fix it quickly. The constructor takes the MethodProvider as a parameter. The trade() method takes a Player or a string of the players name as a parameter. The offerItem() method takes an Item or a string with the name of the item as a parameter, and the amount to offer. The offerAll() method also takes an Item or a string as the parameter. The acceptTrade() method takes a boolean value as a parameter, if True it will accept both screens, else it will only accept one. The declineTrade() method takes no parameters. Example of it being used. The Code.
  6. When you place a box, you could save the position to an ArrayList<Position>. Than to calculate if a box is yours, take the position of the box and see if the ArrayList contains that position. Or another option of checking your boxes is to walk to a position in the ArrayList than get the box at your current position. When walking to the position you will have to use a WalkingEvent so you can set the minDistanceThreshold to 0 otherwise it will walk close to the spot and not on it. I can give you some code later if you need it. I am currently at work and using my phone. Any questions feel free to ask me
  7. Try and use widget id 334, 13 its the one that contains the action accept on the second trade screen. The other one that you are using contains only the text. Also I wrote up a basic trading handler here https://osbot.org/forum/topic/155996-trading-api-unpredictable/ Quick addition, to offer an item try and use this method. public boolean offerItem(String action, String itemName){ return getInventory().interact(action, itemName); }
  8. I wrote up some code real quick that should give you a basic trade system to where the bot will accept a incoming trade from a player and will follow through with the trade. Haven't tested it much but it should work. It wont stick items in the trade menu though, but I could add that if you need it. It uses the onMessage() method. Hope this helps you out! First, the main class. Now the TradeHandler Class.
  9. Download the .jar file than navigate to the osbot scripts folder by default it will be C:\Users\#YourUserName#\OSBot\Scripts once there just drop the .jar file in it than in osbot refresh the scripts list.
  10. Been wanting to post more stuff but, as i'm not that good with programming yet, I don't want to give out my bad code practices No problem. Hope it helps you and or someone else out.
  11. As title states, this code checks your script version and compares it to your GitHub version. This requires you to have a latest release on GitHub and the versioning of the release will have to be similar to v1.0 or v0.12. Use only numerical characters and a . to add spaces. The script consists of two classes one being VersionChecker which does the main work, and the other being InfoCache which stores the GitHub Username, Project Name, and the current version of the local script. Once you call the boolean method needsUpdated() and fill in the parameters once, you can than call needsUpdated() again without the parameters. The script is very simple, feel free to edit and change it to however you would like. Hope this helps someone out.
  12. Thanks for the idea, I'll look into it once I have added the remaining features.
  13. Legacy Release 1.4 : Download The legacy version is no longer supported through updates. It may still work, but it will not receive further updates or added features. Alpha Release 0.2 : Download The alpha release is currently in development, expect bugs. If you experience a bug feel free to PM me or post about it here. Alpha Source : GitHub ------------------------------------------------------------------------------------------------------ Alpha Release 0.2 - 4/26/20 First Implementation of the save system. Saves player information by player name. So each character you use will have their own unique save. The saves are loaded/saved automatically at script start-up/exiting. Bug-fixes and General Stability improvements. ------------------------------------------------------------------------------------------------------- Planned Features: Completed : Implemented : In-Development New GUI P2P Fish Information Paint Stopping Conditions Custom Drop Methods Save System ------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------- Current Features Legacy Version: Fishes all types of F2P fish Supports different locations for each fish type Gets tool and bait from bank if needed Supports different drop methods Supports dropping of other fish Toggle paint on/off by clicking it Supports banking and dropping Timer to stop the script GUI Current Features Of Alpha Version: Supports all F2P Fish Supports multiple locations Grabs tool and bait from the bank Supports dropping and banking Temporary GUI Save System Paint BUGS ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Alpha Version Images
  14. Could I get a trial?
×
×
  • Create New...