.Bot C++ Bot API

09/02/2007 14:51 Endar#1
Main page:
[Only registered and activated users can see links. Click Here To Register...]

Forums:
[Only registered and activated users can see links. Click Here To Register...]

.Bot is a library written in C++ for developers who wish to "bot" on games/programs etc.
.Bot is currently being developed by .Endar.

===

Come join the community and share your ideas and code, =]
.Bot is also open source.
09/02/2007 18:18 Term!nX#2
Good idea, ive allready written some useful functions for myself.. I planed to do sth similiar to your project. But I still have my old problem :D
09/02/2007 18:28 reijin#3
might be useful :)
09/15/2007 14:04 termi#4
Du musst schaun an welcher Stelle auf dem Monitor welche Farbe existiert und wieviel Leben du dann noch hast.
Wenn du dir den Punkt für fast 0% Leben und den Punkt für 100% Leben holst dürfte es ein leichtes sein damit die aktuellen Lebenspunkte zu ermitteln :)
09/15/2007 16:43 reijin#5
oder du findest die speicher-adressen und liest die aus....
09/18/2007 11:23 CracKPod#6
Schau dir halt den Code an ist ja Open Source.
In der DLL sind ja Die Funktionen definiert. :)
Code:
int FindPixel(int width, int height, int pixelR, int pixelG, int pixelB) {
    COLORREF pixel;
    HDC dc;

    for(int x = 0; x < width; x++) {
        for(int y = 0; y < height; y++) {
            pixel = GetPixel(dc, x, y);

            if((GetRValue(pixel) == pixelR) &&
            (GetGValue(pixel) == pixelG) &&
            (GetBValue(pixel) == pixelB)) {

                return x, y;
            } else {
                return NULL, NULL;
            }
        }
    }
}
Wie du siehst gibt die Funktion die Koordinaten des Pixels
zurück mit der vorher als Paramter übergeben Farbe.
Halt als x,y werte.

PS:
Ich fände es toll wenn die epvp coder Sektion sowas ähnliches
starten würde.
Halt jeder gibt seinen Senf (Funktion) dazu und das wird nachher ne
riesige Bot Tools dll.

Würde mich freuen.

MfG,
CracKPod
09/18/2007 16:30 CracKPod#7
Huh?
Geht das wirklich?
Eine Funktion gibt einen dopellten return wert zurück und du speicherst
ihn in 2 Int Variablen? Wusste nicht das das geht muss ich mal austesten.

Achja schau dir die Funktion nochmal genau an ;).
Er scannt glaube ich von rechts unten nach links oben.
D.h er hat halt an 2/0 einen passenden Punkt gefunden.
Du machst nichts falsch ;)! (Glaube ich :P)
Oder wie gesagt die dopellte int zuweisung der return werte der Funktion klappt nicht
und teilt nur dem ersten wert einen wert zu also in deinem Falle x.
Teste es einfach mal aus setzt y mal nach vorne...
MfG,
CracKPod

PS:
Ich glaube Sleep(1000) ist keine so gute idee oder?
Weil das Programm dann ziemlich stocken sollte afaik.

EDIT:
So habs getestet, sorry für den unsauberen Code (falls er es ist)
Code:
#include <iostream>
using namespace std;

int add(int a,int b,int c,int d);

int main (void)
{
    int x,y;
    x,y = add(5,5,10,10);
    cout << "test1: " << x << "ntest2: " << y; // Der Schrägstrich für die Escape Sequenz verschwindet in den code tags @_@!
    cin.get();
    cin.get();
}

int add(int a,int b,int c,int d)
{
    int x,y;
    x=a+b;
    y=a+b;
    return x,y;
}
Das ergebnis lautet:
test1: 2
test2: 10
Also wie du siehst nicht das erwartet wird.

D.h du könntest dich jetzt mit struct befassen (Ich kann es selber nicht)
oder du schreibst die funktion um.
Ich muss mal schauen ob ich das kann/lust habe.

MfG,
CracKPod
09/19/2007 16:17 CracKPod#8
Ich bekomme den gleichen Error wenn ich die Funktion GetPixel
benutze.

Eventuell irgwas nicht eingebunden etc.
09/19/2007 20:05 bobbyladdy#9
*Edit* I apologize for my bad mood.
You should better remove small wrapper functions like GetCursorX / Y because GetCursorPos is almost the same and doesn't require multiple calls to GetCursorPos.
09/20/2007 07:25 CracKPod#10
Code:
You call this piece of *censored* a bot api ?
It's just a bunch of functions. If you would attach a .cpp / .h file to your post, then someone could learn something from it but this is just crap.
//flame
U are the piece of crap here - my friend! ;).
I hate people who are acting like Smartasses (You).
U didnt even read the source and call this Library a piece of shit.
Im just somehow sure u cant do better.

Ahh
And for the attribute "crap" u got crap in ur brain for NOT Readin the first post.
//flame

@CantStOp tell me time 2 time hows it going , ok?
09/20/2007 14:32 bobbyladdy#11
*Edit* I apologize for my bad mood again.

[Only registered and activated users can see links. Click Here To Register...]

That's a snapshot of what I've done so far, if you are smart you can find it's sourcecode on google.
09/20/2007 14:46 CracKPod#12
1. It isnt written in C++ most likely in LUA , isnt it?
2. I wont just thorugh things in the room like "It´s a fake and so on"
3. I believe u thats its possible to do that but since
4. its LUA are u really able to activate a Speedhack Ingame?
5. I mean how do u do call these functions up with just LUA.

I noticed that u got some c++ skills in ur other posts so i wont say its a fake
but please stop just saying its bullcrap - sine u already apologized im srry
aswell.

MfG,
CracKPod (Warum reden wir nicht deutsch -.-?)
09/20/2007 14:58 bobbyladdy#13
Das ist lediglich die LUA Benutzeroberfläche, welche mit der DLL kommuniziert. ( lua.org, version 5.1.1 )

Warden bekommt von den Veränderungen, welche die DLL vornimmt, übrigens nichts mit.
09/20/2007 14:59 apollo#14
sowas :

int foo(int a,int b) { int x=a+b; int y=a-b; return x,y; }
int x,y;
x,y=foo(1,2);

ist absolut unsauber. Da hat jemand zuviel LUA programmiert. Tatsächlicherweise ist x in diesem Falle GAR NICHT initialisiert, und hat einen Zufallswert (der vorher so auf dem Platz im Stackframe vorhanden war).

Saubere Lösungen:

void foo(int a, int b, int& x,int& y) { x=a+b; y=a-b; }
int x,y;
foo(1,2,x,y);

oder:

struct XY { int x,int y };
void foo(int a,int b,XY& result) { result.x=a+b; result.y=a-b; }
XY xy;
foo(1,2,xy);


Viel Spass beim Coden.
09/20/2007 19:10 Harko#15
Quote:
Originally Posted by bobbyladdy View Post
Okay, I'm sorry because I haven't read that it's opensource.
You think I couldn't do something better than just c&p'ing some functions ?

[Only registered and activated users can see links. Click Here To Register...]

/discuss if it's just a fake or not
you are just an arrogant douchebag.

programming means learning and he tries to learn something while sharing his stuff with the community.

ah and to speak in your language:

[Only registered and activated users can see links. Click Here To Register...]
"/discuss if it's just a fake or not"

but I can tell you, you can only impress little kids with your screenshot ; )