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.

Local script not showing up.

Featured Replies

Hey,

 

I just made the chicken killer script as my first script ( to learn ).

 

But when I turn it into a .jar and place it in my custom made folder it doesn't show up in my local scripts list.

 

Is there any way to fix this? Do I need to compile it in a special way?

 

Thanks!

 it probably has something to do with the code.

BTW goodluck


if you pm me the code i could take a look at it

place the .jar file in the following folder: Local Disk\Users\****NAME HERE***\OSBot\Scripts

 

also, make sure you have @ScriptManifest with its details at the top of your script class.

 

Precise.

  • Author

Hmm I think I got the compile right now, it's showing up.

 

 

But the script is well.... far from working perfectly...

 

 

I now took the Lesser Demon educational script and I'm trying to refit it to what I want it to do... But I can't really figure out what I'm doing ahaha

 

Is there anyone that is able/wanting to help me out?

 

Maybe through skype (no mic needed)

Hmm I think I got the compile right now, it's showing up.

 

 

But the script is well.... far from working perfectly...

 

 

I now took the Lesser Demon educational script and I'm trying to refit it to what I want it to do... But I can't really figure out what I'm doing ahaha

 

Is there anyone that is able/wanting to help me out?

 

Maybe through skype (no mic needed)

 

PM any issues you have and what you are trying to do and I can help out

It's not really java that is the problem, it's just the API really...

 

Which functions to use etc ahah

then you should ask how to do something

  • Author

then you should ask how to do something

 

I'm trying to remodel : http://osbot.org/forum/topic/69541-lesser-demon-killer-script-source-with-comments-educational/

 

Into killing some cows ahaha.

 

In the script itself it can only find one monster?: private static final String NAME = "Lesser demon";

Or is it possible to just create another static string with for example: private static final String NAME = "Cow calf";

 

 

Also I want it to take items?

 

So I made an enum: TAKE

 

 

But how would I go about making it detect the item for example: "cowhide" on the ground and taking it?

I'm trying to remodel : http://osbot.org/forum/topic/69541-lesser-demon-killer-script-source-with-comments-educational/

 

Into killing some cows ahaha.

 

In the script itself it can only find one monster?: private static final String NAME = "Lesser demon";

Or is it possible to just create another static string with for example: private static final String NAME = "Cow calf";

 

 

Also I want it to take items?

 

So I made an enum: TAKE

 

 

But how would I go about making it detect the item for example: "cowhide" on the ground and taking it?

If you think you can use same name to declare 2 different strings, then you need to learn some java.

 

When declaring strings, ints, booleans, give it a name so you know what it is about.

 

Example:

private final String cow = "Cow";

or you can create an array of strings and the script will look and find one of the monsters

private final String[] monsters = {"Lesser demon", "Cow", "Cow calf"};

In your getState() you could write

final GroundItem cowhide = groundItems.closest("Cowhide");

and 

if(cowhide != null && cowhide.isVisible()) {
    return state.TAKE;
}

Use this http://osbot.org/api/

Edited by Woody

  • Author

If you think you can use same name to declare 2 different strings, then you need to learn some java.

 

When declaring strings, ints, booleans, give it a name so you know what it is about.

 

Example:

private final String cow = "Cow";

or you can create an array of strings and the script will look and find one of the monsters

private final String[] monsters = {"Lesser demon", "Cow", "Cow calf"};

In your getState() you could write

final GroundItem cowhide = groundItems.closest("Cowhide");

and 

if(cowhide != null && cowhide.isVisible()) {
    return state.TAKE;
}

Use this http://osbot.org/api/

 

 

Oh ye there's my mistake.

 

My knowledge of Java is far from the best ahaha, but I want to learn on the way... As I did just now :).

 

Thanks!

 

Can I maybe add you on skype? :)

 

Oh ye there's my mistake.

 

My knowledge of Java is far from the best ahaha, but I want to learn on the way... As I did just now smile.png.

 

Thanks!

 

Can I maybe add you on skype? smile.png

 

Trust me, learn some java first. You don't have to learn everything, but you should know the basic java.

 

Sorry, my skype is for private use only.

hey man not sure if you tried or not, i didn't read the past posts, but you need to hit refresh on the script selection page everytime. otherwise it just shows you the script history because it only loads local scripts and the sdn on the client load unless done manually. i plan on making some tutorials in the next week or so. keep an eye out for them ;)

Edited by shiny greninja

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.