Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 08:56

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

Advertisement



Boom Beach daiBot Tutorial

Discussion on Boom Beach daiBot Tutorial within the Coding Tutorials forum part of the General Coding category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 360
Received Thanks: 132
Smile Boom Beach daiBot Tutorial


Boom Beach C++ Bot using daiBot.dll



Boom Beach is a mobile app similiar to Clash of Clans.
A lot of people think that Boom Beach is better than Clash of Clans.
We want to write an advanced bot for Boom Beach (on BlueStacks)
BlueStacks is an android emulator which lets you run Boom Beach on your PC.


I really don't now how this game works..
I'm just doing it right now to demonstrate how easy my new C++ library is.

You need the library daiBot.dll
get it here :
You can also create an autoit bot with the library.
The autoit functions are the same as the c++ ones, so you should be able to create one.




Prepare your project and link the library

  1. Install Visual Studio 2015 Community (it's free..)
  2. Create a new Win32 Console Application
  3. Setup Directories:
    • Solution -> Properties -> Debugging -> Environment : Set the field to PATH=C:\daiBot\ or whereever your daiBot.dll/daiBot.lib are located.
    • Solution -> Properties -> VC++ Directories -> Include Directories : Add the path to interface.h
  4. include interface.h in BoomBeach.cpp
  5. link the library (daiBot.dll)

Code:
#include "stdafx.h"
#include "interface.h"
#pragma comment(lib,"daiBot")
int main(){return 0;}


Create the game object

Code:
daiBotInterface * BoomBeach = GetDB();
GetDB() is defined in interface.h and creates an instance of daiBot.

Now we have to tell the bot our target.. so we are getting the HWND of BlueStacks(BS) and pass it to BoomBeach.
We also want to save an image of the current BS window (just to test if it is working...)

Code:
int main()
{
	daiBotInterface * BoomBeach = GetDB();
	HWND handle = BoomBeach->getHandle(L"BlueStacks App Player");
	BYTE * pixels = BoomBeach->init(handle); 
	BoomBeach->saveBitmap("BoomBeach.bmp");
    return 0;
}
That's it. Now we have to "fine tune" the bot.

important functions


BoomBeach->loadBitmap(); //call this if you want to get a new image of BS to work with.

BoomBeach->getPixel(x,y);
BoomBeach->click(x,y);

BoomBeach->drag(xFrom, yFrom, xTo, yTo, speed)
BoomBeach->pDrag(x[], y[], speed)

BoomBeach->move(xFrom, yFrom, xTo, yTo, speed = 10) //moves the mouse, no clicking at all

speed is always optional and defaults to 10
the higher the speed the faster the moves

If you liked it, thank me
tbc.. have to play and understand the game mechanics now .. xD

I currently can not continue this tutorial . I'd really like to but time doesn't like me ..
Please ask questions in the other thread.
Daifoku is offline  
Thanks
1 User
Old 10/18/2015, 23:39   #2

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,480
Received Thanks: 3,319
#closed (on request)
snow is offline  
Closed Thread

Tags
autoit, bluestacks, boom beach, bot, daibot


Similar Threads Similar Threads
[Request ]Boom Beach
05/19/2019 - Mobile Games - 5 Replies
Hey guyz i need hack for boom beach please.
[Buying] Boom Beach Account
10/07/2015 - Mobile Games Trading - 1 Replies
Siehe Topic.Postet eure Angebote.
[S]Boom Beach Account
01/21/2015 - elite*gold Trading - 9 Replies
Hallo. Bin hier auf der Suche nach einem Boom Beach Account. Ob iOS oder Android ist egal, kann man beides auf meinen Account transfirieren. Anforderungen: Account sollte mindestens Level 35-40 (umso höher um so besser) sein
[Selling] Boom Beach Acc lvl 31/hq 11 Suche PSC
10/01/2014 - Trading - 0 Replies
Hallo, da ich im Moment keine Zeit mehr habe Boom Beach zu spielen, möchte ich meinen Acc verkaufen. Auf dem Account sind über 2500 restliche Juwelen vorhanden. Bezahlung nur über Psc. Acc lvl 31/HQ 11: Radar level 11 Ladungsboote 5x lvl 10 Schützentürme 4x lvl 11 Kanonen 4x lvl 6 Maschinengewehre 3x lvl 10 Flammenwerfer lvl 4 und 3 Bildhauer lvl 3 (4x Wächterstatue) Mörser 2x lvl 9
[Selling] Boom Beach account
09/12/2014 - Trading - 0 Replies
Hey ich will meinen boom beach account verkaufen , bin momentan auf lvl 27



All times are GMT +2. The time now is 08:56.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.