Jump to content

Karmik

Members
  • Posts

    4
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Karmik's Achievements

Newbie

Newbie (1/10)

1

Reputation

  1. I hate how the mouse operates in osbot. Setting the speed down to 4 doesn't do anything. And if the change in x or y is less than 10 pixels, the mouse will teleport instead of slide to it's destination. Seriously, just let me manually instruct it with my own code. I hate being limited by the api in this case. For instance, when I use object.Interact("Attack") you know what happens? The bot clicks the minimap, regardless of whether the object is visible or not, then teleports to right click the npc and initiates the attack. Every.single.time.
  2. What the guy above me said. If you want to check things once, either set the variable to something it wouldn't be possible to reach when checked through the loop, or use a boolean to lock the if statement forever once the code is run. int startXP = -1; public void update(Script script){ if(startXP == -1){ startXP = script.getXP(); } } Since players don't ever have negative xp, it doesn't matter what we set that to. I do suggest that if you are needing multiple checks, to just make a superate class and place the update method at the start of your onLoop() method so it doesn't clutter stuff up for you.
×
×
  • Create New...