MasterMind Game (Puzzle Chest)

Post your Custom Scripts or Packages.

Moderator: POL Developer

Post Reply
Scalaris
New User
Posts: 7
Joined: Thu Apr 03, 2008 4:52 am
Location: Poland

MasterMind Game (Puzzle Chest)

Post 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!
Attachments
mastermind.rar
MasterMind Game (Puzzle Lock)
(2.79 KiB) Downloaded 413 times
User avatar
*Edwards
Forum Regular
Posts: 303
Joined: Fri Dec 28, 2007 11:19 pm
Location: Montreal, Canada

Re: MasterMind Game (Puzzle Chest)

Post by *Edwards »

Loving it! :D

I've integrated it to Fantasia Shard. They will love it :) Funtastic!
Joram
New User
Posts: 9
Joined: Thu Aug 12, 2010 8:06 am

Re: MasterMind Game (Puzzle Chest)

Post by Joram »

Can someone help me integrated this into a pol098 with wod098 scripts?'




Thanks
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am
Location: Germany

Re: MasterMind Game (Puzzle Chest)

Post 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
Post Reply