XenoLight / infinity-client

Automatically exported from code.google.com/p/infinity-client
0 stars 0 forks source link

Color picking! #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
So I sorta got this color picking thing down. Pretty legit. It doesn't pick up 
paint, either. Obviously, you can't turn off rendering and use this, but who 
gives, right?
Here's a simple debugger!

    public void onRepaint(Graphics g){
        Mouse m = Bot.getClient().getMouse();
        g.setColor(Color.GREEN);
        g.drawString(grab.grab(m.x, m.y, false).toString(), 10, 30);
    }

The code is attached.

Original issue reported on code.google.com by somanayr@gmail.com on 16 Dec 2010 at 2:51

Attachments:

GoogleCodeExporter commented 9 years ago
Its a good start..
Something like picking the color of the NPC like getNPCbyColor can be useful in 
a variety of situations.

Original comment by secret...@runedev.info on 16 Dec 2010 at 3:07

GoogleCodeExporter commented 9 years ago
I think I was working on that for a while, but, last I tried, I couldn't obtain 
an NPC model.

Original comment by somanayr@gmail.com on 16 Dec 2010 at 11:03

GoogleCodeExporter commented 9 years ago
you wouldn't need the NPC Model plus its not hooked.
i really mean get the NPC by color so for example the Evilbob is color 12. When 
you call on getNPCbyColor(EvilBob); yata yata yaa you get the idea :-p

Original comment by secret...@runedev.info on 18 Dec 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Im working on a tool like the magic wand tool in Photoshop. It works OK, just a 
little slow. It has stack overflow issues though, since it's recursive. I gotta 
figure that one out.

Original comment by somanayr@gmail.com on 18 Dec 2010 at 5:43