Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anyone wanna help a nub ?

Featured Replies

hey guys, ive decided its about time i start making a script, i decided to make a flesh crawler killer, my idea was to have it go from edgville bank, down to the SHOS, get to the crawlers, eat, kill and possibly loot aswell ahah but yeah, my first wall ive hit is how do i check my player health and interact with my inventory to find and eat the food

 

 

 

a simple link to a relevant tutorial would be good enough

 

please no hate

please no " i cant help sorry " thats spam

 

 

 

if i end up getting this good enough to slap a price on it ill even offer the person that helps a few £

 

 

im doing this for RS07 nor RS2 btw

getSkills().getDynamic(Skill.HITPOINTS)

 

getInventory().getItem("Food_Name").interact("Eat")

 

Use the api docs.

  • Author

getSkills().getDynamic(Skill.HITPOINTS)

 

getInventory().getItem("Food_Name").interact("Eat")

 

Use the api docs.

 

i have been on that line for over an hour, the bit i dont understand is how to say for example

 

 

if hp is below 5

 

 

all i can do is get hp

  • Author

well, ive fucked about so much with it, this is how its ended up, not working of course, not even making sence

 

{
int Hitpoints = getSkills().getDynamic(Skill.HITPOINTS);
}
{
boolean Eat = getInventory().getItem("Trout").interact("Eat");
}
 
void Eat() {
   // the "if" clause: bicycle must be moving
   if (Hitpoints > 10){ 
 
 
EDIT
 
now changed to 
 
{
if((getSkills().getDynamic(Skill.HITPOINTS)) >> 10);
}
 
 
 
but i got my old enemy line again " cannot convert from int to boolean
 
 
 
help

 

Edited by Rylad

i have been on that line for over an hour, the bit i dont understand is how to say for example

 

 

if hp is below 5

 

 

all i can do is get hp

 

getSkills().getDynamic(Skill.HITPOINTS) < 5

 

lol

well, ive fucked about so much with it, this is how its ended up, not working of course, not even making sence

{

int Hitpoints = getSkills().getDynamic(Skill.HITPOINTS);

}

{

boolean Eat = getInventory().getItem("Trout").interact("Eat");

}

void Eat() {

// the "if" clause: bicycle must be moving

if (Hitpoints > 10){

EDIT

now changed to

{

if((getSkills().getDynamic(Skill.HITPOINTS)) >> 10);

}

but i got my old enemy line again " cannot convert from int to boolean

help

>> is a bitshift operation, > is the greater than comparison. When you do # > #, it will return true or false (a boolean). if you do # >> #, it will return an int. If statements require booleans.

Edited by fixthissite

  • Author

>> is a bitshift operation, > is the greater than comparison. When you do # > #, it will return true or false (a boolean). if you do # >> #, it will return an int. If statements require booleans.

 

 

ok ive got most of it sorted now

 

 

my only problem is

 

 

{
if((getSkills().getDynamic(Skill.HITPOINTS)) < 20);
getInventory().getItem("Trout").interact("Eat");
 
   }
 
 
 
it just eats trout over and over no matter what the hp is

ok ive got most of it sorted now

my only problem is

{

if((getSkills().getDynamic(Skill.HITPOINTS)) < 20);

getInventory().getItem("Trout").interact("Eat");

}

it just eats trout over and over no matter what the hp is

Thats because you ended your if statement with a ;, rather than opened it up with a { } to contain the trout eating code.

You are doing

if(...);
Eat

you should be doing

if(...) {
    Eat
}

Edited by fixthissite

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.