Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 23:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



.Bot C++ Bot API

Discussion on .Bot C++ Bot API within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2007
Posts: 30
Received Thanks: 5
.Bot C++ Bot API

Main page:


Forums:


.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.
Endar is offline  
Thanks
5 Users
Old 09/02/2007, 18:18   #2
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,487
Received Thanks: 215
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
Term!nX is offline  
Old 09/02/2007, 18:28   #3
 
reijin's Avatar
 
elite*gold: 20
Join Date: Feb 2006
Posts: 3,174
Received Thanks: 1,153
might be useful
reijin is offline  
Old 09/15/2007, 14:04   #4
 
elite*gold: 0
Join Date: Dec 2004
Posts: 697
Received Thanks: 8
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
termi is offline  
Old 09/15/2007, 16:43   #5
 
reijin's Avatar
 
elite*gold: 20
Join Date: Feb 2006
Posts: 3,174
Received Thanks: 1,153
oder du findest die speicher-adressen und liest die aus....
reijin is offline  
Old 09/18/2007, 11:23   #6
 
CracKPod's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 41
Received Thanks: 11
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
CracKPod is offline  
Thanks
1 User
Old 09/18/2007, 16:30   #7
 
CracKPod's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 41
Received Thanks: 11
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
CracKPod is offline  
Old 09/19/2007, 16:17   #8
 
CracKPod's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 41
Received Thanks: 11
Ich bekomme den gleichen Error wenn ich die Funktion GetPixel
benutze.

Eventuell irgwas nicht eingebunden etc.
CracKPod is offline  
Old 09/19/2007, 20:05   #9
 
elite*gold: 0
Join Date: Jun 2006
Posts: 28
Received Thanks: 0
*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.
bobbyladdy is offline  
Old 09/20/2007, 07:25   #10
 
CracKPod's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 41
Received Thanks: 11
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 ****.
//flame
U are the piece of **** 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 ****.
Im just somehow sure u cant do better.

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

@CantStOp tell me time 2 time hows it going , ok?
CracKPod is offline  
Old 09/20/2007, 14:32   #11
 
elite*gold: 0
Join Date: Jun 2006
Posts: 28
Received Thanks: 0
*Edit* I apologize for my bad mood again.



That's a snapshot of what I've done so far, if you are smart you can find it's sourcecode on google.
bobbyladdy is offline  
Old 09/20/2007, 14:46   #12
 
CracKPod's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 41
Received Thanks: 11
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 -.-?)
CracKPod is offline  
Old 09/20/2007, 14:58   #13
 
elite*gold: 0
Join Date: Jun 2006
Posts: 28
Received Thanks: 0
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.
bobbyladdy is offline  
Old 09/20/2007, 14:59   #14
 
elite*gold: 0
Join Date: Jun 2005
Posts: 8
Received Thanks: 2
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.
apollo is offline  
Old 09/20/2007, 19:10   #15
 
elite*gold: 0
Join Date: May 2006
Posts: 162
Received Thanks: 44
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 ?



/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:


"/discuss if it's just a fake or not"

but I can tell you, you can only impress little kids with your screenshot ; )
Harko is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 23:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.