I have made MasterMind game, like official Puzzle Chest: http://uo.stratics.com/content/misc/puzzle.shtml but without start hints, it is not necessary I think.
Game is made as function, returns 1 on succes or 0 on fail, so it can be used to chests, levers, doors, mobiles etc.
At first I used easier version, where you could check answer without filling all stands with stones. You can easy change this here:
Code: Select all
if(res[0] == 999)
if(stands[1] && stands[2] && stands[3] && stands[4] && stands[5]) //--here we check that all stands are full --
(...)
endif
endif
I hope this will be useful to someone.
Pakage contains inc file, and one chest with puzzle lock as simple example.
Sorry for all mistakes that I made, I promise to fix.
Enjoy!