Page 1 of 1

MasterMind Game (Puzzle Chest)

Posted: Sun Jul 11, 2010 2:43 pm
by Scalaris
Hi,
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 translate script, but of course, my translation needs to be improved ;)
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!

Re: MasterMind Game (Puzzle Chest)

Posted: Sat Jul 17, 2010 6:27 pm
by *Edwards
Loving it! :D

I've integrated it to Fantasia Shard. They will love it :) Funtastic!

Re: MasterMind Game (Puzzle Chest)

Posted: Sat Aug 14, 2010 7:01 pm
by Joram
Can someone help me integrated this into a pol098 with wod098 scripts?'




Thanks

Re: MasterMind Game (Puzzle Chest)

Posted: Tue Jul 01, 2014 6:04 am
by Harley
There are some error in:

Code: Select all

	GFResizePic(gump,440,150,5100,30,30);
	GFAddButton(gump, 420, 160, 5032, 5032, GF_CLOSE_BTN, 5 );	//button right
	GFTilePic(gump, 435, 160, 6253 );		//purple
Must be

Code: Select all

	GFResizePic(gump,440,150,5100,30,30);
	GFAddButton(gump, 420, 160, 5032, 5032, GF_CLOSE_BTN, 15 );	//button right
	GFTilePic(gump, 435, 160, 6253 );		//purple