Jump to content

Camaro

Scripter II
  • Posts

    692
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Camaro

  1. -script 1101:1-2-3-4-5
  2. I'm planning to make some improvements in the next couple weeks, I'll make sure to include that
  3. Just loot grounditems that are the same position as the monster (despawned entity objects keep their position, will be the same as the loot position). If you get the message that you cant pick it up, add that specific grounditem to a list. When looking for items to loot, filter out all items that are contained in the list. Periodically remove all items from the list that no longer exist to keep it from getting too large. Ive never botted an ironman, but this would be my first approach.
  4. You're generating a null pointer when you run the script. NPC npc = sI.getNpcs().closest("Rat"); This will initialize before the constructor code runs, so the script object never actually gets set. This will cause your script to crash. if(npc.exists()){ sI.npcs.closest(npcsName).interact("Attack"); There are also multiple issues in these two lines. Since the 'npc' variable is only set at the beginning of the script, it never gets updated. exists() will always return false once that npc despawns. You are also not null checking anything. npcs.closest(npcsName) will return null when no npcs are found, which will crash your script. Since this is such a small amount of code, you don't really need to create a separate class for it yet. Start with just calling things within onloop until you understand how a script works more. case ATTACK: if (!myPlayer().isUnderAttack()) { NPC rat = getNpcs().closest("Rat"); if (rat != null && rat.interack("Attack")) { Sleep.sleepUntil(() -> myPlayer().isUnderAttack(), 5000); } } break; This should be enough for your attack state. Notice how I use a conditional sleep after attacking the rat. If you don't, then the bot will spam-click the rat until you are actually under attack. This is an extremely necessary thing to learn for writing efficient scripts.
  5. Love to hear it I will be adding full support for larger monsters very soon, like greater demons (3 x 3 sq) and dragons (4 x 4 sq). I can let you know when thats added if you want to try that out
  6. There is a graphic object that appears on the next wardrobe that the knife will come out of. Youll have to position the mirror in front of it once you see it.
  7. Its the proxy. Not all providers will cause locks. Just heavily used ones.
  8. up
  9. Read the log, you probably dont have the required equipment/ levels (33 magic and 20 hp)
  10. Hey, yes definitely try to get me the logs for that. It sounds like an exception is getting thrown.
  11. Now just type "cmd" in the url bar and press enter
  12. Open a terminal instance and run java -jar "OSBot 2.5.85.jar" -debug 5005 and view the output. Make sure it is run in the directory where the .jar is located. How to open terminal from windows explorer with working directory
  13. It will attach to the very last opened osrs client. You need to open one, attach, open another, attach
  14. ahh interesting, I'll have to check out the special worlds. I added extra debug logs for world hopping, itll print out its internal lists. Should be able to see it by tomorrow depending on when it gets compiled next
  15. This is still an issue? Which worlds were selected
  16. proxifier
  17. Did it happen every time? I tried it the other day and didnt see any issues, but I'll check it out again
  18. The first error you posted definitely looks like a bug on my part, I'll look into that soon. But for the second one, did you notice the bot doing anything else strange? Like scrolling very fast all the way to the top or the bottom in the work selector? Its an issue I saw before. Also, how many / which worlds did you have selected and did you have randomize selected?
  19. Scripts may do it intentionally to make it seem like the client is runelite. Think of it as antiban
  20. Should now be an option to limit worldhopping! How many wizard mind bombs are you bringing
  21. it was an image https://i.imgur.com/1oAtKn1
  22. You need to extract the jar into the output root in artifacts
  23. try resetting the client
  24. Thats weird, message me on discord camaro 09#0557 and we can figure this out
×
×
  • Create New...