| View previous topic :: View next topic |
| Author |
Message |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Tue Sep 23, 2008 9:11 pm Post subject: |
|
|
| 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?
| 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 |
|
 |
Henley Grandmaster Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 671
|
Posted: Tue Sep 23, 2008 9:24 pm Post subject: |
|
|
| _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?
| 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 |
|
 |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Wed Sep 24, 2008 1:49 am Post subject: |
|
|
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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Sep 24, 2008 3:53 am Post subject: |
|
|
| ._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?
| 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 |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
Posted: Wed Sep 24, 2008 4:48 am Post subject: |
|
|
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 |
|
 |
blackdog Expert Cheater
Reputation: 0
Joined: 02 Aug 2006 Posts: 101
|
Posted: Wed Sep 24, 2008 3:53 pm Post subject: |
|
|
| 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 |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Sep 24, 2008 4:50 pm Post subject: |
|
|
| Use the pointer version of ss mouse teleport O.o
|
|
| Back to top |
|
 |
yoyonerd Grandmaster Cheater
Reputation: 0
Joined: 26 Apr 2008 Posts: 699 Location: -->formerly yoyonerd<--
|
Posted: Thu Sep 25, 2008 10:44 pm Post subject: |
|
|
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 |
|
 |
blackdog Expert Cheater
Reputation: 0
Joined: 02 Aug 2006 Posts: 101
|
Posted: Sat Sep 27, 2008 4:25 pm Post subject: |
|
|
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 |
|
 |
|