Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz
You last visited: Today at 04:33

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

Advertisement



Compot - Version 0.01

Discussion on Compot - Version 0.01 within the Rappelz forum part of the MMORPGs category.

Reply
 
Old 08/17/2009, 17:07   #61
 
Night Dragon's Avatar
 
elite*gold: 20
Join Date: Apr 2007
Posts: 581
Received Thanks: 253
The updated versions that are available for download on the other pages are just peoples own work and progress on the bot and want to share their ideas. This thread was meant to inspire a discussion about making your own bot with the template that Gertos was so good to present to the community. This is by no means a download, compile, and start botting kind of project. The bot on the first page is just a template to show how to use the sendkeys to make the character move.
Night Dragon is offline  
Old 08/17/2009, 17:33   #62
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 3
Ok. Thank you for information. It makes more sense now

Edit:
I installed that Kernel thing, to send input to the game. However my antivirus detected Keylogger. Is it normal?
Ripiz is offline  
Old 08/17/2009, 17:50   #63
 
Night Dragon's Avatar
 
elite*gold: 20
Join Date: Apr 2007
Posts: 581
Received Thanks: 253
Quote:
Originally Posted by Ripiz View Post
Ok. Thank you for information. It makes more sense now

Edit:
I installed that Kernel thing, to send input to the game. However my antivirus detected Keylogger. Is it normal?
Its been known to happen. It is a kernel level keyboard driver so the AV might flag it as suspicious but it is guaranteed to be clean, as even the source code for it is available for download.
Night Dragon is offline  
Old 08/17/2009, 18:17   #64
 
elite*gold: 0
Join Date: Jul 2008
Posts: 42
Received Thanks: 9
I dont got problems whit AV, its safe to use.
raedon is offline  
Old 08/17/2009, 18:22   #65
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 3
When I compiled and ran it, I had problems that Compot didn't detect my Rappelz window, but that one was easy to fix.
Also I noticed that it doesn't detect HP/MP, also I saw some people talking about it.
Not sure if it's fixed or not yet, but this should fix it:
Code:
        public static int AnalyseHeroHP()
        {
            Bitmap bild = Tools.GetBitmap(MainWindow.BasisX + 7, MainWindow.BasisY + 70, 200, 3);
//other code
Code:
        public static int AnalyseHeroMP()
        {
            Bitmap bild = Tools.GetBitmap(MainWindow.BasisX + 7, MainWindow.BasisY + 83, 200, 3);
//other code
Only offsets changed, they shouldn't change with different resolutions, just make sure you don't move Rappelz window after Compot has been started


EDIT:
To find out Mobs HP:
Put this attachment to same place as rappelz_window.bmp
You need two variables in MainWindow.cs:
Code:
        static public int MobWindowX;
        static public int MobWindowY;
Put this code into LogikTimer_Tick(), it will keep searching for mob info window:
Code:
                MainWindow.MobWindowX = 0;
                MainWindow.MobWindowY = 0;
                Bitmap bild = Tools.GetBitmap(0, 0, Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Bottom - 300);
                Bitmap MobWindow = null;
                try { MobWindow = new Bitmap(@"..\..\bitmaps\MobWindow.bmp"); }
                catch { throw (new Exception("Can't open MobWindow.bmp")); }
                int x = 0;
                int y = 0;
                if (Tools.SucheBildimBild(bild, MobWindow, ref x, ref y) == true) {
                    Bitmap bild2 = Tools.GetBitmap(x, y, 20, 20);
                    MainWindow.mainWindow.pictureBox1.Image = bild2;
                    MainWindow.MobWindowX = x;
                    MainWindow.MobWindowY = y;
                }
Put this into Tools.cs:
Code:
        public static int AnalyzeMobHP() {
            if (MainWindow.MobWindowX < 1 || MainWindow.MobWindowY < 1) return -1;
            Bitmap bild = Tools.GetBitmap(MainWindow.MobWindowX + 5, MainWindow.MobWindowY+30, 200, 1);
            int black = 0;
            for (int q = 0; q < 200; q++) {
                Color c = bild.GetPixel(q, 0);
                if (c.B <= 50 && c.G <= 50 && c.R <= 50) black++;
            }
            double calc = 100 - (black * 100) / 200;
            return (int)calc;
        }
Now in MainWindow.cs use Tools.AnalyzeMobHP() to call procedure, it will return -1 if MobWindow not found, and number 0 to 100 would mean Mobs HP in %
Note: Tools.AnalyzeMobHP() must be called after code, which finds MobWindow, else if will identify grass as HP Bar
Attached Images
File Type: bmp MobWindow.bmp (174 Bytes, 55 views)
Ripiz is offline  
Thanks
1 User
Old 08/17/2009, 21:04   #66
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
@Ripz:
It looks like you make good and fast progress.

From 'which one should I download' at 15:25
to the first source code post at 18:22

Lets see what you post in a few days or weeks
Gertos is offline  
Old 08/18/2009, 06:28   #67
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 3
Can I post full source, instead of pieces of code I add?
Ripiz is offline  
Old 08/18/2009, 08:17   #68
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
sure, e.g. zip your full project and upload it here.

But please don't share binaries!
This keeps the amounts of users small we don't get blocked from GG so fast.
Gertos is offline  
Old 08/18/2009, 09:59   #69
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 3
I play more than work on the bot, but here's little update on the HP/MP calculation. For me it works perfect for Characters HP/MP, Pets HP/MP.
Code:
        public static int AnalyseHeroHP()
        {
            Bitmap bild = Tools.GetBitmap(MainWindow.BasisX + 7, MainWindow.BasisY + 70, 200, 1);
            int black = 0;
            for (int q = 0; q < bild.Width; q++) {
                Color c = bild.GetPixel(q, 0);
                if (c.B <= 60 && c.G <= 60 && c.R <= 60) black++;
            }
            return 100 - (black * 100) / bild.Width;
        }
        public static int AnalyseHeroMP()
        {
            Bitmap bild = Tools.GetBitmap(MainWindow.BasisX + 7, MainWindow.BasisY + 83, 200, 1);
            int black = 0;
            for (int q = 0; q < bild.Width; q++) {
                Color c = bild.GetPixel(q, 0);
                if (c.B <= 60 && c.G <= 60 && c.R <= 60) black++;
            }
            return 100 - (black * 100) / bild.Width;
        }
        public static int AnalysePetHP()
        {
            Bitmap bild = Tools.GetBitmap(MainWindow.BasisX + 43, MainWindow.BasisY + 137, 164, 1);
            int black = 0;
            for (int q = 0; q < bild.Width; q++) {
                Color c = bild.GetPixel(q, 0);
                if (c.B <= 60 && c.G <= 60 && c.R <= 60) black++;
            }
            return 100 - (black * 100) / bild.Width;
        }
        public static int AnalysePetMP()
        {
            Bitmap bild = Tools.GetBitmap(MainWindow.BasisX + 43, MainWindow.BasisY + 143, 164, 1);
            int black = 0;
            for (int q = 0; q < bild.Width; q++) {
                Color c = bild.GetPixel(q, 0);
                if (c.B <= 60 && c.G <= 60 && c.R <= 60) black++;
            }
            return 100 - (black * 100) / bild.Width;
        }
Don't forget that you have to call it!

Note: Wasn't able to post updated version of Mobs/Targets HP as I made many edits to the code in other places

Edit:
Should bot options be available in bots main window, or in code?
Ripiz is offline  
Old 08/19/2009, 17:22   #70
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 3
Sorry for double post.

No one commented on my piece of code except GMs. 2nd code got somewhat ignored, no comments, whines - nothing!

Guess I won't post the bot then, got little piece of working code, it's running successfully and killing mobs
Ripiz is offline  
Old 08/19/2009, 19:24   #71
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
I think the most that had been active in the past days already have there own working bot

I still hope somebody builds a nice way to get a location without of the /position command.
e.g. by analysing the small map in the top right corner.

I am dreaming also of a bot that is able to do Ursa Caverns alone.
But I am far away from this at the moment
Gertos is offline  
Old 08/19/2009, 20:10   #72
 
KentuckyFC's Avatar
 
elite*gold: 5
Join Date: Oct 2008
Posts: 1,363
Received Thanks: 236
Kevzor did make a good working bot with Location without the command /position
I think the compot is now a Pripot
KentuckyFC is offline  
Old 08/20/2009, 06:38   #73
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 3
Quote:
Originally Posted by KentuckyFC View Post
Kevzor did make a good working bot with Location without the command /position
I think the compot is now a Pripot
If he based it off Compot, he shouldn't be able to sell it, however he is selling it. Isn't that against law?
Quote:
Originally Posted by Gertos View Post
I still hope somebody builds a nice way to get a location without of the /position command.
e.g. by analysing the small map in the top right corner.

I am dreaming also of a bot that is able to do Ursa Caverns alone.
But I am far away from this at the moment
Map quality too low to analyze it =/

Edit:
I downloaded his bot, however Kevzor failed badly XD You have to color pick, as he too nooby to find bars on himself, also it supports only single resolution, and you have to position window. It's more like autoclicker, than a bot.

I saw post about reading text in rappelz, such as mob names and etc. Any idea how to do that? Too lazy to search on myself XD
Ripiz is offline  
Old 08/20/2009, 08:29   #74
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
I don't think the map quality is to low for this.
But the map is generated from the real environment that is shrinked to a very small picture.
So the map looks always a bit diffrent and you can't do a simple pixel compare.
( I have already tried this ;D )
Maybe it works if you do some kind of statistic magic to get your relative movement.



About the read text function:
I have posed here a bit about my way.




There are other attemps to use some free OCR software, but I don't know how well they work.
I think the quality is maybe a lot better but the speed slower.
Gertos is offline  
Old 08/20/2009, 17:16   #75
 
elite*gold: 0
Join Date: Jun 2007
Posts: 26
Received Thanks: 2
well, just started my noob quest around Visual c# and the bot making industry...

And what about it, just after load the project, i debugged it and voilá ERRORS
hmm guess its about that kernell library, but i dont know where to put it, or where to load it.

Gives 4 errors 2x keyboard and 2x mouse.

Error 1 The type or namespace name 'KernelHotkey' could not be found (are you missing a using directive or an assembly reference?) C:\Program\Compot\KeyboardTools.cs 25 7 Compot

Just 1 more thing, i installed the kernell driver, guess its just the DLL that is missing somewhere.

Can anyone point me the right direction?
Guess it must be pretty simple stuff, but am new to this Visual c# programming.

Best regards to all
robmonkey is offline  
Reply


Similar Threads Similar Threads
GarenaHack 3.18 Latest Version Full Private version + Mega Exp Plugin Cracked
01/16/2011 - General Gaming Discussion - 10 Replies
This is the GarenaHack 3.18 latest version cracked, so you may enjoy free private version. http://i15.tinypic.com/8adnxxz.png DOWNLOAD LINKS: Garena_with_GarenaHack_3.18 as zip GarenaHackInstaller MEDIAFIRE mirror
GarenaHack 3.18 Latest Version Full Private version + Mega Exp Plugin Cracked
07/08/2010 - General Coding - 18 Replies
This is the GarenaHack 3.18 latest version cracked, so you may enjoy free private version. http://i15.tinypic.com/8adnxxz.png DOWNLOAD LINKS: Garena_with_GarenaHack_3.18 as zip GarenaHackInstaller MEDIAFIRE mirror
[Release]EasyMetin2(Lonely) DE Version Released!!!(Levelbot) NEUE VERSION
04/10/2010 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 12 Replies
poly was here



All times are GMT +1. The time now is 04:34.


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