Jump to content

d0zza

Scripter II
  • Posts

    780
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by d0zza

  1. Yes but scripting for osbot does have global variables.
  2. Have a global boolean called started that you set to be true inside the action-listener body. Then have an if (started) check in your onLoop.
  3. Did you have a script running?
  4. Instead of calculating the distance like that what you can do is if (myPosition().equals(player.getPosition()) And the reason why you're not moving is because your walking event is trying to walk to the player itself. WalkingEvent event = new WalkingEvent(player).setMinDistanceThreshold(3); should be WalkingEvent event = new WalkingEvent(the position you want to walk to);
  5. If I were you I'd go for something with a higher xp/hr like cooking or fm to minimise botting time
  6. For accounts with spaces in their names you'll need to replace the space character with another character, see the second post in this thread
  7. He's doing the same thing, just not storing the player he wants to interact with. Perform the null check anyway because I'm 99.9% sure that's the issue. If it still happens let me know.
  8. Are you checking if the player is not null?
  9. A WalkingEvent is continuously running while it's being executed, no other code in your script will be running while it's active. So in this case when you want to cast a spell you need to use setBreakCondition in the WalkingEvent API.
  10. The hashmap is not useless to you, you're just not using it properly. Please read up on the basics of Java and OO before trying to script.
  11. Right now your key in the for loop when doing hash.get(i) is an Item, you need to use the item's name.
  12. Like I said in the other topic you made, use a HashMap, you can use a HashMap for item IDs too.
  13. https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html A HashMap will allow you to link an item or String (item name) to a particular integer (item value).
  14. Why doesn't a WalkingEvent work? Oh if it's because of doors then maybe using build mode will work?
  15. If you already have the value of all of the items and you've stored them somewhere, all you need to do is loop through each item in your inventory and add up each value. for (Item i : getInventory().getItems()) { totalValue += valueOfItem(i); }
  16. Then answer your own questions genius.
  17. You're arguing with a dev... If he tells you something isn't right in your code and you don't listen no one can help you.
  18. @Speechless asked for a private script, I quoted 90m for it, he said he only had 50m at the time and would pay me the rest by the 6th, he traded me 50m and once complete and tested I sent over the script, he hasn't replied to me since. https://i.imgur.com/N0vetYf.png https://i.imgur.com/j5Cn8jg.png https://i.imgur.com/EkpNhnR.png https://i.imgur.com/aKtfq4q.png
  19. d0zza

    dSmither

    Unfortunately I have no control over that speed as all interactions are handled by the OSBot API.
×
×
  • Create New...