
Originally Posted by
oloap24
when im trying to get hp mp fp theres a warning
didnt found.. make sure the game window is in main screen and nothing blocks the main window
hello.
thaks for your feedback and finding the problem.
this bot is olny sees the hp, mp, fp when the game is in window mode like you.. and make sure your game is in main window.
if this dont help.
this bot it only tested on gpotato flyff.
how i use this bot: youtube.com/watch?v=db4-f-qRADs. uploading this video right now.
tell me where your where your game and bot is when you pressed "get hp,mp,fp" .. and what is your game size .. for me its 1440x900.
and can you send me screenshot of your flyff window .. email:l4v4ph0x(at)riseup(dot)net
and tell me hows your preocess to pressing "get hp,mp,fp".
for me its: open,loggin in when i see player and hp bar then >> i open bot >> leaving the game window alone and then pressing "get hp, mp, fp".
if you can find some bugs then little bit of source code is here:
/*from bmps*/
public Bitmap screenShot() {
Bitmap bmp = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
Graphics g = Graphics.FromImage(bmp);
g.CopyFromScreen(0, 0, 0, 0, Screen.PrimaryScreen.Bounds.Size);
return bmp;
}
/*from bools*/
public bool findBitmap(Bitmap bmpNeedle, Bitmap bmpHaystack, out Point location) {
for (int outerX = 0; outerX < bmpHaystack.Width - bmpNeedle.Width; outerX++) {
for (int outerY = 0; outerY < bmpHaystack.Height - bmpNeedle.Height; outerY++) {
for (int innerX = 0; innerX < bmpNeedle.Width; innerX++) {
for (int innerY = 0; innerY < bmpNeedle.Height; innerY++) {
Color cNeedle = bmpNeedle.GetPixel(innerX, innerY);
Color cHaystack = bmpHaystack.GetPixel(innerX + outerX, innerY + outerY);
if (cNeedle.R != cHaystack.R || cNeedle.G != cHaystack.G || cNeedle.B != cHaystack.B) {
goto notFound;
}
}
}
location = new Point(outerX, outerY);
return true;
notFound:
continue;
}
}
location = Point.Empty;
return false;
}
private void button1_Click(object sender, EventArgs e) {
Bitmap bmp = bmps.screenShot();
bool success = bools.findBitmap(Properties.Resources.part_of_hp, bmp, out player_hp_location);
bool find_success = true; /*bools.findBitmap(Properties.Resources.part_of_pla yer_hp_in_screen, bmp, out player_hp_in_screen);*/
if (success == true && find_success == true) {
checkBox2.Enabled = true;
checkBox5.Enabled = true;
checkBox6.Enabled = true;
hp_x.Text = player_hp_location.X + "";
hp_y.Text = player_hp_location.Y + "";
//form2.richTextBox1.Text = form2.richTextBox1.Text + Environment.NewLine + "player hp in screenXY:" + player_hp_in_screen.X + " " + player_hp_in_screen.Y;
} else {
MessageBox.Show("didnt found .. make sure the game windows is in main screen and nothing blocks the game window");
}
}