Jump to content

Blackjacking


elemt

Recommended Posts

I'll try that. Another think I was thinking of was checking my players HP before and after the knockout. How do I get my players HP with this API? I'm new at OSBot.

 

it is......

 

 

this.getSkills().getDynamic(Skill.HITPOINTS) < X)

 

X = Hitpoints you wish to set it at

  • Like 1
Link to comment
Share on other sites

Thank you

 

I would also suggest getting straight into Conditional Sleeps, which is basically sleeping until a condition is true (prevents over sleeping, etc)

new ConditionSleep(2000){ // 2000 is the time out, so it will sleep for a max of 2 seconds
 @Override
 public boolean condition(){
     return !myPlayer().isUnderAttack() && !myPlayer.isAnimating();
 }
}.sleep();




Its a bit longer than a regular sleep, but considered better in terms of antiban in the long run and script efficiency/effectiveness.

Edited by Tom
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...