Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Vb Team] Maplestory bot
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Tue Sep 23, 2008 9:11 pm    Post subject: Reply with quote

noz3001 wrote:
_void_ wrote:
Keyboard hooking is better.


You'd rather install a keyboard hook than call GetAsyncKeyState twice?


A bot should have more than 2 hotkeys shouldn't it? Wink


inoobzx wrote:
Consoles are easy though. I don't think that they are technically GUI but it works well.

Here is an example C++ DLL coding.

Code:
#include <windows.h>
#include <iostream.h>

using namespace std;

int main()
{
    SetConsoleTitle("GMS Botter");
    cout << "[----------------------------]" << endl;
    cout << " GMS Botter                   " << endl;
    cout << "[----------------------------]" << endl;
    cout << " Hotkeys:                     " << endl;
    cout << " F1 = ??? Botting                " << endl;
    cout << " F2 = Exit                    " << endl;
    cout << "[----------------------------]" << endl;
    BOOL Exit = false;
    while (Exit = false)
    {
        if(GetAsyncKeyState(VK_F1)) // If F1 is pressed ...
        {
            // ASM Coding Goes Here
            cout << " [Enabled] ??? Botting        " << endl;
        }
        else if(GetAsyncKeyState(VK_F2)) // If F2 is pressed ...
        {
            Exit = true;
        }
        Sleep(50);
    }
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD call, LPVOID lpReserved)
{
    if(call == DLL_PROCESS_ATTACH) {
        DisableThreadLibraryCalls(hModule);
      CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Main, hModule, 0, 0);
    } else if (call == DLL_PROCESS_DETACH) {
       
    }
    return TRUE;
}


It will crash. You need to use Read/WriteFile to write to console...
Back to top
View user's profile Send private message
Henley
Grandmaster Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 671

PostPosted: Tue Sep 23, 2008 9:24 pm    Post subject: Reply with quote

_void_ wrote:
noz3001 wrote:
_void_ wrote:
Keyboard hooking is better.


You'd rather install a keyboard hook than call GetAsyncKeyState twice?


A bot should have more than 2 hotkeys shouldn't it? Wink


inoobzx wrote:
Consoles are easy though. I don't think that they are technically GUI but it works well.

Here is an example C++ DLL coding.

Code:
#include <windows.h>
#include <iostream.h>

using namespace std;

int main()
{
    SetConsoleTitle("GMS Botter");
    cout << "[----------------------------]" << endl;
    cout << " GMS Botter                   " << endl;
    cout << "[----------------------------]" << endl;
    cout << " Hotkeys:                     " << endl;
    cout << " F1 = ??? Botting                " << endl;
    cout << " F2 = Exit                    " << endl;
    cout << "[----------------------------]" << endl;
    BOOL Exit = false;
    while (Exit = false)
    {
        if(GetAsyncKeyState(VK_F1)) // If F1 is pressed ...
        {
            // ASM Coding Goes Here
            cout << " [Enabled] ??? Botting        " << endl;
        }
        else if(GetAsyncKeyState(VK_F2)) // If F2 is pressed ...
        {
            Exit = true;
        }
        Sleep(50);
    }
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD call, LPVOID lpReserved)
{
    if(call == DLL_PROCESS_ATTACH) {
        DisableThreadLibraryCalls(hModule);
      CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Main, hModule, 0, 0);
    } else if (call == DLL_PROCESS_DETACH) {
       
    }
    return TRUE;
}


It will crash. You need to use Read/WriteFile to write to console...

and he forgot to AllocConsole
Back to top
View user's profile Send private message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Wed Sep 24, 2008 1:49 am    Post subject: Reply with quote

why u need a team for a bot.

simply use a loop to check ur current x/y and monster x/y, move yourself accordingly. then send attack keys.

of course u can add some extra features like climbing robes(again samething but using ladder x/y).

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Sep 24, 2008 3:53 am    Post subject: Reply with quote

._Henley wrote:
_void_ wrote:
noz3001 wrote:
_void_ wrote:
Keyboard hooking is better.


You'd rather install a keyboard hook than call GetAsyncKeyState twice?


A bot should have more than 2 hotkeys shouldn't it? Wink


inoobzx wrote:
Consoles are easy though. I don't think that they are technically GUI but it works well.

Here is an example C++ DLL coding.

Code:
#include <windows.h>
#include <iostream.h>

using namespace std;

int main()
{
    SetConsoleTitle("GMS Botter");
    cout << "[----------------------------]" << endl;
    cout << " GMS Botter                   " << endl;
    cout << "[----------------------------]" << endl;
    cout << " Hotkeys:                     " << endl;
    cout << " F1 = ??? Botting                " << endl;
    cout << " F2 = Exit                    " << endl;
    cout << "[----------------------------]" << endl;
    BOOL Exit = false;
    while (Exit = false)
    {
        if(GetAsyncKeyState(VK_F1)) // If F1 is pressed ...
        {
            // ASM Coding Goes Here
            cout << " [Enabled] ??? Botting        " << endl;
        }
        else if(GetAsyncKeyState(VK_F2)) // If F2 is pressed ...
        {
            Exit = true;
        }
        Sleep(50);
    }
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD call, LPVOID lpReserved)
{
    if(call == DLL_PROCESS_ATTACH) {
        DisableThreadLibraryCalls(hModule);
      CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Main, hModule, 0, 0);
    } else if (call == DLL_PROCESS_DETACH) {
       
    }
    return TRUE;
}


It will crash. You need to use Read/WriteFile to write to console...

and he forgot to AllocConsole


Depends on his compile options, he doesn't necessarily have to Alloc/FreeConsole himself.
Back to top
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Wed Sep 24, 2008 4:48 am    Post subject: Reply with quote

Sorry, I forgot about that.

Last edited by Innovation on Thu Apr 19, 2012 5:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
blackdog
Expert Cheater
Reputation: 0

Joined: 02 Aug 2006
Posts: 101

PostPosted: Wed Sep 24, 2008 3:53 pm    Post subject: Reply with quote

Bizarro wrote:
why u need a team for a bot.

simply use a loop to check ur current x/y and monster x/y, move yourself accordingly. then send attack keys.

of course u can add some extra features like climbing robes(again samething but using ladder x/y).

Yeah I was going to do something like that. Also pick up items then go re pot when all the potions are gone. Have it run to the map you select.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Wed Sep 24, 2008 4:50 pm    Post subject: Reply with quote

Use the pointer version of ss mouse teleport O.o
Back to top
View user's profile Send private message
yoyonerd
Grandmaster Cheater
Reputation: 0

Joined: 26 Apr 2008
Posts: 699
Location: -->formerly yoyonerd<--

PostPosted: Thu Sep 25, 2008 10:44 pm    Post subject: Reply with quote

hey bizarro, quick question, why haven't you done that in your trainer? o.o

the way you say it, makes it seem like its easy?
Back to top
View user's profile Send private message AIM Address
blackdog
Expert Cheater
Reputation: 0

Joined: 02 Aug 2006
Posts: 101

PostPosted: Sat Sep 27, 2008 4:25 pm    Post subject: Reply with quote

Are there any bots out now where I can look at the source. I won't copy it exactly I just want to see how they did it. I would rather have a person to talk to who knows about this stuff because that is more of my learning style, but I'm sure people won't want to answers endless questions by me. So if I can get a source that would nice, have someone to talk to about this even better.


Also Bizarro I like your idea of ladder x/y I never thought of that. Do you have some sort of messenger I talk to you with?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites