Dragon Prophet Mini-Game Treasure Box

Ask questions about cheating in any games you would like. Does not need to pertain to MicroMacro.
Post Reply
Message
Author
User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Dragon Prophet Mini-Game Treasure Box

#1 Post by BlubBlab » Mon Sep 29, 2014 6:02 am

In Dragon Prophet there is a mini-game which is similar to the board game Mastermind it use number instead of colours. (http://en.wikipedia.org/wiki/Mastermind ... rd_game%29)

I was so annoyed by this that I wrote a tool which helps the player to solve this and crack the code.(because of this the tool is called codebreaker)

The Tool is written in c# .NET source code.(If you need it use a reverse engineer tool)
Image
Use the code which the tool gives you and than put in the response off the game(RED/GREEN/NOTHING) and press solve/next.
Repeat that until the chest is opened.
Attachments
Codebreaker-Code.zip
Source Code
(12.08 KiB) Downloaded 122 times
Codebreaker.zip
Codebreaker V2
(6.37 KiB) Downloaded 218 times
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Dragon Prophet Mini-Game Treasure Box

#2 Post by BlubBlab » Fri Nov 21, 2014 4:52 am

Because it was wished I uploaded the source code. I also uploaded a new version and greetings to the 17 guys who downloaded the previous version before :D

What I changed:
If the program hit the end of the list a popup window show up, means when only 1 solution is possible any more or when you did something wrong.

I also modified the scoring when every solution seems the have the same scoring the program tries to make a guess by targeting the solution which "hide" the most

Code: Select all

if (bestscore <= 1 || (isallequal && list.Count > 1))
            {
                bestscore = 500;
                foreach (Code element in list)
                {
                    int guess = element.getNum();
                    int score = 0;
                    foreach (Code element2 in list)
                    {
                       
                         score =  score + (element2.guessGreen(guess)+ element2.guessRed(guess));
                        
                    }
                    if (score < bestscore)
                    {
                        bestscore = score;
                        bestchoice = guess;
                    }
                }
            }
Maybe I will add a check box in the next version where you can flip around that behaviour but since it is an exception handling I don't see a point for it.

In short:
- added popup window
- improve scoring
- changed start number
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests