Jump to content

Alek

Ex-Staff
  • Posts

    7878
  • Joined

  • Last visited

  • Days Won

    203
  • Feedback

    100%

Everything posted by Alek

  1. You didn't do any research on this plugin. It has a bunch of reported bugs, it was made in 2013 and only has ~50 sales, most of the content on the product page is dead links.
  2. Recently I fell in love with a game Runescape. This game is very fun, the picture is very fine, fine line, playing with very smooth, but also full of stimulation, is a very good game. The game is to make transactions via gold. Incidentally, I have a good site to purchase gold Runescape Gold, I usually buy on this site, affordable, fast delivery, trustworthy. And often do some activities, some of the sweepstakes promotions to players. (I've tried this, it is able to get props like!) Want to play junior partner to find play with me!
  3. Have you tried both simple and advanced paths? Do they both still walk through the same area?
  4. Give me the source and Ill write it myself.
  5. My favorite thing about people who talk about nostalgia, are people who haven't played the game for 10+ years. Still can't believe people don't want 08 HD graphics.
  6. Bank.open checks if the bank is open. So in reality he could just do: if(bank.open()) { //Banking Code } Also it's worth mentioning that you are using the Entity super class and you're missing out on some of the functionality. Instead try: RS2Object crate = objects.closest("Crate") if (crate != null) { crate.interact("Examine"); } and RS2Object bank = objects.closest("Bank"); if (bank != null) { bank.interact("Bank"); inventory.isFull(); <- This does nothing } Similarly for NPCs: NPC banker = npcs.closest("Banker"); So inside of your LOOK state: case LOOK: GroundItem knife = groundItems.closest("Knife"); sleep(random(500, 700)); log(" for a knife"); break; } Good job on using states. Final criticism though: Get rid of these randoms: random(200, 300); it does absolutely nothing for your bans. Instead "return 250;" is fine.
  7. Would you mind clarifying the area a bit? Is it a quest area or instanced area? Something like this was planned for web walking, but there are a lot of other things I need to work on first.
  8. "Uptext" is simply the first menu action. MenuAPI.
  9. While we're at it we might as well rename our product to QuadBot.
  10. It's a soft currency and PayPal has the API required to process transactions. Unless there is a vendor that takes bitcoin and exchanges it to a hard currency for us, and provides us the same functionality, it's unlikely. Also PayPal has a great reputation and has been up for many years.
  11. Have your app send a session id to a client which starts OSBot through CLI, using the sessionid as a script parameter. Once started, the script will communicate with your server the session id. Once that's complete, your app now has control over the script. Put a loop in your script continually requesting commands from your server for that session. After that it's simple, write some basic switch statement for various commands such as buying, selling, etc.
  12. Show the execution result for the event. You may want to take a look at our API, there are definitely ways to right click. InteractionEvent is built using the same API which you have access to; meaning that you can write the same exact methods which we wrote.
  13. Well I think most of it should come back to you fairly quickly then. Just be careful when using static ids; scripters get lazy and use them but in the long run it requires a lot more work because of maintenance. If you have issues finding widgets without the use of static ids, I could write a small tutorial on it to introduce the basic idea.
  14. It's a development build. Go to the forum index, right hand side it says "Advanced User Panel", its a small box.
  15. As discussed in my previous posts, I mentioned that RandomBehaviorHook was a thing of the past and needed to be ditched desperately. Starting today you can remove all OSBot randoms and have your scripts execute and soon as you start it through a new CLI allow argument, "norandoms". What does this mean? "norandoms" removes ALL random events including AutoLogin, BankPin, WelcomeScreen, etc. Scripters can now use the LoginResponseCodeListener and decide how they want their script to function during the login process. Additionally I took at look at the ResponseCode class and updated the methods isConnectionError and isDisabledError (thanks to @Th3 for providing the updated codes). This in turn gave me reason to update the AutoLogin random to make it a bit more responsive and predictable. What we have now: switchAccount - Properly swaps accounts on the current bot instance "norandoms" - Allows farmers to create truly automated farms No hacky external programs, no confusing hooks, just simple botting. Changelog: -Added CLI parameter norandoms -Updated ResponseCode class -Updated AutoLogin I hope everyone had a fun and safe Halloween (for those who celebrate).
  16. Think about it logically, you're using "closest". It will always return the closest cow to you and if that closest cow is under attack then you are going to be waiting until that cow is killed. Use one of the methods above to filter cows by distance/area, health > 0, not under attack, etc. After that you're going to want to sort those results by distance. This way you only get cows which you can attack, ordered by distance (instead of all cows which you don't know if you can attack or not).
  17. NPCs closest returns a single NPC, not a collection of NPCs for you to filter. You want something like: Optional<NPC> suitableNpc = getNpcs().getAll().stream().filter(npc -> npc.getHealthPercent() > 1).findFirst(); if (suitableNpc.isPresent()) { suitableNpc.get().interact("examine"); } You may want to look a little bit into Java 8 streams before using them. Edit: Or better yet you can use the FilterAPI way which is native to OSBot getNpcs().closest(new Filter<NPC>() { @[member='Override'] public boolean match(NPC obj) { return obj.getHealthPercent() > 1; } }) ; EntityAPI: http://osbot.org/api/org/osbot/rs07/api/EntityAPI.html
  18. Well if he uses snippets because he doesn't understand how to write the methods, that's not teaching him anything. He should spend some time learning more about widgets and understanding our API. That will make him a better scripter and programmer in the long run. Edit: Widgets is a good way to learn inheritance
  19. Learn how to code before you copy-pasta task node systems. Also why the hell are you passing script and not the Bot instance? Edit2: I deleted that tutorial Too many new scripters are using those node frameworks without understanding them. There is nothing wrong with using the simple loop until you understand OOP. Once you learn more about Java, you will be able to write and understand that node system. For now, just stick with learning step by step.
  20. If you can't figure it out you should probably be writing a script which you can write. The API spoon feeds a lot, a little too much actually. Learn more about widgets.
  21. Now you have no reason to use hooks. Botters: -Your account details are still protected if you are using the official OSBot Account Selector -Any information you put outside of the OSBot Account Selector is not safe Scripters: -Do NOT put a script that uses account switching on the SDN - harsh penalties Bot switchAccount(String username, String password, int pin) -Go Wild and Happy Botting
  22. Random Events History (long read): A very long time ago Random Events were required, until they were removed because bots could solve them. During this time we had something called a RandomBehaviorHook which would allow a scripter to implement their own Random Event solver, ignoring the OSBot solvers. Since then, Random Events are no longer required to be solved and many of them can be simply dismissed. At no point was a scripter ever allowed to remove our solvers, simply overwrite them with their own. In addition to your standard solvers (such as Prison Pete or Freaky Forester), events such as Bank Pin and Welcome Screen are also "random events" which we solve. We started running into common issues where scripters would overwrite random events with their own events, only for their implementation to be much worse. Of course the Development team would get yelled at for these issues, unknowingly that Scripters were responsible. Since that point, it's become impossible to overwrite these solvers for two main reasons: 1. Events such as Bank Pin and the Login Screen should really only be handled by us 2. There are security risks in allowing a scripter to handle these events Subsequently Scripters have been trying to use unregisterHook on solvers, although that does nothing because a hook is not a solver. You cannot remove a solver, only hooks which you have registered. Changelog: -Removed RandomExecutor registerRandoms -Removed RandomExecutor registerHooks -Removed unregisterHook(RandomBehaviorHook) -Removed unregisterHook(RandomEvent) -Removed hasHook -Removed RandomExecutor clearHooks -Removed RandomBehaviourHook -Deprecated Entity examine() - Use InteractionEvent -Removed ScriptAnalyzer tab until it's reactivated -Added MyPlayer debug -Happy Botting
  23. It was better the way you had it before, primitives are better. int check = new Integer(0); This still does nothing because willow is null: private Entity closestObjectForName(String WILLOW_TREE) { // TODO Auto-generated method stub return willow;//FIX THIS FUCKING NULL } Actually, how is your script even compiling? Your method doesn't have access to "Entity willow". What is this? public TP(String name){ this.willowtree = Objects.requireNonNull(willowtree); } You're assigning a generic to a string? Just delete this altogether. Why are you writing your own custom methods for things that already exist in the API: @SuppressWarnings("unused") private void castSpell(MagicSpell spell) { // TODO Auto-generated method stub NormalSpells vartele = Spells.NormalSpells.VARROCK_TELEPORT; } The reason I'm having a hard time believing that you wrote this is because you wrote a ton of code without testing it until now? When was this script last working?
  24. Good catch @@Imateamcape
  25. You have a lot of dangerous code in there, it could be just about anything. For starters: int check; always returns Falador after check > 3, and it's never reset. I'm assuming you wanted your logic to cycle through the farming patches? Anyways, your second state is Varrock (which is should be reaching). You call: willow = closestObjectForName(WILLOW_TREE); That method returns null every time: private Entity closestObjectForName(String willow_tree2) { // TODO Auto-generated method stub return null; } So either your script throws an NPE and crashes at: getCamera().toEntity(willow); or your null check for the willow tree later down prevents your script from doing anything. Did you even write this script?
×
×
  • Create New...