Welcome to Chaox.us
Diablo 2 LOD Battle.net US East Ladder Channel: Clan ChX
Don't forget to favorite www.Chaox.us
 
Clan ChxClan Chx  HomeHome  Log inLog in  RegisterRegister  

Share | 
 

 C++ Botting :)

View previous topic View next topic Go down 
AuthorMessage
Kyle
Administrator
Administrator
avatar

Posts : 3709
Registered : 2007-10-03

Nick-Name : Kyle/Kail

PostSubject: C++ Botting :)   10/5/2014, 12:42 am

Awhile ago I made an Autoit bot for a game called PokeMMO (Fun game btw, great pokemon game!) and it worked, few bugs because I dropped it towards the end because I wanted to remake in C++. 7 chapters into my C++ book (19 chapters long, over 1000 pages) and I've got a firm grabs on the language, don't know everything but I understand a shit ton of it a lot better.

Anyways this is the start (Things will probably change, but it's gotta start somewhere)

Code:
class Pokemon{
   public:
      string name;
      string type1, type2;
      string status;
      string move1, move2, move3, move4;
      string pp1, pp2, pp3, pp4;
      int hp;
      int exp;
};

class Position{
   double x, y;
   string Location;
};

Code:

#include <windows.h>
#include <winuser.h>
using namespace std;

void main()
{
   INPUT left, right, up, down;
   left.type = INPUT_KEYBOARD;
   left.ki.wScan = 0;
   left.ki.time = 0;
   left.ki.dwExtraInfo = 0;

   left.ki.wVk = 0x41;    //    Yes I know 0x41 is not "left" it's 'a'
   left.ki.dwFlags = 0;
   HWND WNDNotepad = FindWindow(0, TEXT("Notepad"));
   while (!(WNDNotepad)){
      SendInput(1, &left, sizeof(INPUT));
      Sleep(500);
   }
}

Also my crappy autoit bot lol
So I've got a lot of work to do...

_________________

~I survived the 2012 apocalypse~
Back to top Go down
http://www.d2chaox.com
Jamie
Moderator
Moderator
avatar

Posts : 746
Registered : 2010-06-22

Nick-Name : Jamie

PostSubject: Re: C++ Botting :)   10/5/2014, 12:44 am

make a d2 bot noob. then ill be impressed

_________________
Back to top Go down
http://www.facebook.com/jamesgranbyii
Kyle
Administrator
Administrator
avatar

Posts : 3709
Registered : 2007-10-03

Nick-Name : Kyle/Kail

PostSubject: Re: C++ Botting :)   10/5/2014, 10:22 am

Jamie wrote:
make a d2 bot noob. then ill be impressed

Why? There are several already out there that do everything.

_________________

~I survived the 2012 apocalypse~
Back to top Go down
http://www.d2chaox.com
Sponsored content




PostSubject: Re: C++ Botting :)   

Back to top Go down
 
C++ Botting :)
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Clan Chx :: Off Topic :: Random Chatting-
Jump to: