######## ͸Ʊű By feifei1937 @ 2009/5/2
######## Ʊ뷨ҪнʱķţһƱһ
######## 6ţ졢֡ħÿ˫ȸų鵽6еһ
######## Ȼضжнʲôʲôдں
######## ļҴһ£ܹĿ6*6*6*6=1296
######## һȽõ2ϣнԼ0.154%Ƚ4ϣнԼ0.3%Ƚ14ϣнԼ1.08%


block	item 161 >= 2
	endwindow "\n\n\n\n@cԲϲЯ1ŲƱ"
########## һε #############
block	stampcount 161 == 0
	localcount1 = random 6,0

	if localcount1 == 1
		addstampcount 161,1
		systemmessage 7040
	endif
	if localcount1 == 2
		addstampcount 161,2
		systemmessage 7041
	endif
	if localcount1 == 3
		addstampcount 161,3
		systemmessage 7042
	endif
	if localcount1 == 4
		addstampcount 161,4
		systemmessage 7043
	endif
	if localcount1 == 5
		addstampcount 161,5
		systemmessage 7044
	endif
	if localcount1 == 6
		addstampcount 161,6
		systemmessage 7045
	endif
########## ڶε #############
block	stampcount 161 <= 6 && stampcount 161 >= 1
	localcount2 = random 6,0

	if localcount2 == 1
		addstampcount 161,10
		systemmessage 7050
	endif
	if localcount2 == 2
		addstampcount 161,20
		systemmessage 7051
	endif
	if localcount2 == 3
		addstampcount 161,30
		systemmessage 7052
	endif
	if localcount2 == 4
		addstampcount 161,40
		systemmessage 7053
	endif
	if localcount2 == 5
		addstampcount 161,50
		systemmessage 7054
	endif
	if localcount2 == 6
		addstampcount 161,60
		systemmessage 7055
	endif
########## ε #############
block	stampcount 161 <= 66 && stampcount 161 >= 11
	localcount3 = random 6,0

	if localcount3 == 1
		addstampcount 161,100
		systemmessage 7060
	endif
	if localcount3 == 2
		addstampcount 161,200
		systemmessage 7061
	endif
	if localcount3 == 3
		addstampcount 161,300
		systemmessage 7062
	endif
	if localcount3 == 4
		addstampcount 161,400
		systemmessage 7063
	endif
	if localcount3 == 5
		addstampcount 161,500
		systemmessage 7064
	endif
	if localcount3 == 6
		addstampcount 161,600
		systemmessage 7065
	endif
########## Ĵε #############
block	stampcount 161 <= 666 && stampcount 161 >= 111
	localcount4 = random 6,0

	if localcount4 == 1
		addstampcount 161,1000
		systemmessage 7070
	endif
	if localcount4 == 2
		addstampcount 161,2000
		systemmessage 7071
	endif
	if localcount4 == 3
		addstampcount 161,3000
		systemmessage 7072
	endif
	if localcount4 == 4
		addstampcount 161,4000
		systemmessage 7073
	endif
	if localcount4 == 5
		addstampcount 161,5000
		systemmessage 7074
	endif
	if localcount4 == 6
		addstampcount 161,6000
		systemmessage 7075
	endif

########## ε #############
block	stampcount 161 <= 6666 && stampcount 161 >= 1111

########### һȽ ##############
### н ħħ123456ֱ졢֡ħͬעҪ
	if stampcount 161 == 4321 || stampcount 161 == 6543
		systemmessage 7030
		killitem 161,1
		giveitem 165
################ н˵仰 ###############
	localcount7 = random 5,0
		if localcount7 == 1
			message 7021
		endif
		if localcount7 == 2
			message 7022
		endif
		if localcount7 == 3
			message 7023
		endif
		if localcount7 == 4
			message 7024
		endif
		if localcount7 == 5
			message 7025
		endif
	else

########### Ƚ ###############
### н ħ֡ħħֱ
	if stampcount 161 == 2143 || stampcount 161 == 4343 || stampcount 161 == 6521 || stampcount 161 == 2165
		systemmessage 7031
		killitem 161,1
		giveitem 166
################ н˵仰 ###############
	localcount7 = random 5,0
		if localcount7 == 1
			message 7021
		endif
		if localcount7 == 2
			message 7022
		endif
		if localcount7 == 3
			message 7023
		endif
		if localcount7 == 4
			message 7024
		endif
		if localcount7 == 5
			message 7025
		endif
	else

########### Ƚ ###############
### н ĸֿͬ֡֡֡ħ챦졢졢
	if stampcount 161 == 1111 || stampcount 161 == 2222 || stampcount 161 == 3333 || stampcount 161 == 4444 || stampcount 161 == 5555 || stampcount 161 == 6666 || stampcount 161 == 2211 || stampcount 161 == 2121 || stampcount 161 == 4311 || stampcount 161 == 6511 || stampcount 161 == 1165 || stampcount 161 == 6565 || stampcount 161 == 1155 || stampcount 161 == 2155
		systemmessage 7032
		killitem 161,1
		giveitem 167
################ н˵仰 ###############
	localcount7 = random 5,0
		if localcount7 == 1
			message 7021
		endif
		if localcount7 == 2
			message 7022
		endif
		if localcount7 == 3
			message 7023
		endif
		if localcount7 == 4
			message 7024
		endif
		if localcount7 == 5
			message 7025
		endif

	else

	if stampcount 161 >= 1111 && stampcount 161 <= 6666

		if gold >= 100
		addgold -100
		else
		endwindow "\n\n\n\n@cǮŶ~~"
		endif	
######### ֳôcaseΪ˼ӿstampcountֵΪ0ٶ ########
	*case1*
		if stampcount 161 > 6000
		addstampcount 161,-6000
		gotoB case1
		endif
	*case2*
		if stampcount 161 > 5000
		addstampcount 161,-5000
		gotoB case2
		endif
	*case3*
		if stampcount 161 > 4000
		addstampcount 161,-4000
		gotoB case3
		endif
	*case4*
		if stampcount 161 > 3000
		addstampcount 161,-3000
		gotoB case4
		endif
	*case5*
		if stampcount 161 > 2000
		addstampcount 161,-2000
		gotoB case5
		endif
	*case6*
		if stampcount 161 > 1000
		addstampcount 161,-1000
		gotoB case6
		endif
##############################################
	*case11*
		if stampcount 161 > 600
			addstampcount 161,-600
			gotoB case11
		endif
	*case12*
		if stampcount 161 > 500
			addstampcount 161,-500
			gotoB case12
		endif
	*case13*
		if stampcount 161 > 400
			addstampcount 161,-400
			gotoB case13
		endif
	*case14*
		if stampcount 161 > 300
			addstampcount 161,-300
			gotoB case14
		endif
	*case15*
		if stampcount 161 > 200
			addstampcount 161,-200
			gotoB case15
		endif
	*case16*
		if stampcount 161 > 100
			addstampcount 161,-100
			gotoB case16
		endif
	*case21*
		if stampcount 161 > 0
			addstampcount 161,-1
			gotoB case21
		endif
############# ûн˵仰 ######################
	localcount7 = random 10,0
	if localcount7 == 1
		message 7010
	endif
	if localcount7 == 2
		message 7011
	endif
	if localcount7 == 3
		message 7012
	endif
	if localcount7 == 4
		message 7013
	endif
	if localcount7 == 5
		message 7015
	endif
	if localcount7 == 6
		message 7020
	endif
	if localcount7 == 7
		message 7016
	endif
	if localcount7 == 8
		message 7017
	endif
	if localcount7 == 9
		message 7018
	endif
	if localcount7 == 10
		message 7019
	endif

	endif
	endif
	endif
	endif