Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz
You last visited: Today at 22:54

  • 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   #1
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
Lightbulb Compot - Version 0.01

Hello all,

I want to start with this thread a Community Project to develop a useful Bot for the Rappelz Game.

The Program will be called Compot (Community Project Bot )

*This does not work with 64bit versions of Windows! ONLY 32 bit is supported!*

The RAR file contains a small Demo how to send keys and mouse data to the game.

I think it is a easy start for all who know how to write a computer program.
More details how to get started are inside of the How_to_start.rtf file inside of the Rar file.

I don't want this program be shared as a binary.
Please just share Source-Code!

Somebody who don't invest the time to compile the tool on his own is not worse to use it.

The program is under the GNU GENERAL PUBLIC LICENSE.
So all changes to the program must be published as well!


Please be careful with this tool and hide yourself as good as possible.

Once GG noticed this program, will it be blocked after a few minutes and we have to find a new way to send our data to the game.
Attached Files
File Type: rar Compot.rar (37.8 KB, 1195 views)
Gertos is offline  
Thanks
22 Users
Old 08/01/2009, 21:38   #2
 
elite*gold: 0
Join Date: Apr 2007
Posts: 303
Received Thanks: 36
Good work Gertos!
Thumbs up!

An manchen Stellen bisschen kompliziert ausgedrückt

muss langsam an die sache ran.. momentan noch zuviel rl.....
ckret is offline  
Thanks
1 User
Old 08/01/2009, 22:44   #3
 
KentuckyFC's Avatar
 
elite*gold: 5
Join Date: Oct 2008
Posts: 1,363
Received Thanks: 236
wtf da sind bugs drin aber richtig auch wenn es noch nicht fertig ist
KentuckyFC is offline  
Thanks
1 User
Old 08/02/2009, 00:28   #4
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
Quote:
Originally Posted by KentuckyFC View Post
wtf da sind bugs drin aber richtig auch wenn es noch nicht fertig ist
Was für Bugs hast du ?
Die einfachen Sachen sollten eigentlich gehen.

-----
Der Code den ich geposted habe ist aus einem anderem Programm entstanden und ich habe wild mit Copy/Paste sachen übernommen,den Code an den Device Treiber angepast und noch ein paar neue Sachen dazugebaut. ( Device Check / Scan Codes anzeigen)

Ich habe jedoch auch bewusst Features weggelassen, weil ich hier keinen fertigen Bot posten mochte.

Kann sein das man es am Code noch sieht, wenn da Elemente drin sind die derzeit keinen Sinn machen. (e.g. 3. Tab, Statistik Tab fast leer , ... )

Das ganze ist halt eine Ausgangbasis um

Mal kucken ob sich hier eine aktive Diskussion entwickelt bei der neue schöne und effektive Lösungen entstehen.

-----


P.S Ein Feature das ich nicht beschrieben habe sollte ich hier noch erwähnen.
Statt den Start/Stop Button zu benutzten kann man auch die Rollen (Scroll Lock) Taste benutzten.

Wenn das Tool die Maus fernsteuert kann das hilfreich sein um wieder die kontrolle zu erhalten.
Gertos is offline  
Thanks
1 User
Old 08/02/2009, 00:47   #5
 
elite*gold: 0
Join Date: Apr 2007
Posts: 303
Received Thanks: 36
komischerweise kann ich das ganze nicht compilen
bekomme 4 meldungen
jeweils 2 in mousetools.cs und 2 in keyboardtools.cs
zwar 2x "kernelhotkey" could not be found und das selbe mit "mouse" und "keyboard"
wenn ich diesen fehlern nachgehe komme ich jeweils nur zu
"using kernelhotkey" und das ist unterstrichen
installiert hab ich das und die library hab ich auch im ordner
woran könnte es liegen?
ckret is offline  
Thanks
1 User
Old 08/02/2009, 01:09   #6
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
Ah , ok

Die 'using' Anwesung ist relative unwichtig und ist blos für eine verkürze Schreibweise gut.

Wichtig ist in der Projekt-Ansicht die Untergruppe 'Verweise'.
Hier muss in der KernelHotkey Zeile in den Eigenschaften der Pfad so eingestelt sein, das der Compiler die KernelHotkey.dll findet.

Bei mir ist das Feld in der IDE grau.
Vermutlich ist es am besten einen neuen Verweis einzubauen und den alten Verweis zu löschen.
Alternative sollte man auch den Pfad in der Datei Compot.csproj editieren können.
(Zeile 37)
Gertos is offline  
Old 08/02/2009, 01:37   #7
 
elite*gold: 0
Join Date: Apr 2007
Posts: 303
Received Thanks: 36
ach da war also mein fehler
danke dir...........
bis jetzt läuft alles.......maus und tastatur funktionieren perfekt
jetzt muss ich nur noch bisschen rumspielen und gucken was dabei rauskommt
ckret is offline  
Old 08/02/2009, 01:39   #8
 
elite*gold: 0
Join Date: Apr 2008
Posts: 13
Received Thanks: 1
Please keep this thread in english if possible, luckily i do understand a bit of german so not a problem for me, but the more people who understand this, the better our program will be be, at least thats how i look at it.

@Gertos
Dont worry, no bugs in your code, its exactly like you wanted it. You really have to learn abit about programming to get this compiled (honestly, just a little bit), compiler errors are quiet obvious.

I've been lolling at the bot, it seems to have the same issues with the keyboardlayout as JT's bot once had. You germans have your '/' at a strange place compared to the rest of the world

Anyway after a quick change my hero was dancing and running around 8)

Thanx alot for sharing this with us Gertos
I hope it really works out as a community project as you intend to.
hoopyfrood is offline  
Thanks
1 User
Old 08/02/2009, 07:47   #9
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
You are of cause right.

Here a summary of the above posts:

Problem:
Compiler-error in mousetools.cs and in keyboardtools.cs

Solution:
Compiler expected the KernelHotkey.dll in a wrong place.
Change the path so it finds your local KernelHotkey.dll.
( Edit it in the IDE or change it inside of the file Compot.csproj (Line 37)

Problem:
You can't stop the Tool, because it has control over the mouse and you can't reach the Stop-Button

Solution:
Use the Scroll Lock Key (Rollen Key in German )


Problem:
You Hero isn't dancing

Solution:
In Germany we reach the "/" with "Shift + 7"
So you have to modify the Keyboard Scan Code inside of the file mousetools.cs .
Use the 'Display Keyboard Scan Code' Function from the Menu to find your correct numbers.
Gertos is offline  
Old 08/02/2009, 15:54   #10
 
elite*gold: 0
Join Date: Apr 2007
Posts: 303
Received Thanks: 36
Quote:
Originally Posted by KentuckyFC View Post
wtf da sind bugs drin aber richtig auch wenn es noch nicht fertig ist
da ist ein käfer in deinem kopf

@gertos
i dont finde the files in which you have scripted the movement of the mouse and keyboard sendings
search through them but didnt find any hint
ckret is offline  
Old 08/02/2009, 16:38   #11
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
@Ckret:

I am not sure if I have understand your your question.

But here the chain for the keyborad.

The timer is calling LogikTimer_Tick()
LogikTimer_Tick() is calling the function KeyboardTools.SendKey("{RETURN}");

So inside of the KeyboardTools Class is the function SendKey.

This is calling SendKeyCode_down_up(28);


Indise of SendKeyCode_down_up is this code:

SendKeyCode(KeyCode, 0);
SendKeyCode(KeyCode, 1);

This is one line for Key Down and one for Key up.

And this is the final function

Code:
       private void SendKeyCode(int KeyCode, int Flags)
        {

            Keyboard.Stroke Key = new Keyboard.Stroke();
            Key.code = (ushort)KeyCode;                    
            if (Flags == 0)
                Key.state = Keyboard.States.MAKE;      // key down
            else
                Key.state = Keyboard.States.BREAK;     // key up

            Keyboard.Write(Key);                          // Send Key to Device Driver

        }
This is the interface to the Device Driver



I think you havn't found one very usefull function of the Visual Studio IDE
Right-Click a Fuction and use "Geh zur Definition" / "Goto Definition (??)"
This will jump to the function inside of the Editor .
Gertos is offline  
Old 08/02/2009, 18:18   #12
 
elite*gold: 0
Join Date: Apr 2008
Posts: 13
Received Thanks: 1
@Gertos, Thanx for waking up the coder in me, i'm having loads of fun with your code.

Since i dont want to ks or dont want to wait for some timer before i start picking up stuff i had to make a function to analyse the mobs hp.

Comments welcome

Code:
public static int AnalyseMob()
        {
            // Mob HP starts at BasisX + 489
            // Mob HP ends at BasisX + 685
            Bitmap bild = Tools.GetBitmap(MainWindow.BasisX + 489, MainWindow.BasisY + 52, 196, 1);
            int black = 0;
            int rot = 0;
            int unknowen = 0;
            for (int q = 0; q < bild.Width; q++)
            {
                Color c = bild.GetPixel(q, 0);
                if ((c.B < 40) && (c.G < 40) && (c.R < 40))
                {
                    black++;
                }
                else if ((c.R > 100) && (c.B + 25 <= c.G) && (c.B + 25 <= c.G))
                {
                    rot++;
                }
                else
                {
                    unknowen++;
                }
            }
            int Prozent = 100;
            if (rot == 0 && black > 195)
                Prozent = 0;
            else if (rot > 0 && (rot + black > 0))
                Prozent = (rot * 100) / (rot + black);
            else
                Prozent = -1;
            return Prozent;
        }
Now the bot can attack knowing its at 100% and move on when it's not at 100%, also you know when to start looting.
Btw this is for 99% copied and pasted form other parts of the code, not hard at all
hoopyfrood is offline  
Old 08/02/2009, 19:06   #13
 
Gertos's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 404
Received Thanks: 120
some feedback that may help with the code that comes next.

* If you search for a mob , it happens sometimes that the sky looks like a red bar.
Maybe you add a 2. way to be sure there is a box.

* Don't attack Mobs that are not at full health. So you don't steal a mob from somebody else. ( Important to hide yourself and don't get pk'ed so fast.)

* I have seen it many times that the Mob is still alive , even if you see no red bar on the screen. So it is good to hit a maybe dead mob once more to be sure that it is really dead.
Gertos is offline  
Old 08/03/2009, 14:51   #14
 
elite*gold: 0
Join Date: Apr 2007
Posts: 303
Received Thanks: 36
after adding hoopyfroods code to the bot and putting a display for the mobs health i see some confusing things



as you see the bot shows that mob got 100% life
but after some attacks it shows that the mob got only 1% oder sometimes 4% or other confusing things
sometimes the bot shows that the mob got -1% life
like the pc hp you see in the screens
maybe some clues how this could be changed?
ckret is offline  
Old 08/03/2009, 16:19   #15
 
elite*gold: 0
Join Date: Apr 2008
Posts: 13
Received Thanks: 1
If the mobs shows -1 hp, it means it can't find a red or a black pixel, but finds a pixel of another color. This should mean your not looking at the right pixels.

Are you sure, the pixel coordinates match your setup?

On the other hand, are we certain the mob hp bar is always at the same coordinates relative to the window?

I had the same issues when looking at analyse routines. I thought Gertos changed some of the values so we had to do some work (and get the logic) to get the analyse routines working. I had to edit them to get them working ok.

And just to be sure, i'm running rappelz windowed at 1024/768, if you use another res, things wont work for sure.
hoopyfrood 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 +2. The time now is 22:54.


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.