SRL Archive - Java Help and Tutorials

making a java bot, rgb to int?


ZaSz

2010-01-18 22:11:19

Well, I'm making a java bot, got some mouse functions down, now I want to convert rgb to an integer like in srl.

noidea

2010-01-18 22:15:19

http://www.villavu.com/forum/showpost.php?p=656851&postcount=3
made it a few months ago. Lol It's a tad embarrassing because I've become better at java since then :3

ZaSz

2010-01-18 22:32:42

Sweet, that's what I was looking for, thanks, its hard looking thinks up cause I don't have internet right now, and I got to do everything from my phone… my bots starting to work :D

noidea

2010-01-18 23:39:30

I can't wait to see what youre doing :D
Lets see it soon. BTW, dont use the findcolor method l made. Lol, made it in lile 20 minutes and It's very slow. Look on the thread I posted, some one made a vry quick one.

Are you writing some of the bot on your g1? :o

ZaSz

2010-01-19 17:23:50

Lol its really nothing special. And its not on my g1 lol, although I am researching everything online from my phone though. Right now I got mouse functions (humanlike (a little barrowed from srl)), get color + find color (support for inputting rgb or hex color like srl), so a few major functions are done. I should be getting on the internet on pc soon I hope.

noidea

2010-01-19 17:35:13

From: ZaSz
Lol its really nothing special. And its not on my g1 lol, although I am researching everything online from my phone though. Right now I got mouse functions (humanlike (a little barrowed from srl)), get color + find color (support for inputting rgb or hex color like srl), so a few major functions are done. I should be getting on the internet on pc soon I hope.


Tether your G1? Should be easy, amirite?

MylesMadness

2010-01-19 17:48:58

From: noidea
Tether your G1? Should be easy, amirite?
Offtopic to the thread but http://lifehacker.com/5447347/how-to-tether-your-android-phone

ZaSz

2010-01-19 18:24:14

Just tethered with pdanet, its pretty awesome! My moms like wtf how the f did you do that?

n3ss3s

2010-01-20 06:03:45

java.awt.Color

noidea

2010-01-21 15:43:22

Hows this going?

Cigue

2010-01-22 18:07:06

I don't know if someone posted this : assuming every color is on a 0-255 range, just do r + g*256 + b*256^2 to get a unique integer for each color :)

senrath

2010-01-22 19:40:18

From: Cigue
I don't know if someone posted this : assuming every color is on a 0-255 range, just do r + g*256 + b*256^2 to get a unique integer for each color :)


I assume he wanted to use the same numbers as SCAR does.

arash

2010-01-25 18:23:39

Why even make a java bot that uses colors, too many people make nooby color bot's, and use BCEL(unrelated to this thread) these days. Just use god damn reflection, it is there for a reason.

Dynamite

2010-01-25 18:28:05

From: arash
Why even make a java bot that uses colors, too many people make nooby color bot's, and use BCEL(unrelated to this thread) these days. Just use god damn reflection, it is there for a reason.


Oh so you fixed ref for us? xD
It broken dude.

arash

2010-01-28 21:45:16

If you knew anything you would know that reflection is a feature of Java. So referring to reflection as broken is horribly incorrect. The SRL community's lame implementation of Reflection in RS2 is broken.

Dervish

2010-02-03 06:57:41

From: arash
If you knew anything you would know that reflection is a feature of Java. So referring to reflection as broken is horribly incorrect. The SRL community's lame implementation of Reflection in RS2 is broken.


I must agree with arash on this one, I have the feeling SRL is dieing out, well that is just my feeling.

Its dieing out because of all elitists (or people who don't want to spend 2 minutes to learn reflection when its up) who bash on reflection.

I think we have to face it, we must go further, stop the color botting.

Bash me all you want, derep me like you have so many times, I have spoken truth and how I think, and how it should be.

Awkwardsaw

2010-02-03 08:14:07

imo, the point of this comminity is to learn, be challenged ect ect. color > java when it comes to challenging :)

Sex

2010-02-03 08:18:36

From: Awkwardsaw
imo, the point of this comminity is to learn, be challenged ect ect. color > java when it comes to challenging :)

Uhh, what?
Java is a programming language, color is not..

Dervish

2010-02-03 08:51:21

From: Awkwardsaw
imo, the point of this comminity is to learn, be challenged ect ect. color finding methods > java's finding methods when it comes to challenging :)


Fixed.

Well people don't want challenging things that do not work; thats how it is, and why our community is dieing out.

Maybe simba and SRL 5 will change it. Who knows.

Sex

2010-02-03 09:13:34

Color works though.
But anyways, the end user doesn't give a fuck if it was challenging to make or not. All they want is for it to be easy to setup, and reliable.

Dervish

2010-02-03 09:53:02

From: Sex
Color works though.
But anyways, the end user doesn't give a fuck if it was challenging to make or not. All they want is for it to be easy to setup, and reliable.


So far, Java bots have had FAR better reliability than color to me.

Sex

2010-02-03 10:23:16

I'm not arguing that color is better lol..
It isn't, truthfully.
Bro, Java isn't an object finding method!!
Stop saying that. Stop comparing Java to "color".
The common Java bots use either reflection or BCEL…