Compare commits
	
		
			24 Commits
		
	
	
		
			44e70d6d43
			...
			cq-mengge
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7e366960c2 | |||
| 8cf19dc965 | |||
| 2401c4a89a | |||
| 403b49453e | |||
| 971de6ec9f | |||
| 45a66fe5bc | |||
| a23b1c628f | |||
| e31f831a87 | |||
| d21d57ec67 | |||
| 50ee99099e | |||
| db9d3ca9a8 | |||
|  | 1d21e50432 | ||
|  | f3c1acce25 | ||
|  | 8104229b4f | ||
| 0cc5ae49fc | |||
| 9ec0f9065f | |||
| dabd1fa4cf | |||
| dc2c88eb76 | |||
| 28e51858f5 | |||
| 384db24daa | |||
| 4161e71184 | |||
| 08dcb9fe93 | |||
| 6320dcde6f | |||
| c89dcae68d | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -7,3 +7,4 @@ LogicServer/scripterror.txt | |||||||
| core.* | core.* | ||||||
| .vscode/ | .vscode/ | ||||||
| .idea/ | .idea/ | ||||||
|  | LogicServer/data/runtime/ | ||||||
|   | |||||||
| @@ -41,9 +41,9 @@ DBServer = { | |||||||
| 	--数据库连接配置 | 	--数据库连接配置 | ||||||
| 	SQL = { | 	SQL = { | ||||||
| 		Host = "127.0.0.1", | 		Host = "127.0.0.1", | ||||||
| 		Port = 3308, | 		Port = 3306, | ||||||
| 		DBName = "mir_actor_s1", | 		DBName = "mir_actor_s1", | ||||||
| 		DBUser = "root", | 		DBUser = "root", | ||||||
| 		DBPass = "mysql_Adkijc", | 		DBPass = "mysql_y8NXNT", | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| @@ -6,6 +6,10 @@ path=`pwd` | |||||||
| echo "======================【启动】========================" | echo "======================【启动】========================" | ||||||
| datetime=`date "+%Y-%m-%d.%H:%M:%S"` | datetime=`date "+%Y-%m-%d.%H:%M:%S"` | ||||||
|  |  | ||||||
|  | echo "["$datetime"] 正在启动 build 服务群..." | ||||||
|  |  | ||||||
|  | /data/server/build/run.sh | ||||||
|  |   | ||||||
| echo "["$datetime"] 正在启动 DB 服务器 [dbserver_r]..." | echo "["$datetime"] 正在启动 DB 服务器 [dbserver_r]..." | ||||||
|  |  | ||||||
| $path/dbserver_r $path/DBServerLinux.txt | $path/dbserver_r $path/DBServerLinux.txt | ||||||
| @@ -3,10 +3,10 @@ CrossSourceServerConfig={ | |||||||
| [1] = { | [1] = { | ||||||
| 	kfid = 1, | 	kfid = 1, | ||||||
| 	openday = {1,-1}, | 	openday = {1,-1}, | ||||||
| 	GateAddr = "100.88.157.105", | 	GateAddr = "127.0.0.1", | ||||||
| 	GatePort = 10001, | 	GatePort = 10001, | ||||||
| 	CrossIP = "127.0.0.1", | 	CrossIP = "127.0.0.1", | ||||||
| 	CrossPort = 10002, | 	CrossPort = 10002, | ||||||
| 	map = {id=150,range={53,36,3,3,}}, | 	map = {id=1,range={53,36,3,3,}}, | ||||||
| } | } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -798,7 +798,7 @@ ItemMergeConfig = { | |||||||
| 				mergebutton10 = 1, | 				mergebutton10 = 1, | ||||||
| 				Eid = 57, | 				Eid = 57, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 365, type = 0, count = 5 }, { id = 2, type = 2, count = 1000 } }, | 				table = { { id = 365, type = 0, count = 3 }, { id = 2, type = 2, count = 1000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -813,7 +813,7 @@ ItemMergeConfig = { | |||||||
| 				mergebutton10 = 1, | 				mergebutton10 = 1, | ||||||
| 				Eid = 58, | 				Eid = 58, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 366, type = 0, count = 5 }, { id = 2, type = 2, count = 3000 } }, | 				table = { { id = 366, type = 0, count = 3 }, { id = 2, type = 2, count = 3000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -828,7 +828,7 @@ ItemMergeConfig = { | |||||||
| 				mergebutton10 = 1, | 				mergebutton10 = 1, | ||||||
| 				Eid = 59, | 				Eid = 59, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 367, type = 0, count = 5 }, { id = 2, type = 2, count = 5000 } }, | 				table = { { id = 367, type = 0, count = 3 }, { id = 2, type = 2, count = 5000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -843,7 +843,7 @@ ItemMergeConfig = { | |||||||
| 				mergebutton10 = 1, | 				mergebutton10 = 1, | ||||||
| 				Eid = 60, | 				Eid = 60, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 368, type = 0, count = 5 }, { id = 2, type = 2, count = 8000 } }, | 				table = { { id = 368, type = 0, count = 3 }, { id = 2, type = 2, count = 8000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -856,7 +856,7 @@ ItemMergeConfig = { | |||||||
| 				text = "合成", | 				text = "合成", | ||||||
| 				Eid = 61, | 				Eid = 61, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 369, type = 0, count = 5 }, { id = 2, type = 2, count = 15000 } }, | 				table = { { id = 369, type = 0, count = 3 }, { id = 2, type = 2, count = 15000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -869,7 +869,7 @@ ItemMergeConfig = { | |||||||
| 				text = "合成", | 				text = "合成", | ||||||
| 				Eid = 62, | 				Eid = 62, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 370, type = 0, count = 5 }, { id = 2, type = 2, count = 30000 } }, | 				table = { { id = 370, type = 0, count = 3 }, { id = 2, type = 2, count = 30000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -882,7 +882,7 @@ ItemMergeConfig = { | |||||||
| 				text = "合成", | 				text = "合成", | ||||||
| 				Eid = 63, | 				Eid = 63, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 371, type = 0, count = 5 }, { id = 2, type = 2, count = 50000 } }, | 				table = { { id = 371, type = 0, count = 3 }, { id = 2, type = 2, count = 50000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -895,7 +895,7 @@ ItemMergeConfig = { | |||||||
| 				text = "合成", | 				text = "合成", | ||||||
| 				Eid = 64, | 				Eid = 64, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 863, type = 0, count = 5 }, { id = 2, type = 2, count = 80000 } }, | 				table = { { id = 863, type = 0, count = 3 }, { id = 2, type = 2, count = 80000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -908,7 +908,7 @@ ItemMergeConfig = { | |||||||
| 				text = "合成", | 				text = "合成", | ||||||
| 				Eid = 65, | 				Eid = 65, | ||||||
| 				second_index = 7, | 				second_index = 7, | ||||||
| 				table = { { id = 864, type = 0, count = 5 }, { id = 2, type = 2, count = 120000 } }, | 				table = { { id = 864, type = 0, count = 3 }, { id = 2, type = 2, count = 120000 } }, | ||||||
| 				openserverday = 1, | 				openserverday = 1, | ||||||
| 				level = 1, | 				level = 1, | ||||||
| 				redpointlimit = { zsLevel = 2 }, | 				redpointlimit = { zsLevel = 2 }, | ||||||
| @@ -1946,6 +1946,19 @@ ItemMergeConfig = { | |||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		[2] = { | 		[2] = { | ||||||
|  | 			[72] = { | ||||||
|  | 				circle = 0, | ||||||
|  | 				compose = { id = 840, type = 0, count = 1 }, | ||||||
|  | 				index = 3, | ||||||
|  | 				text = "兑换", | ||||||
|  | 				buttontxt10 = "合成10次", | ||||||
|  | 				mergebutton10 = 1, | ||||||
|  | 				Eid = 72, | ||||||
|  | 				second_index = 2, | ||||||
|  | 				table = { { id = 838, type = 0, count = 10 } }, | ||||||
|  | 				openserverday = 1, | ||||||
|  | 				level = 1, | ||||||
|  | 			}, | ||||||
| 			[73] = { | 			[73] = { | ||||||
| 				circle = 0, | 				circle = 0, | ||||||
| 				compose = { id = 838, type = 0, count = 10 }, | 				compose = { id = 838, type = 0, count = 10 }, | ||||||
|   | |||||||
| @@ -1,102 +1,163 @@ | |||||||
| --AB-特权.xlsx 特权 | MonthCardConfig = { | ||||||
| MonthCardConfig={ | 	[1] = { | ||||||
| [1] = { | 		idx = 1, | ||||||
| 	idx = 1, | 		name = "免费特权", | ||||||
| 	name = "免费特权", | 		dailyAward = {}, | ||||||
| 	consume = {type=2,id=2,count=10000}, | 		buyAward = { { id = 474, type = 0, count = 1 } }, | ||||||
| 	buyAward = {{type=0,id=474,count=1}}, | 		consume = { id = 2, type = 2, count = 10000 }, | ||||||
| 	dailyAward = {}, | 	}, | ||||||
| }, | 	[2] = { | ||||||
| [2] = { | 		idx = 2, | ||||||
| 	idx = 2, | 		name = "月卡", | ||||||
| 	name = "月卡", | 		dailyAward = { { id = 302, type = 0, count = 1 }, { id = 269, type = 0, count = 1 }, { id = 261, type = 0, count = 5 } }, | ||||||
| 	consume = {type=4,id=4,count=280}, | 		buyAward = { { id = 249, type = 0, count = 1 }, { id = 302, type = 0, count = 8 } }, | ||||||
| 	buyAward = {{type=0,id=249,count=1},{type=0,id=302,count=8}}, | 		consume = { id = 4, type = 4, count = 280 }, | ||||||
| 	dailyAward = {{type=0,id=302,count=1},{type=0,id=269,count=1},{type=0,id=261,count=5}}, | 	}, | ||||||
| }, | 	[3] = { | ||||||
| [3] = { | 		idx = 3, | ||||||
| 	idx = 3, | 		name = "大药月卡", | ||||||
| 	name = "大药月卡", | 		dailyAward = { { id = 311, type = 0, count = 1 } }, | ||||||
| 	consume = {type=4,id=4,count=1000}, | 		buyAward = { { id = 3, type = 3, count = 66 }, { id = 11, type = 11, count = 5 } }, | ||||||
| 	buyAward = {{type=3,id=3,count=66},{type=11,id=11,count=5}}, | 		consume = { id = 4, type = 4, count = 1000 }, | ||||||
| 	dailyAward = {{type=0,id=311,count=1}}, | 	}, | ||||||
| }, | 	[4] = { | ||||||
| [4] = { | 		idx = 4, | ||||||
| 	idx = 4, | 		name = "永久卡", | ||||||
| 	name = "永久卡", | 		dailyAward = { { id = 7, type = 7, count = 10 }, { id = 2, type = 2, count = 200000 } }, | ||||||
| 	consume = {type=4,id=4,count=1580}, | 		buyAward = { { id = 462, type = 0, count = 1 }, { id = 468, type = 0, count = 1 } }, | ||||||
| 	buyAward = {{type=0,id=462,count=1},{type=0,id=468,count=1}}, | 		consume = { id = 4, type = 4, count = 1580 }, | ||||||
| 	dailyAward = {{type=7,id=7,count=10},{type=2,id=2,count=200000}}, | 	}, | ||||||
| }, | 	[5] = { | ||||||
| [5] = { | 		idx = 5, | ||||||
| 	idx = 5, | 		dailyAward = {}, | ||||||
| 	name = "白卡", | 		Ybprice = 2, | ||||||
| 	superRightLV = 1, | 		superRightLV = 1, | ||||||
| 	consume = {type=0,id=1242,count=2}, | 		name = "白卡", | ||||||
| 	buyAward = {{type=0,id=474,count=1},{type=0,id=261,count=50},{type=0,id=926,count=1},{type=3,id=3,count=18},{type=0,id=1058,count=1},{type=0,id=300,count=2}}, | 		ViewType = 2, | ||||||
| 	dailyAward = {}, | 		buyAward = { | ||||||
| }, | 			{ id = 474, type = 0, count = 1 }, | ||||||
| [6] = { | 			{ id = 261, type = 0, count = 50 }, | ||||||
| 	idx = 6, | 			{ id = 926, type = 0, count = 1 }, | ||||||
| 	name = "绿卡", | 			{ id = 3, type = 3, count = 18 }, | ||||||
| 	superRightLV = 2, | 			{ id = 1058, type = 0, count = 1 }, | ||||||
| 	consume = {type=0,id=1242,count=10}, | 			{ id = 300, type = 0, count = 2 }, | ||||||
| 	buyAward = {{type=0,id=475,count=1},{type=0,id=823,count=1},{type=0,id=261,count=100},{type=0,id=367,count=1},{type=0,id=249,count=2},{type=0,id=927,count=1}}, | 		}, | ||||||
| 	dailyAward = {}, | 		pictures = { "tq_p_1_1", "tq_p_1_2", "tq_p_1_3" }, | ||||||
| }, | 		consume = { id = 1242, type = 0, count = 2 }, | ||||||
| [7] = { | 	}, | ||||||
| 	idx = 7, | 	[6] = { | ||||||
| 	name = "蓝卡", | 		idx = 6, | ||||||
| 	superRightLV = 3, | 		dailyAward = {}, | ||||||
| 	consume = {type=0,id=1242,count=20}, | 		Ybprice = 10, | ||||||
| 	buyAward = {{type=0,id=468,count=1},{type=0,id=507,count=1},{type=0,id=853,count=113},{type=0,id=854,count=113},{type=0,id=249,count=2},{type=0,id=928,count=1}}, | 		superRightLV = 2, | ||||||
| 	dailyAward = {}, | 		name = "绿卡", | ||||||
| 	JiShouCount = 1, | 		ViewType = 2, | ||||||
| }, | 		buyAward = { | ||||||
| [8] = { | 			{ id = 475, type = 0, count = 1 }, | ||||||
| 	idx = 8, | 			{ id = 823, type = 0, count = 1 }, | ||||||
| 	name = "紫卡", | 			{ id = 261, type = 0, count = 100 }, | ||||||
| 	superRightLV = 4, | 			{ id = 367, type = 0, count = 1 }, | ||||||
| 	consume = {type=0,id=1242,count=70}, | 			{ id = 249, type = 0, count = 2 }, | ||||||
| 	buyAward = {{type=0,id=929,count=1},{type=0,id=976,count=1},{type=0,id=852,count=30},{type=0,id=250,count=2},{type=0,id=853,count=450},{type=0,id=854,count=450}}, | 			{ id = 927, type = 0, count = 1 }, | ||||||
| 	dailyAward = {}, | 		}, | ||||||
| 	JiShouCount = 2, | 		pictures = { "tq_p_2_2", "tq_p_2_1", "tq_p_2_3" }, | ||||||
| }, | 		consume = { id = 1242, type = 0, count = 6 }, | ||||||
| [9] = { | 	}, | ||||||
| 	idx = 9, | 	[7] = { | ||||||
| 	name = "橙卡", | 		idx = 7, | ||||||
| 	superRightLV = 5, | 		dailyAward = {}, | ||||||
| 	consume = {type=0,id=1242,count=220}, | 		Ybprice = 20, | ||||||
| 	buyAward = {{type=0,id=930,count=1},{type=0,id=824,count=1},{type=0,id=953,count=14},{type=0,id=977,count=1},{type=0,id=300,count=50},{type=0,id=250,count=10},}, | 		superRightLV = 3, | ||||||
| 	dailyAward = {}, | 		name = "蓝卡", | ||||||
| 	JiShouCount = 3, | 		ViewType = 2, | ||||||
| }, | 		buyAward = { | ||||||
| [10] = { | 			{ id = 468, type = 0, count = 1 }, | ||||||
| 	idx = 10, | 			{ id = 507, type = 0, count = 1 }, | ||||||
| 	name = "首充卡", | 			{ id = 853, type = 0, count = 113 }, | ||||||
| 	superRightLV = -1, | 			{ id = 854, type = 0, count = 113 }, | ||||||
| 	AtvPaoDianPlus = 20, | 			{ id = 249, type = 0, count = 2 }, | ||||||
| }, | 			{ id = 928, type = 0, count = 1 }, | ||||||
| [11] = { | 		}, | ||||||
| 	idx = 11, | 		pictures = { "tq_p_4_3", "tq_p_3_1", "tq_p_3_3" }, | ||||||
| 	name = "白卡", | 		consume = { id = 1242, type = 0, count = 16 }, | ||||||
| }, | 	}, | ||||||
| [12] = { | 	[8] = { | ||||||
| 	idx = 12, | 		idx = 8, | ||||||
| 	name = "橙星", | 		dailyAward = {}, | ||||||
| 	superRightLV = 6, | 		Ybprice = 70, | ||||||
| 	consume = {type=0,id=1242,count=250}, | 		superRightLV = 4, | ||||||
| 	buyAward = {{type=0,id=1073,count=1},{type=0,id=1146,count=1},{type=0,id=1066,count=300},{type=0,id=1115,count=1},{type=0,id=970,count=666},{type=0,id=300,count=100},}, | 		name = "紫卡", | ||||||
| 	dailyAward = {}, | 		ViewType = 2, | ||||||
| 	JiShouCount = 3, | 		buyAward = { | ||||||
| }, | 			{ id = 929, type = 0, count = 1 }, | ||||||
| [13] = { | 			{ id = 976, type = 0, count = 1 }, | ||||||
| 	idx = 13, | 			{ id = 852, type = 0, count = 30 }, | ||||||
| 	name = "橙月", | 			{ id = 250, type = 0, count = 2 }, | ||||||
| 	superRightLV = 7, | 			{ id = 853, type = 0, count = 450 }, | ||||||
| 	consume = {type=0,id=1242,count=350}, | 			{ id = 854, type = 0, count = 450 }, | ||||||
| 	buyAward = {{type=0,id=1273,count=1},{type=0,id=1272,count=1},{type=0,id=1241,count=1},{type=0,id=265,count=1888},{type=0,id=970,count=666},{type=0,id=852,count=158},}, | 		}, | ||||||
| 	dailyAward = {}, | 		pictures = { "tq_p_4_2", "tq_p_4_1", "tq_p_3_2" }, | ||||||
| 	JiShouCount = 3, | 		consume = { id = 1242, type = 0, count = 40 }, | ||||||
| }, | 	}, | ||||||
|  | 	[9] = { | ||||||
|  | 		idx = 9, | ||||||
|  | 		dailyAward = {}, | ||||||
|  | 		Ybprice = 220, | ||||||
|  | 		superRightLV = 5, | ||||||
|  | 		name = "橙卡", | ||||||
|  | 		ViewType = 2, | ||||||
|  | 		heraldid = "tq_btnt14_2", | ||||||
|  | 		buyAward = { | ||||||
|  | 			{ id = 930, type = 0, count = 1 }, | ||||||
|  | 			{ id = 824, type = 0, count = 1 }, | ||||||
|  | 			{ id = 953, type = 0, count = 14 }, | ||||||
|  | 			{ id = 977, type = 0, count = 1 }, | ||||||
|  | 			{ id = 300, type = 0, count = 50 }, | ||||||
|  | 			{ id = 250, type = 0, count = 10 }, | ||||||
|  | 		}, | ||||||
|  | 		pictures = { "tq_p_5_2", "tq_p_5_1", "tq_p_5_3" }, | ||||||
|  | 		consume = { id = 1242, type = 0, count = 100 }, | ||||||
|  | 	}, | ||||||
|  | 	[10] = { idx = 10, name = "首充卡", superRightLV = -1 }, | ||||||
|  | 	[11] = { idx = 11, name = "白卡" }, | ||||||
|  | 	[12] = { | ||||||
|  | 		idx = 12, | ||||||
|  | 		dailyAward = {}, | ||||||
|  | 		Ybprice = 250, | ||||||
|  | 		superRightLV = 6, | ||||||
|  | 		displaylimit = { openDay = 1, vip = 0, zsLevel = 11 }, | ||||||
|  | 		name = "橙星", | ||||||
|  | 		ViewType = 2, | ||||||
|  | 		heraldid = "tq_btnt14_4", | ||||||
|  | 		buyAward = { | ||||||
|  | 			{ id = 1073, type = 0, count = 1 }, | ||||||
|  | 			{ id = 1146, type = 0, count = 1 }, | ||||||
|  | 			{ id = 1066, type = 0, count = 300 }, | ||||||
|  | 			{ id = 1115, type = 0, count = 1 }, | ||||||
|  | 			{ id = 970, type = 0, count = 666 }, | ||||||
|  | 			{ id = 300, type = 0, count = 100 }, | ||||||
|  | 		}, | ||||||
|  | 		pictures = { "tq_p_6_2", "tq_p_6_1", "tq_p_6_3" }, | ||||||
|  | 		consume = { id = 1242, type = 0, count = 250 }, | ||||||
|  | 	}, | ||||||
|  | 	[13] = { | ||||||
|  | 		idx = 13, | ||||||
|  | 		dailyAward = {}, | ||||||
|  | 		Ybprice = 350, | ||||||
|  | 		superRightLV = 7, | ||||||
|  | 		displaylimit = { openDay = 1, vip = 0, zsLevel = 12 }, | ||||||
|  | 		name = "橙月", | ||||||
|  | 		ViewType = 2, | ||||||
|  | 		heraldid = "tq_btnt14_3", | ||||||
|  | 		buyAward = { | ||||||
|  | 			{ id = 1273, type = 0, count = 1 }, | ||||||
|  | 			{ id = 1272, type = 0, count = 1 }, | ||||||
|  | 			{ id = 1241, type = 0, count = 1 }, | ||||||
|  | 			{ id = 265, type = 0, count = 1888 }, | ||||||
|  | 			{ id = 970, type = 0, count = 666 }, | ||||||
|  | 			{ id = 852, type = 0, count = 158 }, | ||||||
|  | 		}, | ||||||
|  | 		pictures = { "tq_p_7_2", "tq_p_7_1", "tq_p_7_3" }, | ||||||
|  | 		consume = { id = 1242, type = 0, count = 350 }, | ||||||
|  | 	}, | ||||||
| } | } | ||||||
| @@ -1,31 +0,0 @@ | |||||||
| --P-平台福利鲁大师.xlsx 会员礼包 |  | ||||||
| ludashimemberConfig={ |  | ||||||
| [1] = { |  | ||||||
| 	id = 1, |  | ||||||
| 	type = 1, |  | ||||||
| 	level = 1, |  | ||||||
| 	reward = {{type=0,id=1277,count=1}}, |  | ||||||
| 	reward1 = {{type=0,id=269,count=1},{type=7,id=7,count=2},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| [2] = { |  | ||||||
| 	id = 2, |  | ||||||
| 	type = 1, |  | ||||||
| 	level = 3, |  | ||||||
| 	reward = {{type=0,id=1277,count=1}}, |  | ||||||
| 	reward1 = {{type=0,id=269,count=1},{type=7,id=7,count=2},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| [3] = { |  | ||||||
| 	id = 3, |  | ||||||
| 	type = 2, |  | ||||||
| 	level = 1, |  | ||||||
| 	reward = {{type=0,id=1277,count=1}}, |  | ||||||
| 	reward1 = {{type=0,id=269,count=1},{type=7,id=7,count=2},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| [4] = { |  | ||||||
| 	id = 4, |  | ||||||
| 	type = 2, |  | ||||||
| 	level = 3, |  | ||||||
| 	reward = {{type=0,id=1277,count=1}}, |  | ||||||
| 	reward1 = {{type=0,id=269,count=1},{type=7,id=7,count=2},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| } |  | ||||||
| @@ -1,21 +0,0 @@ | |||||||
| --P-平台福利鲁大师.xlsx 平台vip |  | ||||||
| ludashivipConfig={ |  | ||||||
| [1] = { |  | ||||||
| 	id = 1, |  | ||||||
| 	level = 1, |  | ||||||
| 	reward = {{type=0,id=1277,count=1}}, |  | ||||||
| 	reward1 = {{type=0,id=269,count=1},{type=7,id=7,count=2},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| [2] = { |  | ||||||
| 	id = 2, |  | ||||||
| 	level = 4, |  | ||||||
| 	reward = {{type=0,id=1277,count=1}}, |  | ||||||
| 	reward1 = {{type=0,id=421,count=1},{type=7,id=7,count=3},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| [3] = { |  | ||||||
| 	id = 3, |  | ||||||
| 	level = 7, |  | ||||||
| 	reward = {{type=0,id=1277,count=1}}, |  | ||||||
| 	reward1 = {{type=0,id=261,count=1},{type=7,id=7,count=3},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| } |  | ||||||
| @@ -14,7 +14,7 @@ NSNoticeConfig={ | |||||||
| 	content = "购买|E:-2,19,&U:&C:0x28ee01&T:绿卡特权|,即刻获取大量转生材料、专属麻痹,急速飞升3转!升级打怪快人一步!同时开启大额金币回收!", | 	content = "购买|E:-2,19,&U:&C:0x28ee01&T:绿卡特权|,即刻获取大量转生材料、专属麻痹,急速飞升3转!升级打怪快人一步!同时开启大额金币回收!", | ||||||
| 	starttime = 1, | 	starttime = 1, | ||||||
| 	stoptime = 2, | 	stoptime = 2, | ||||||
| 	noticeInterval = 18000, | 	noticeInterval = 1800000, | ||||||
| 	trundle = 0, | 	trundle = 0, | ||||||
| 	chatting = 1, | 	chatting = 1, | ||||||
| }, | }, | ||||||
| @@ -23,7 +23,7 @@ NSNoticeConfig={ | |||||||
| 	content = "购买|E:-2,19,&U:&C:0x28ee01&T:蓝卡特权|,晋升霸主贵族,额外金币收益、切割,属性、打金效率大幅提升,秒升六转不是梦!即刻开启寄售行道具上架,赚取你的第一桶金!", | 	content = "购买|E:-2,19,&U:&C:0x28ee01&T:蓝卡特权|,晋升霸主贵族,额外金币收益、切割,属性、打金效率大幅提升,秒升六转不是梦!即刻开启寄售行道具上架,赚取你的第一桶金!", | ||||||
| 	starttime = 1, | 	starttime = 1, | ||||||
| 	stoptime = 5, | 	stoptime = 5, | ||||||
| 	noticeInterval = 36000, | 	noticeInterval = 3600000, | ||||||
| 	trundle = 0, | 	trundle = 0, | ||||||
| 	chatting = 1, | 	chatting = 1, | ||||||
| }, | }, | ||||||
| @@ -31,7 +31,7 @@ NSNoticeConfig={ | |||||||
| 	Noticeid = 4, | 	Noticeid = 4, | ||||||
| 	content = "|E:-2,25,&U:&C:0x28ee01&T:开启狂暴|,攻魔道大幅加成,增加10%伤害加成,输出秒天秒地。打怪回收装备金币+15%,打金效率瞬间提高!", | 	content = "|E:-2,25,&U:&C:0x28ee01&T:开启狂暴|,攻魔道大幅加成,增加10%伤害加成,输出秒天秒地。打怪回收装备金币+15%,打金效率瞬间提高!", | ||||||
| 	starttime = 1, | 	starttime = 1, | ||||||
| 	noticeInterval = 36000, | 	noticeInterval = 3600000, | ||||||
| 	trundle = 0, | 	trundle = 0, | ||||||
| 	chatting = 1, | 	chatting = 1, | ||||||
| }, | }, | ||||||
|   | |||||||
| @@ -1,36 +0,0 @@ | |||||||
| --P-平台福利YY.xlsx 超玩俱乐部 |  | ||||||
| GameVIPConfig={ |  | ||||||
| 	host = "proxy.udblogin.game.yy.com", |  | ||||||
| 	port = "80", |  | ||||||
| 	api = "/query/cwVipInfo.do", |  | ||||||
| 	vipMap = {[1]=2,[2]=6,[3]=9}, |  | ||||||
| 	vipGift = { |  | ||||||
| [1]={{type=0,id=261,count=3},{type=0,id=421,count=3},{type=7,id=7,count=3},{type=0,id=247,count=3}}, |  | ||||||
| [2]={{type=0,id=261,count=3},{type=0,id=421,count=3},{type=7,id=7,count=3},{type=0,id=247,count=3}}, |  | ||||||
| [3]={{type=0,id=261,count=5},{type=0,id=269,count=10},{type=0,id=904,count=1},{type=0,id=914,count=1}}, |  | ||||||
| }, |  | ||||||
| 	VIPTitle = "超玩俱乐部会员礼包", |  | ||||||
| 	VIPContent = "恭喜你领取了超玩俱乐部会员专属礼包", |  | ||||||
| 	dailyGift = { |  | ||||||
| [1]={{type=0,id=247,count=5},{type=2,id=2,count=3000},{type=5,id=5,count=1000}}, |  | ||||||
| [2]={{type=0,id=247,count=5},{type=2,id=2,count=4000},{type=5,id=5,count=2000}}, |  | ||||||
| [3]={{type=0,id=247,count=5},{type=2,id=2,count=5000},{type=5,id=5,count=3000}}, |  | ||||||
| }, |  | ||||||
| 	VIPDailyTitle = "超玩俱乐部会员每日礼包", |  | ||||||
| 	VIPDailyContent = "恭喜你领取了超玩俱乐部会员专属礼包", |  | ||||||
| 	GameVIPbuff = { |  | ||||||
| [1]={buffid=0}, |  | ||||||
| [2]={buffid=0}, |  | ||||||
| [3]={buffid=0} |  | ||||||
| }, |  | ||||||
| 	vipGiftDisplay = { |  | ||||||
| [1]={index=1,viplvl=1,rewards={{type=0,id=261,count=3},{type=0,id=421,count=3},{type=7,id=7,count=3},{type=0,id=247,count=3}}}, |  | ||||||
| [2]={index=2,viplvl=1,rewards={{type=0,id=261,count=3},{type=0,id=421,count=3},{type=7,id=7,count=3},{type=0,id=247,count=3}}}, |  | ||||||
| [3]={index=3,viplvl=3,rewards={{type=0,id=261,count=5},{type=0,id=269,count=10},{type=0,id=904,count=1},{type=0,id=914,count=1}}}, |  | ||||||
| }, |  | ||||||
| 	dailyGiftDisplay = { |  | ||||||
| [1]={index=1,viplvl=2,rewards={{type=0,id=247,count=5},{type=2,id=2,count=3000},{type=5,id=5,count=1000}}}, |  | ||||||
| [2]={index=2,viplvl=6,rewards={{type=0,id=247,count=5},{type=2,id=2,count=4000},{type=5,id=5,count=2000}}}, |  | ||||||
| [3]={index=3,viplvl=9,rewards={{type=0,id=247,count=5},{type=2,id=2,count=5000},{type=5,id=5,count=3000}}}, |  | ||||||
| }, |  | ||||||
| } |  | ||||||
| @@ -1,38 +0,0 @@ | |||||||
| --P-平台福利YY.xlsx YY大厅特权 |  | ||||||
| YYMemberConfig={ |  | ||||||
| 	host = "proxy.udblogin.game.yy.com", |  | ||||||
| 	port = "80", |  | ||||||
| 	api = "/yy/lobbygift/query/queryInfo.do", |  | ||||||
| 	freshmanGift = {{type=0,id=247,count=5},{type=7,id=7,count=3},{type=0,id=261,count=2},{type=2,id=2,count=20000}}, |  | ||||||
| 	fgTitle = "YY大厅新手礼包", |  | ||||||
| 	fgContent = "恭喜你领取了YY大厅新手礼包", |  | ||||||
| 	loginGift = { |  | ||||||
| [1]={{type=0,id=269,count=1},{type=7,id=7,count=2},{type=2,id=2,count=10000}}, |  | ||||||
| [2]={{type=0,id=421,count=1},{type=7,id=7,count=3},{type=2,id=2,count=10000}}, |  | ||||||
| [3]={{type=0,id=261,count=1},{type=7,id=7,count=3},{type=2,id=2,count=10000}}, |  | ||||||
| [4]={{type=0,id=269,count=2},{type=7,id=7,count=4},{type=2,id=2,count=10000}}, |  | ||||||
| [5]={{type=0,id=421,count=2},{type=7,id=7,count=4},{type=2,id=2,count=10000}}, |  | ||||||
| [6]={{type=0,id=261,count=2},{type=7,id=7,count=5},{type=2,id=2,count=10000}}, |  | ||||||
| [7]={{type=0,id=421,count=3},{type=7,id=7,count=5},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| 	logTitle = "YY大厅登录礼包", |  | ||||||
| 	logContent = "你已通过YY大厅登录超过了%d天,领取了YY大厅登录礼包", |  | ||||||
| 	levelGift = { |  | ||||||
| [1]={lvl=42,awards={{type=0,id=247,count=2},{type=7,id=7,count=2},{type=2,id=2,count=20000}}}, |  | ||||||
| [2]={lvl=49,awards={{type=0,id=247,count=3},{type=7,id=7,count=2},{type=2,id=2,count=20000}}}, |  | ||||||
| [3]={lvl=55,awards={{type=0,id=247,count=4},{type=7,id=7,count=2},{type=2,id=2,count=20000}}}, |  | ||||||
| [4]={lvl=65,awards={{type=0,id=247,count=5},{type=0,id=853,count=2},{type=2,id=2,count=20000}}}, |  | ||||||
| [5]={lvl=75,awards={{type=0,id=247,count=6},{type=0,id=365,count=1},{type=2,id=2,count=20000}}}, |  | ||||||
| [6]={lvl=85,awards={{type=0,id=247,count=6},{type=0,id=365,count=1},{type=2,id=2,count=20000}}}, |  | ||||||
| [7]={lvl=95,awards={{type=0,id=247,count=6},{type=0,id=365,count=1},{type=2,id=2,count=20000}}}, |  | ||||||
| }, |  | ||||||
| 	lvgTitle = "YY大厅等级礼包", |  | ||||||
| 	nobleGift = { |  | ||||||
| [1]={{type=0,id=261,count=5},{type=0,id=854,count=3},{type=2,id=2,count=10000}}, |  | ||||||
| [2]={{type=0,id=261,count=5},{type=0,id=854,count=3},{type=2,id=2,count=10000}}, |  | ||||||
| [3]={{type=0,id=261,count=5},{type=0,id=854,count=3},{type=2,id=2,count=10000}}, |  | ||||||
| }, |  | ||||||
| 	ngTitle = "YY大厅贵族礼包", |  | ||||||
| 	lvgContent = "你的等级已达到了%d级,领取了YY大厅等级礼包", |  | ||||||
| 	ngContent = "你的身份为%s,领取了YY大厅贵族礼包", |  | ||||||
| } |  | ||||||
| @@ -1,28 +0,0 @@ | |||||||
| --P-平台福利YY.xlsx YY会员 |  | ||||||
| YYVIPConfig={ |  | ||||||
| 	host = "proxy.udblogin.game.yy.com", |  | ||||||
| 	port = "80", |  | ||||||
| 	api = "/query/yyVipInfo.do", |  | ||||||
| 	newServerGift = { |  | ||||||
| [1]={viplvl=1,title={type=16,id=7,count=1},gift={type=0,id=481,count=1}}, |  | ||||||
| [2]={viplvl=4,title={type=16,id=8,count=1},gift={type=0,id=482,count=1}}, |  | ||||||
| [3]={viplvl=7,title={type=16,id=9,count=1},gift={type=0,id=483,count=1}}, |  | ||||||
| }, |  | ||||||
| 	nsTitle = "YY会员新服豪礼", |  | ||||||
| 	nsContent = "领取了YY会员新服豪礼", |  | ||||||
| 	weeklyGift = { |  | ||||||
| [1]={yb=160,viplvl=1,gift={type=0,id=487,count=1}}, |  | ||||||
| [2]={yb=188,viplvl=4,gift={type=0,id=488,count=1}}, |  | ||||||
| [3]={yb=288,viplvl=7,gift={type=0,id=489,count=1}}, |  | ||||||
| }, |  | ||||||
| 	wgTitle = "YY会员专属每周礼包", |  | ||||||
| 	wgContent = "这是您购买的YY会员专属每周礼包,请收下", |  | ||||||
| 	dailyGift = { |  | ||||||
| [1]={yb=17,viplvl=1,item={type=0,id=484,count=1}}, |  | ||||||
| [2]={yb=20,viplvl=4,item={type=0,id=485,count=1}}, |  | ||||||
| [3]={yb=35,viplvl=7,item={type=0,id=486,count=1}}, |  | ||||||
| }, |  | ||||||
| 	dgTitle = "YY会员专属每日礼包", |  | ||||||
| 	dgContent = "这是您购买的YY会员专属每日礼包,请收下", |  | ||||||
| 	SPID = "dudu", |  | ||||||
| } |  | ||||||
| @@ -1,15 +0,0 @@ | |||||||
| --#include "..\..\language\LangCode.txt" once |  | ||||||
| --ͨ<>û<C3BB><EEB6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> |  | ||||||
| ActiGiftBagConfig =  |  | ||||||
| { |  | ||||||
|  |  | ||||||
| --------------------------------ǰ<><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ActiGiftBagConst actiType |  | ||||||
| --<2D><EFBFBD>б<EFBFBD> |  | ||||||
| commonList= |  | ||||||
| { |  | ||||||
| --2015<31><35><EFBFBD>ڻ-<2D><><EFBFBD><EFBFBD>ӭ<EFBFBD><D3AD> type=1039 |  | ||||||
| --#include "actigiftbags/SF2015/SF2015BlessToSprirt.txt" |  | ||||||
| }, |  | ||||||
|  |  | ||||||
|  |  | ||||||
| } |  | ||||||
| @@ -1,87 +0,0 @@ | |||||||
| --测试 春节活动-祈福迎神 type=1039 |  | ||||||
| { |  | ||||||
| 	--活动类型.	--描述 |  | ||||||
| 	type=1039, |  | ||||||
| 	--怪物Id |  | ||||||
| 	name=1356, |  | ||||||
| 	info=OldLang.Script.wildBossScene001,  |  | ||||||
|  |  | ||||||
| 	actiList= |  | ||||||
| 	{ |  | ||||||
|  |  | ||||||
| 		 { |  | ||||||
| 			--活动id	 |  | ||||||
| 			id=1, |  | ||||||
| 			--名称:喜气礼包(免费领取) |  | ||||||
| 			name=OldLang.Script.wildBossScene001, |  | ||||||
| 			--XX礼包名称 |  | ||||||
| 			info=OldLang.Script.wildBossScene001,			 |  | ||||||
| 			--最大可领取 |  | ||||||
| 			exValue=1, |  | ||||||
|  |  | ||||||
| 			--免费领 |  | ||||||
| 			costAwards= |  | ||||||
| 			{ |  | ||||||
| 				{ type = 15,count = 0,}, |  | ||||||
| 			}, |  | ||||||
|  |  | ||||||
| 			--获得的奖励 |  | ||||||
| 			awards = |  | ||||||
| 			{ |  | ||||||
| 				{ type = 0, id = 2986, count = 2,}, |  | ||||||
| 				{ type = 0, id = 3380, count = 2,}, |  | ||||||
| 				{ type = 0, id = 3386, count = 5,}, |  | ||||||
| 			},		 |  | ||||||
| 		}, |  | ||||||
|  |  | ||||||
| 		{ |  | ||||||
| 			 --活动id --对应服务器Id 	 |  | ||||||
| 			id=2,			 |  | ||||||
| 			--名称	    |  | ||||||
| 			name=OldLang.Script.wildBossScene002, |  | ||||||
| 			--XX礼包名称 |  | ||||||
| 			info=OldLang.Script.wildBossScene002, |  | ||||||
| 			--最大可领取 |  | ||||||
| 			exValue=10, |  | ||||||
| 			--领取花费元宝 |  | ||||||
| 			costAwards= |  | ||||||
| 			{ |  | ||||||
| 				{ type = 15,count = 50,}, |  | ||||||
| 			}, |  | ||||||
| 			--获得的奖励 |  | ||||||
| 			awards = |  | ||||||
| 			{ |  | ||||||
| 				{ type = 0, id = 2745, count = 1,}, |  | ||||||
| 				{ type = 0, id = 2986, count = 3,}, |  | ||||||
| 				{ type = 0, id = 3380, count = 3,}, |  | ||||||
| 				{ type = 0, id = 3386, count = 5,}, |  | ||||||
| 			},		 |  | ||||||
| 		}, |  | ||||||
|  |  | ||||||
| 		{ |  | ||||||
| 			--活动id	  	 |  | ||||||
| 			id=3, |  | ||||||
| 			--名称	    |  | ||||||
| 			name=OldLang.Script.wildBossScene003, |  | ||||||
| 			--XX礼包名称 |  | ||||||
| 			info=OldLang.Script.wildBossScene003, |  | ||||||
| 			--最大可领取 |  | ||||||
| 			exValue=10, |  | ||||||
| 			--领取花费元宝 |  | ||||||
| 			costAwards= |  | ||||||
| 			{ |  | ||||||
| 				{ type = 15,count = 100,}, |  | ||||||
| 			}, |  | ||||||
| 			--获得的奖励 |  | ||||||
| 			awards = |  | ||||||
| 			{ |  | ||||||
| 				{ type = 0, id = 3304, count = 1 ,}, |  | ||||||
| 				{ type = 0, id = 3379, count = 2 ,}, |  | ||||||
| 				{ type = 0, id = 2986, count = 5 ,}, |  | ||||||
| 				{ type = 0, id = 3380, count = 5 ,}, |  | ||||||
| 				{ type = 0, id = 3386, count = 10,}, |  | ||||||
| 			},		 |  | ||||||
| 		}, |  | ||||||
| 	}, |  | ||||||
| 	 |  | ||||||
| }, |  | ||||||
| @@ -1,9 +0,0 @@ | |||||||
| --AB-活动付费.xlsx 10014-YY微信礼包 |  | ||||||
| Activity10014Config={ |  | ||||||
| [10027] = { |  | ||||||
| 	Id = 10027, |  | ||||||
| 	OpenDays = 1, |  | ||||||
| 	cdktype = 1015, |  | ||||||
| 	NormalRewards = {{type=0,id=492,count=1},}, |  | ||||||
| }, |  | ||||||
| } |  | ||||||
| @@ -2978,11 +2978,11 @@ BuffConf={ | |||||||
| 	group = 8, | 	group = 8, | ||||||
| 	times = 86400, | 	times = 86400, | ||||||
| 	interval = 1, | 	interval = 1, | ||||||
| 	timeoverlay = false, | 	timeoverlay = true, | ||||||
| 	iconshow = 1, | 	iconshow = 1, | ||||||
| 	icon = 31, | 	icon = 31, | ||||||
| 	issave = true, | 	issave = true, | ||||||
| 	dieremove = false, | 	dieremove = true, | ||||||
| }, | }, | ||||||
| [241] = { | [241] = { | ||||||
| 	id = 241, | 	id = 241, | ||||||
|   | |||||||
| @@ -1,52 +1,63 @@ | |||||||
| --AA-礼包码CDKey.xlsx 通码配置 | --AA-礼包码CDKey.xlsx 通码配置 | ||||||
| CommonCDKeyConf={ | CommonCDKeyConf = { | ||||||
| ["VIP666"] = { | 	["VIP666"] = { | ||||||
| 	cdkey = "VIP666", | 		cdkey = "VIP666", | ||||||
| 	awards = {{type=2,id=2,count=500000},{type=0,id=480,count=20},{type=0,id=970,count=5}}, | 		awards = { { type = 2, id = 2, count = 500000 }, { type = 0, id = 480, count = 20 }, { type = 0, id = 970, count = 5 } }, | ||||||
| 	mailtitle = "系统邮件", | 		mailtitle = "系统邮件", | ||||||
| 	mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | 		mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | ||||||
| 	switch = 1, | 		switch = 1, | ||||||
| }, | 	}, | ||||||
| ["VIP888"] = { | 	["VIP888"] = { | ||||||
| 	cdkey = "VIP888", | 		cdkey = "VIP888", | ||||||
| 	awards = {{type=0,id=1018,count=3},{type=0,id=994,count=3},{type=0,id=269,count=5}}, | 		awards = { { type = 0, id = 1018, count = 3 }, { type = 0, id = 994, count = 3 }, { type = 0, id = 269, count = 5 } }, | ||||||
| 	mailtitle = "系统邮件", | 		mailtitle = "系统邮件", | ||||||
| 	mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | 		mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | ||||||
| 	switch = 1, | 		switch = 1, | ||||||
| }, | 	}, | ||||||
| ["VIP999"] = { | 	["VIP999"] = { | ||||||
| 	cdkey = "VIP999", | 		cdkey = "VIP999", | ||||||
| 	awards = {{type=0,id=261,count=20},{type=0,id=421,count=5},{type=0,id=954,count=10}}, | 		awards = { { type = 0, id = 261, count = 20 }, { type = 0, id = 421, count = 5 }, { type = 0, id = 954, count = 10 } }, | ||||||
| 	mailtitle = "系统邮件", | 		mailtitle = "系统邮件", | ||||||
| 	mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | 		mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | ||||||
| 	switch = 1, | 		switch = 1, | ||||||
| }, | 	}, | ||||||
| ["LINUXDO"] = { | 	["LINUXDO"] = { | ||||||
| 	cdkey = "LINUXDO", | 		cdkey = "LINUXDO", | ||||||
| 	awards = {{type=0,id=261,count=100},{type=0,id=421,count=10},{type=0,id=389,count=5},{type=0,id=1270,count=1}}, | 		awards = { { type = 0, id = 261, count = 100 }, { type = 0, id = 421, count = 10 }, { type = 0, id = 389, count = 5 }, { | ||||||
| 	mailtitle = "LINUXDO的各位佬,感谢你的支持!", | 			type = 0, | ||||||
| 	mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | 			id = 1270, | ||||||
| 	switch = 1, | 			count = 1, | ||||||
| }, | 		} }, | ||||||
| ["weliowork"] = { | 		mailtitle = "LINUXDO的各位佬,感谢你的支持!", | ||||||
| 	cdkey = "weliowork", | 		mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | ||||||
| 	awards = {{type=0,id=1151,count=1},{type=0,id=1166,count=10},{type=0,id=1250,count=1}}, | 		switch = 1, | ||||||
| 	mailtitle = "致敬论坛的黑白佬!", | 	}, | ||||||
| 	mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | 	["weliowork"] = { | ||||||
| 	switch = 1, | 		cdkey = "weliowork", | ||||||
| }, | 		awards = { { type = 0, id = 1151, count = 1 }, { type = 0, id = 1166, count = 10 }, { type = 0, id = 1250, count = 1 } }, | ||||||
| ["newyear"] = { | 		mailtitle = "致敬论坛的黑白佬!", | ||||||
| 	cdkey = "辞旧迎新", | 		mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | ||||||
| 	awards = {{type=0,id=1151,count=1},{type=0,id=1164,count=100},{type=0,id=1250,count=1}}, | 		switch = 1, | ||||||
| 	mailtitle = "预祝大家新年快乐,阖家欢乐!", | 	}, | ||||||
| 	mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | 	["newyear"] = { | ||||||
| 	switch = 1, | 		cdkey = "辞旧迎新", | ||||||
| }, | 		awards = { { type = 0, id = 1151, count = 1 }, { type = 0, id = 1164, count = 100 }, { type = 0, id = 1250, count = 1 } }, | ||||||
| ["bainian"] = { | 		mailtitle = "预祝大家新年快乐,阖家欢乐!", | ||||||
| 	cdkey = "拜年", | 		mailcontent = "尊敬的玩家:感谢您的支持,请查收您的礼包奖励。", | ||||||
| 	awards = {{type=0,id=1151,count=1},{type=0,id=1164,count=100},{type=0,id=1250,count=1}}, | 		switch = 1, | ||||||
| 	mailtitle = "给您拜年啦!", | 	}, | ||||||
| 	mailcontent = "岁序常易,华章日新。在这辞旧迎新的美好时刻,愿新年的钟声为您带来无尽的喜悦与祥和。愿您在新的一年里,万事胜意,阖家幸福,身体安康,笑口常开!新春快乐,蛇年大吉!。", | 	["bainian"] = { | ||||||
| 	switch = 1, | 		cdkey = "拜年", | ||||||
| }, | 		awards = { { type = 0, id = 1151, count = 1 }, { type = 0, id = 1164, count = 100 }, { type = 0, id = 1250, count = 1 } }, | ||||||
|  | 		mailtitle = "给您拜年啦!", | ||||||
|  | 		mailcontent = "岁序常易,华章日新。在这辞旧迎新的美好时刻,愿新年的钟声为您带来无尽的喜悦与祥和。愿您在新的一年里,万事胜意,阖家幸福,身体安康,笑口常开!新春快乐,蛇年大吉!。", | ||||||
|  | 		switch = 1, | ||||||
|  | 	}, | ||||||
|  | 	["tiancijiyuan"] = { | ||||||
|  | 		cdkey = "tiancijiyuan", | ||||||
|  | 		awards = { { type = 0, id = 1395, count = 1 } }, | ||||||
|  | 		mailtitle = "天赐机缘", | ||||||
|  | 		mailcontent = "国服和奶昔服合并,并降下机缘,附赠给您一个机缘宝箱,看看你的运气吧!宝盒包含了有刈鹿刀,霜华,不争,3阶魔器宝盒,天命之子(时装),5w元宝,黄金宸龙,辉金甲,金牛炎宝盒以及金牛宝盒,是非是欧,全靠运气,最后遥祝大家都能获得自己心仪的物品~", | ||||||
|  | 		switch = 1, | ||||||
|  | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,3 +0,0 @@ | |||||||
| --lua script |  | ||||||
| --#include "..\..\language\LangCode.config" |  | ||||||
| --#include ".\StdItems.config" |  | ||||||
| @@ -2220,6 +2220,11 @@ DropGroupConfig = { | |||||||
| 		type = 2, | 		type = 2, | ||||||
| 		group = { { rate = 100, id = 2100188 } }, | 		group = { { rate = 100, id = 2100188 } }, | ||||||
| 	}, | 	}, | ||||||
|  | 	[100882] = { | ||||||
|  | 		id = 100882, | ||||||
|  | 		type = 2, | ||||||
|  | 		group = { { rate = 100, id = 2100189 } }, | ||||||
|  | 	}, | ||||||
| 	[110001] = { | 	[110001] = { | ||||||
| 		id = 110001, | 		id = 110001, | ||||||
| 		type = 2, | 		type = 2, | ||||||
| @@ -8794,6 +8799,7 @@ DropGroupConfig = { | |||||||
| 			{ rate = 0.1, id = 2010049 }, | 			{ rate = 0.1, id = 2010049 }, | ||||||
| 			{ rate = 20, id = 2100063 }, | 			{ rate = 20, id = 2100063 }, | ||||||
| 			{ rate = 100, id = 2100039 }, | 			{ rate = 100, id = 2100039 }, | ||||||
|  | 			{ rate = 5, id = 1000600 }, | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	[200140] = { | 	[200140] = { | ||||||
| @@ -8850,6 +8856,7 @@ DropGroupConfig = { | |||||||
| 			{ rate = 30, id = 2100063 }, | 			{ rate = 30, id = 2100063 }, | ||||||
| 			{ rate = 5, id = 2100069 }, | 			{ rate = 5, id = 2100069 }, | ||||||
| 			{ rate = 100, id = 2100039 }, | 			{ rate = 100, id = 2100039 }, | ||||||
|  | 			{ rate = 5, id = 1000600 }, | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	[200141] = { | 	[200141] = { | ||||||
|   | |||||||
| @@ -10366,4 +10366,23 @@ DropTableConfig = { | |||||||
| 		}, | 		}, | ||||||
| 		weeklimit = {}, | 		weeklimit = {}, | ||||||
| 	}, | 	}, | ||||||
|  | 	[2100189] = { | ||||||
|  | 		id = 2100189, | ||||||
|  | 		type = 2, | ||||||
|  | 		table = { | ||||||
|  | 			{ rate = 2, type = 0, id = 1394, count = 1 }, | ||||||
|  | 			{ rate = 2, type = 0, id = 1384, count = 1 }, | ||||||
|  | 			{ rate = 2, type = 0, id = 1385, count = 1 }, | ||||||
|  | 			{ rate = 2, type = 0, id = 1386, count = 1 }, | ||||||
|  | 			{ rate = 2, type = 0, id = 1387, count = 1 }, | ||||||
|  |  | ||||||
|  | 			{ rate = 2, type = 0, id = 1297, count = 1 }, | ||||||
|  | 			{ rate = 2, type = 0, id = 1129, count = 1 }, | ||||||
|  | 			{ rate = 6, type = 0, id = 380, count = 500 }, | ||||||
|  | 			{ rate = 10, type = 0, id = 1147, count = 3 }, | ||||||
|  | 			{ rate = 30, type = 0, id = 1383, count = 1 }, | ||||||
|  | 			{ rate = 40, type = 0, id = 1382, count = 1 }, | ||||||
|  | 		}, | ||||||
|  | 		weeklimit = {}, | ||||||
|  | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -27432,7 +27432,7 @@ StdItems = { | |||||||
| 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | ||||||
| 		dropBroadcast = 1, | 		dropBroadcast = 1, | ||||||
| 		dropEffect = 3, | 		dropEffect = 3, | ||||||
| 		dup = 9999, | 		dup = 99999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13131, | 		icon = 13131, | ||||||
| 		id = 829, | 		id = 829, | ||||||
| @@ -27463,7 +27463,7 @@ StdItems = { | |||||||
| 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | ||||||
| 		dropBroadcast = -1, | 		dropBroadcast = -1, | ||||||
| 		dropEffect = 14, | 		dropEffect = 14, | ||||||
| 		dup = 9999, | 		dup = 99999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13131, | 		icon = 13131, | ||||||
| 		id = 830, | 		id = 830, | ||||||
| @@ -27494,7 +27494,7 @@ StdItems = { | |||||||
| 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | ||||||
| 		dropBroadcast = -1, | 		dropBroadcast = -1, | ||||||
| 		dropEffect = 11, | 		dropEffect = 11, | ||||||
| 		dup = 9999, | 		dup = 99999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13131, | 		icon = 13131, | ||||||
| 		id = 831, | 		id = 831, | ||||||
| @@ -27525,7 +27525,7 @@ StdItems = { | |||||||
| 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | 		desc = "可在【合成-换真充-银两兑换】中兑换银两。游戏内BOSS、夺宝有几率爆出,参加各类玩法活动均有机会获得", | ||||||
| 		dropBroadcast = -1, | 		dropBroadcast = -1, | ||||||
| 		dropEffect = 12, | 		dropEffect = 12, | ||||||
| 		dup = 9999, | 		dup = 99999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13131, | 		icon = 13131, | ||||||
| 		id = 832, | 		id = 832, | ||||||
| @@ -34717,7 +34717,7 @@ StdItems = { | |||||||
| 		desc = "该道具不可交易,开服第8天可以开启。使用后立即返还5元宝、并随机抽取一件永久时装!包含红玫瑰、紫玫瑰、黄金裁决、黄金屠龙、黄金嗜魂、黄金羽扇", | 		desc = "该道具不可交易,开服第8天可以开启。使用后立即返还5元宝、并随机抽取一件永久时装!包含红玫瑰、紫玫瑰、黄金裁决、黄金屠龙、黄金嗜魂、黄金羽扇", | ||||||
| 		dropBroadcast = 0, | 		dropBroadcast = 0, | ||||||
| 		dropGroupid = 151016, | 		dropGroupid = 151016, | ||||||
| 		dup = 0, | 		dup = 9999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		fashionTips = "bx_show_001", | 		fashionTips = "bx_show_001", | ||||||
| 		icon = 13532, | 		icon = 13532, | ||||||
| @@ -38701,7 +38701,7 @@ StdItems = { | |||||||
| 		desc = "银针[四方],四大内功装备之一,可以激活内功宝石【银花簪】的共鸣效果", | 		desc = "银针[四方],四大内功装备之一,可以激活内功宝石【银花簪】的共鸣效果", | ||||||
| 		dropBroadcast = -1, | 		dropBroadcast = -1, | ||||||
| 		dropEffect = 11, | 		dropEffect = 11, | ||||||
| 		dup = 0, | 		dup = 999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13611, | 		icon = 13611, | ||||||
| 		id = 1170, | 		id = 1170, | ||||||
| @@ -38926,7 +38926,7 @@ StdItems = { | |||||||
| 		desc = "心决[四方],四大内功装备之一,可以激活内功宝石【养心玉】的共鸣效果", | 		desc = "心决[四方],四大内功装备之一,可以激活内功宝石【养心玉】的共鸣效果", | ||||||
| 		dropBroadcast = -1, | 		dropBroadcast = -1, | ||||||
| 		dropEffect = 11, | 		dropEffect = 11, | ||||||
| 		dup = 0, | 		dup = 999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13606, | 		icon = 13606, | ||||||
| 		id = 1175, | 		id = 1175, | ||||||
| @@ -39149,7 +39149,7 @@ StdItems = { | |||||||
| 		desc = "金印[四方],四大内功装备之一,可以激活内功宝石【金曜珠】的共鸣效果", | 		desc = "金印[四方],四大内功装备之一,可以激活内功宝石【金曜珠】的共鸣效果", | ||||||
| 		dropBroadcast = -1, | 		dropBroadcast = -1, | ||||||
| 		dropEffect = 11, | 		dropEffect = 11, | ||||||
| 		dup = 0, | 		dup = 999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13601, | 		icon = 13601, | ||||||
| 		id = 1180, | 		id = 1180, | ||||||
| @@ -39372,7 +39372,7 @@ StdItems = { | |||||||
| 		desc = "檀珠[四方],四大内功装备之一,可以激活内功宝石【黑檀石】的共鸣效果", | 		desc = "檀珠[四方],四大内功装备之一,可以激活内功宝石【黑檀石】的共鸣效果", | ||||||
| 		dropBroadcast = -1, | 		dropBroadcast = -1, | ||||||
| 		dropEffect = 11, | 		dropEffect = 11, | ||||||
| 		dup = 0, | 		dup = 999, | ||||||
| 		existScenes = { -1 }, | 		existScenes = { -1 }, | ||||||
| 		icon = 13596, | 		icon = 13596, | ||||||
| 		id = 1185, | 		id = 1185, | ||||||
| @@ -46540,4 +46540,36 @@ StdItems = { | |||||||
| 		trade = 3, | 		trade = 3, | ||||||
| 		type = 131, | 		type = 131, | ||||||
| 	}, | 	}, | ||||||
|  | 	[1395] = { | ||||||
|  | 		cdTime = 0, | ||||||
|  | 		colGroup = 0, | ||||||
|  | 		conds = {}, | ||||||
|  | 		dealPrice = 10, | ||||||
|  | 		dealType = 0, | ||||||
|  | 		denyDeal = 1, | ||||||
|  | 		denyDestroy = 1, | ||||||
|  | 		denySell = 1, | ||||||
|  | 		desc = "打开后随机获得三阶魔器中的任意一件,获得随机奖励", | ||||||
|  | 		dropBroadcast = 0, | ||||||
|  | 		dropGroupid = 100882, | ||||||
|  | 		dup = 9999, | ||||||
|  | 		existScenes = { -1 }, | ||||||
|  | 		icon = 13509, | ||||||
|  | 		id = 1395, | ||||||
|  | 		isShowUseBtn = 1, | ||||||
|  | 		iseffect = 127, | ||||||
|  | 		itemlvl = 3, | ||||||
|  | 		name = "天赐机缘盒", | ||||||
|  | 		packageType = 2, | ||||||
|  | 		recordLog = 1, | ||||||
|  | 		recoverid = 0, | ||||||
|  | 		shape = 0, | ||||||
|  | 		showQuality = 5, | ||||||
|  | 		staitcAttrs = {}, | ||||||
|  | 		suggVocation = 0, | ||||||
|  | 		suitId = 0, | ||||||
|  | 		time = 0, | ||||||
|  | 		trade = 3, | ||||||
|  | 		type = 131, | ||||||
|  | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ ShopConfig = { | |||||||
| 				shopid = 1, | 				shopid = 1, | ||||||
| 				shoptype = 1, | 				shoptype = 1, | ||||||
| 				Tabshop = 1, | 				Tabshop = 1, | ||||||
| 				shop = { id = 4, type = 4, count = 100 }, | 				shop = { id = 4, type = 4, count = 5 }, | ||||||
| 				buytype = {}, | 				buytype = {}, | ||||||
| 				daylimit = 0, | 				daylimit = 0, | ||||||
| 				levellimit = 1, | 				levellimit = 1, | ||||||
| @@ -110,7 +110,7 @@ ShopConfig = { | |||||||
| 				buytype = {}, | 				buytype = {}, | ||||||
| 				daylimit = 0, | 				daylimit = 0, | ||||||
| 				levellimit = 1, | 				levellimit = 1, | ||||||
| 				price = { id = 4, type = 4, count = 88 }, | 				price = { id = 4, type = 4, count = 500 }, | ||||||
| 			}, | 			}, | ||||||
| 			[94] = { | 			[94] = { | ||||||
| 				reincarnationlimit = 0, | 				reincarnationlimit = 0, | ||||||
| @@ -122,7 +122,7 @@ ShopConfig = { | |||||||
| 				buytype = { { limit = { { value = 0, times = 1 } }, type = 3 } }, | 				buytype = { { limit = { { value = 0, times = 1 } }, type = 3 } }, | ||||||
| 				daylimit = 0, | 				daylimit = 0, | ||||||
| 				levellimit = 1, | 				levellimit = 1, | ||||||
| 				price = { id = 3, type = 3, count = 188 }, | 				price = { id = 3, type = 3, count = 88888 }, | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		[2] = { | 		[2] = { | ||||||
|   | |||||||
| @@ -1,274 +0,0 @@ | |||||||
| module("ActivityType10011", package.seeall) |  | ||||||
|  |  | ||||||
| --[[ |  | ||||||
|     个人活动(玩法),YY大厅特权 |  | ||||||
|      |  | ||||||
|     个人数据:YYHallAtv |  | ||||||
|     { |  | ||||||
|         yydata = 0 YY大厅身份 1平民2贵族3王室 |  | ||||||
|        freshmanGift = 0/1 是否领取YY大厅新手礼包(0否,1是) |  | ||||||
|        lastLoginTime = 0 上一次通过YY大厅登录的时间戳 |  | ||||||
|        loginDay = 1 通过YY大厅登录的累计天数 |  | ||||||
|        loginGift = 00000000 32位 是否领取某天的登录礼包  |  | ||||||
|        levelGift = 00000000 32位 是否领取第n个等级礼包 |  | ||||||
|        nobleGift = 00000000 32位 是否领取贵族礼包 1平民 2贵族 3王室 |  | ||||||
|     } |  | ||||||
| ]]-- |  | ||||||
|  |  | ||||||
| --活动类型 |  | ||||||
| ActivityType = 10011 |  | ||||||
| --对应的活动配置 |  | ||||||
| ActivityConfig = YYMemberConfig |  | ||||||
| if ActivityConfig == nil then |  | ||||||
|     assert(false) |  | ||||||
| end |  | ||||||
|  |  | ||||||
| local HttpStatus = { |  | ||||||
|     Success = "200", -- 成功 |  | ||||||
|     ArgError = "302", -- 参数错误 |  | ||||||
|     SignError = "304", -- 签名错误 |  | ||||||
|     LinkLost = "305", -- 链接失效 |  | ||||||
|     IpLimit = "306", -- IP受限 |  | ||||||
|     AccountNotExits = "600", -- 账号不存在 |  | ||||||
|     UnKnownedError = "299" -- 未知错误 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| -- 服务接口 |  | ||||||
| Host = ActivityConfig.host or "proxy.udblogin.game.yy.com" |  | ||||||
| Port = ActivityConfig.port or "80" |  | ||||||
| Api = ActivityConfig.api or "/yy/lobbygift/query/queryInfo.do" |  | ||||||
|  |  | ||||||
| function getData(pActor) |  | ||||||
|     local var = Actor.getStaticVar(pActor) |  | ||||||
|     if var.YYHallAtv== nil then |  | ||||||
|         var.YYHallAtv = {} |  | ||||||
|     end |  | ||||||
|     return var.YYHallAtv |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function SendData(pActor,lvldata) |  | ||||||
|  |  | ||||||
|     --对于lvldata不是 1 2 3 这三个指定数值的直接返回 |  | ||||||
|     -- if not (lvldata and (lvldata ==1 or lvldata == 2  or lvldata == 3 )) then  |  | ||||||
|     --     return   |  | ||||||
|     -- end  |  | ||||||
|  |  | ||||||
|     local npack = DataPack.allocPacket(pActor, enActivityID, sYYHallData) |  | ||||||
|     if npack then |  | ||||||
|         local data = getData(pActor) |  | ||||||
|         data.yydata = lvldata |  | ||||||
|         DataPack.writeByte(npack, lvldata)  --YY身份 1平民 2贵族 3王室 |  | ||||||
|         DataPack.writeByte(npack, (data.freshmanGift or 0)) --是否已领取YY大厅新手礼包 0否1是 |  | ||||||
|         DataPack.writeShort(npack, (data.loginDay or 1))--通过YY大厅登录的天数 |  | ||||||
|         DataPack.writeUInt(npack, (data.loginGift or 0))--登录礼包的领取标记 32 位 |  | ||||||
|         DataPack.writeUInt(npack, (data.levelGift or 0))--等级礼包的领取标记 32 位 |  | ||||||
|         DataPack.writeUInt(npack, (data.nobleGift or 0))--贵族礼包的领取标记 32 位 |  | ||||||
|         DataPack.flush(npack) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function AfterCheckYYHall(paramPack,content,result) |  | ||||||
|     local aid = paramPack[1] |  | ||||||
|     local pActor = Actor.getActorById(aid) |  | ||||||
|     if not pActor then |  | ||||||
|         print("[AfterCheckYYHall][" .. aid .. "] 已离线") |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     print("[AfterCheckYYHall][" .. Actor.getName(pActor) .. "] content:"..content) |  | ||||||
|     print("[AfterCheckYYHall]result:"..result) |  | ||||||
|  |  | ||||||
|     if result == 0 then |  | ||||||
|         local data = string.match(content,"\"data\":(%d+)") |  | ||||||
|         local status = string.match(content,"\"status\":(%d+)") |  | ||||||
|         if status == HttpStatus.Success then |  | ||||||
|             SendData(pActor,tonumber(data)) |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- CPP回调 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| function OnYYHallLogin(pActor) |  | ||||||
|     local account = Actor.getAccount(pActor) |  | ||||||
|     local aid = Actor.getActorId(pActor) |  | ||||||
|     local now = os.time() |  | ||||||
|     local gameflag = System.getGameFlag() or "DDCQ" |  | ||||||
|     local key = System.getYYKey() |  | ||||||
|     local sign = System.MD5(gameflag,account,"1001",now,key) |  | ||||||
|     local req = Api..'?account='..account..'&game='..gameflag..'&taskId=1001&time='..now.."&sign="..string.upper(sign) |  | ||||||
|     print("Require YYHallLogin[" .. Actor.getName(pActor) .. "] : ".. req) |  | ||||||
|     AsyncWorkDispatcher.Add( |  | ||||||
|         {'GetHttpContent',Host,Port,req}, |  | ||||||
|         AfterCheckYYHall, |  | ||||||
|         {aid} |  | ||||||
|     ) |  | ||||||
|      |  | ||||||
|     -- 当天初始化 |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if data.lastLoginTime == nil then |  | ||||||
|         data.lastLoginTime = System.getCurrMiniTime() |  | ||||||
|         data.loginDay = 1 |  | ||||||
|         --print("第一天") |  | ||||||
|     else |  | ||||||
|         if not System.isSameDay(data.lastLoginTime, System.getCurrMiniTime()) then |  | ||||||
|             --print("跨一天") |  | ||||||
|             data.lastLoginTime = System.getCurrMiniTime() |  | ||||||
|             data.loginDay = data.loginDay + 1 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- 客户端请求协议回调 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| function OnReqYYHallFreshManGift(pActor, packet) |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     local awards = ActivityConfig.freshmanGift |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     local aid = Actor.getActorId(pActor) |  | ||||||
|     if data.lastLoginTime then |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,1)  |  | ||||||
|         if (data.freshmanGift == nil) or (data.freshmanGift == 0) then |  | ||||||
|             data.freshmanGift = 1 |  | ||||||
|             SendMail(aid, ActivityConfig.fgTitle or "YY大厅新手礼包", ActivityConfig.fgContent or "恭喜你领取了YY大厅新手礼包!", ActivityConfig.freshmanGift) |  | ||||||
|             SendData(pActor,data.yydata) |  | ||||||
|         end |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,2) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function OnReqYYHallLoginGift(pActor, packet) |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if (idx > 30) or (idx == 0) then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     if idx > #ActivityConfig.loginGift then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local awards = ActivityConfig.loginGift[idx] |  | ||||||
|     idx = idx - 1 |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if awards and data.lastLoginTime then |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.loginGift then |  | ||||||
|             data.loginGift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.loginGift, idx) |  | ||||||
|         --print("loginGift="..data.loginGift.." flag="..flag) |  | ||||||
|         if flag == 1 then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|         -- 天数检查 |  | ||||||
|         if data.loginDay and (data.loginDay > idx )then |  | ||||||
|             Actor.SendActivityLog(pActor,ActivityType,ActivityType,1)  |  | ||||||
|             local aid = Actor.getActorId(pActor) |  | ||||||
|             data.loginGift = System.setIntBit(data.loginGift, idx, true) |  | ||||||
|             local mailcontent = string.format( ActivityConfig.logContent or "你已通过YY大厅登录超过了%d天,领取了YY大厅登录礼包!" , data.loginDay) |  | ||||||
|             SendMail(aid, ActivityConfig.logTitle or "YY大厅登录礼包", mailcontent, awards) |  | ||||||
|             SendData(pActor,data.yydata) |  | ||||||
|             Actor.SendActivityLog(pActor,ActivityType,ActivityType,2)  |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function OnReqYYHallLevelGift(pActor, packet) |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if idx > #ActivityConfig.levelGift then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local conf = ActivityConfig.levelGift[idx] |  | ||||||
|     local awards = conf.awards |  | ||||||
|     idx = idx - 1 |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if conf and data.lastLoginTime then |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.levelGift then |  | ||||||
|             data.levelGift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.levelGift, idx) |  | ||||||
|         if flag == 1 then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|         -- 等级检查 |  | ||||||
|         local lvl = Actor.getIntProperty(pActor,PROP_CREATURE_LEVEL) |  | ||||||
|         if lvl >= conf.lvl then |  | ||||||
|             Actor.SendActivityLog(pActor,ActivityType,ActivityType,1)  |  | ||||||
|             local aid = Actor.getActorId(pActor) |  | ||||||
|             data.levelGift = System.setIntBit(data.levelGift, idx, true) |  | ||||||
|             local mailcontent = string.format( ActivityConfig.lvgContent or "你的等级已达到了%d级,领取了YY大厅等级礼包!" , conf.lvl) |  | ||||||
|             SendMail(aid, ActivityConfig.lvgTitle or "YY大厅等级礼包", mailcontent, awards) |  | ||||||
|             SendData(pActor,data.yydata) |  | ||||||
|             Actor.SendActivityLog(pActor,ActivityType,ActivityType,2)  |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| YYIdentity = {[1]="平民",[2]="贵族",[3]="王室"} |  | ||||||
|  |  | ||||||
| function OnReqYYHallNobleGift(pActor, packet) |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if idx > #ActivityConfig.nobleGift then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     if idx > #YYIdentity then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local awards = ActivityConfig.nobleGift[idx] |  | ||||||
|     idx = idx - 1 |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if awards and data.lastLoginTime then |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.nobleGift then |  | ||||||
|             data.nobleGift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.nobleGift, idx) |  | ||||||
|         if flag == 1 then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|         -- 身份检查 |  | ||||||
|         if data.yydata > idx then |  | ||||||
|             Actor.SendActivityLog(pActor,ActivityType,ActivityType,1) |  | ||||||
|             local aid = Actor.getActorId(pActor) |  | ||||||
|             data.nobleGift = System.setIntBit(data.nobleGift, idx, true) |  | ||||||
|             local mailcontent = string.format( ActivityConfig.ngContent or "你的身份为%s,领取了YY大厅贵族礼包!" , YYIdentity[idx+1]) |  | ||||||
|             SendMail(aid, ActivityConfig.ngTitle or "YY大厅等级礼包", mailcontent, awards) |  | ||||||
|             SendData(pActor,data.yydata) |  | ||||||
|             Actor.SendActivityLog(pActor,ActivityType,ActivityType,2)  |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqYYHallFreshManGift, OnReqYYHallFreshManGift) |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqYYHallLoginGift, OnReqYYHallLoginGift) |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqYYHallLevelGift, OnReqYYHallLevelGift) |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqYYHallNobleGift, OnReqYYHallNobleGift) |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- 玩家 回调注册 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| -- 跨天 |  | ||||||
| function OnNewDayArrive(pActor,ndiffday) |  | ||||||
|     local currMiniTime = System.getCurrMiniTime() |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if data.lastLoginTime then |  | ||||||
|         if not System.isSameDay(data.lastLoginTime, System.getCurrMiniTime()) then |  | ||||||
|             data.lastLoginTime = System.getCurrMiniTime() |  | ||||||
|             data.loginDay = data.loginDay + 1 |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         SendData(pActor,data.yydata) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function OnUserLogout(pActor,actorId) |  | ||||||
|     if pActor ==nil then return end  |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     data.yydata =nil  |  | ||||||
| end  |  | ||||||
|  |  | ||||||
| ActorEventDispatcher.Reg(aeNewDayArrive, OnNewDayArrive, "ActivityType10011.lua") |  | ||||||
| ActorEventDispatcher.Reg(aeUserLogout, OnUserLogout, "ActivityType10011.lua") |  | ||||||
| @@ -1,384 +0,0 @@ | |||||||
| module("ActivityType10012", package.seeall) |  | ||||||
|  |  | ||||||
| --[[ |  | ||||||
|     个人活动(玩法),YY会员 |  | ||||||
|      |  | ||||||
|     个人数据:YYVIPeople |  | ||||||
|     { |  | ||||||
|        isVip = true/false, 是否为YY会员 |  | ||||||
|        grade = 0, vip等级 |  | ||||||
|        endTime = 0, vip过期时间戳 |  | ||||||
|        lastTime = 0 上一次初始化的时间戳 |  | ||||||
|        newServerGift = 00000000 32位 是否领取第n个新服豪礼 |  | ||||||
|        dailyGift = 00000000 32位 是否领取第n个每日礼包  |  | ||||||
|        weeklyGift = 00000000 32位 是否领取第n个每周礼包  |  | ||||||
|     } |  | ||||||
| ]]-- |  | ||||||
|  |  | ||||||
| --活动类型 |  | ||||||
| ActivityType = 10012 |  | ||||||
| --对应的活动配置 |  | ||||||
| ActivityConfig = YYVIPConfig |  | ||||||
| PlatformConfig = YYVIPConfig |  | ||||||
| local PfId = System.getPfId() |  | ||||||
|  |  | ||||||
|  |  | ||||||
| if ActivityConfig == nil then |  | ||||||
|     assert(false) |  | ||||||
| end |  | ||||||
|  |  | ||||||
| local HttpStatus = { |  | ||||||
|     Success = "200", -- 成功 |  | ||||||
|     ArgError = "302", -- 参数错误 |  | ||||||
|     SignError = "304", -- 签名错误 |  | ||||||
|     LinkLost = "305", -- 链接失效 |  | ||||||
|     IpLimit = "306", -- IP受限 |  | ||||||
|     AccountNotExits = "600", -- 账号不存在 |  | ||||||
|     UnKnownedError = "299" -- 未知错误 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| -- 服务接口 |  | ||||||
| Host = ActivityConfig.host or "proxy.udblogin.game.yy.com" |  | ||||||
| Port = ActivityConfig.port or "80" |  | ||||||
| Api = ActivityConfig.api or "/query/yyVipInfo.do" |  | ||||||
|  |  | ||||||
| function getData(pActor) |  | ||||||
|     local var = Actor.getStaticVar(pActor) |  | ||||||
|     if var.YYVIPeople== nil then |  | ||||||
|         var.YYVIPeople = {} |  | ||||||
|     end |  | ||||||
|     return var.YYVIPeople |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function SendData(pActor)  |  | ||||||
|     if PfId ~= nil and PlatformConfig.SPID  ~= nil then   |  | ||||||
|         --print("[Tip] [YYVIP] SendData ---------------------PfId:"..PfId.."--- SPID:"..PlatformConfig.SPID)    |  | ||||||
|         if tostring(PfId) ~= tostring(PlatformConfig.SPID) then |  | ||||||
|              |  | ||||||
|             print("[Tip]  [YYVIP] [非本平台活动]")   |  | ||||||
|             return --非本平台活动 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
|     local npack = DataPack.allocPacket(pActor, enActivityID, sYYVipData) |  | ||||||
|     if npack then |  | ||||||
|         local data = getData(pActor) |  | ||||||
|         DataPack.writeByte(npack, (data.isVip or 0))        -- 是否为VIP 0否1是 |  | ||||||
|         DataPack.writeByte(npack, (data.grade or 1))        -- vip等级 |  | ||||||
|         DataPack.writeInt64(npack, (data.endTime or 0))     -- 过期时间戳 |  | ||||||
|         DataPack.writeUInt(npack, (data.newServerGift or 0))-- 32位 是否领取第n个新服豪礼 |  | ||||||
|         DataPack.writeUInt(npack, (data.dailyGift or 0))   -- 32位 是否领取第n个每日礼包 |  | ||||||
|         DataPack.writeUInt(npack, (data.weeklyGift or 0))   -- 32位 是否领取第n个每周礼包 |  | ||||||
|         DataPack.flush(npack) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function AfterCheckYYLogin(paramPack,content,result) |  | ||||||
|     if PfId ~= nil and PlatformConfig.SPID  ~= nil then   |  | ||||||
|         --print("[Tip] [YYVIP] SendData ---------------------PfId:"..PfId.."--- SPID:"..PlatformConfig.SPID)    |  | ||||||
|         if tostring(PfId) ~= tostring(PlatformConfig.SPID) then |  | ||||||
|              |  | ||||||
|             print("[Tip]  [YYVIP] [非本平台活动]")   |  | ||||||
|             return --非本平台活动 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
|     local aid = paramPack[1] |  | ||||||
|     local pActor = Actor.getActorById(aid) |  | ||||||
|     if not pActor then |  | ||||||
|         print("[AfterCheckYYLogin][" .. aid .. "] 已离线") |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     print("[AfterCheckYYLogin][" .. Actor.getName(pActor) .. "] content:"..content) |  | ||||||
|     print("[AfterCheckYYLogin]result:"..result) |  | ||||||
|  |  | ||||||
|     if result == 0 then |  | ||||||
|         local status = string.match(content,"\"status\":(%d+)") |  | ||||||
|         if (status == HttpStatus.Success) then |  | ||||||
|             local isvip = string.match(content,"\"isVip\":(%a+)") |  | ||||||
|             local grade = string.match(content,"\"grade\":(%d+)") |  | ||||||
|             local endTime = string.match(content,"\"endTime\":(%a+)") |  | ||||||
|             if isvip == "true" then |  | ||||||
|                 isvip = 1 |  | ||||||
|             else |  | ||||||
|                 isvip = 0 |  | ||||||
|             end |  | ||||||
|             grade = tonumber(grade) |  | ||||||
|             if endTime ~= "null" then |  | ||||||
|                 endTime = tonumber(endTime) |  | ||||||
|             else |  | ||||||
|                 endTime = 0 |  | ||||||
|             end |  | ||||||
|             local data = getData(pActor) |  | ||||||
|             data.isVip = isvip |  | ||||||
|             data.grade = grade |  | ||||||
|             data.endTime = endTime |  | ||||||
|             SendData(pActor) |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- CPP回调 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| function OnYYLogin(pActor) |  | ||||||
|     if PfId ~= nil and PlatformConfig.SPID  ~= nil then   |  | ||||||
|         --print("[Tip] [YYVIP] SendData ---------------------PfId:"..PfId.."--- SPID:"..PlatformConfig.SPID)    |  | ||||||
|         if tostring(PfId) ~= tostring(PlatformConfig.SPID) then |  | ||||||
|              |  | ||||||
|             print("[Tip]  [YYVIP] [非本平台活动]")   |  | ||||||
|             return --非本平台活动 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
|     local account = Actor.getAccount(pActor) |  | ||||||
|     local aid = Actor.getActorId(pActor) |  | ||||||
|     local now = os.time() |  | ||||||
|     local gameflag = System.getGameFlag() or "DDCQ" |  | ||||||
|     local key = System.getYYKey() |  | ||||||
|     local sign = System.MD5(gameflag,account,now,key) |  | ||||||
|     local req = Api..'?game='..gameflag..'&account='..account..'&ts='..now.."&sign="..string.upper(sign) |  | ||||||
|     print("Require OnYYLogin[" .. Actor.getName(pActor) .. "] : ".. req) |  | ||||||
|     AsyncWorkDispatcher.Add( |  | ||||||
|         {'GetHttpContent',Host,Port,req}, |  | ||||||
|         AfterCheckYYLogin, |  | ||||||
|         {aid} |  | ||||||
|     ) |  | ||||||
|      |  | ||||||
|     -- 当天初始化 |  | ||||||
|     local currMiniTime = System.getCurrMiniTime() |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if data.lastTime == nil then |  | ||||||
|         data.lastTime = currMiniTime |  | ||||||
|         data.newServerGift = 0 |  | ||||||
|         data.dailyGift = 0 |  | ||||||
|         data.weeklyGift = 0 |  | ||||||
|         --print("第一天") |  | ||||||
|     else |  | ||||||
|         if not System.isSameDay(data.lastTime, currMiniTime) then |  | ||||||
|             --print("跨一天") |  | ||||||
|             if System.isSameWeek(data.lastTime, currMiniTime) then |  | ||||||
|                 --print("跨一周") |  | ||||||
|                 data.weeklyGift = 0 |  | ||||||
|             end |  | ||||||
|             data.lastTime = currMiniTime |  | ||||||
|             data.dailyGift = 0 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- 客户端请求协议回调 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| function OnReqYYVIPNewSrvGift(pActor, packet) |  | ||||||
|     if PfId ~= nil and PlatformConfig.SPID  ~= nil then   |  | ||||||
|         --print("[Tip] [YYVIP] SendData ---------------------PfId:"..PfId.."--- SPID:"..PlatformConfig.SPID)    |  | ||||||
|         if tostring(PfId) ~= tostring(PlatformConfig.SPID) then |  | ||||||
|              |  | ||||||
|             print("[Tip]  [YYVIP] [非本平台活动]")   |  | ||||||
|             return --非本平台活动 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if idx > (2 * #ActivityConfig.newServerGift) then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local confid = math.ceil(idx/2) |  | ||||||
|     local conf = ActivityConfig.newServerGift[confid] |  | ||||||
|  |  | ||||||
|     local istitle = (idx%2 == 1) |  | ||||||
|  |  | ||||||
|     idx = idx - 1 |  | ||||||
|     local data = getData(pActor) |  | ||||||
|  |  | ||||||
|     if conf and data.lastTime then |  | ||||||
|  |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.newServerGift then |  | ||||||
|             data.newServerGift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.newServerGift, idx) |  | ||||||
|         print("newServerGift="..data.newServerGift.." flag="..flag) |  | ||||||
|         if flag == 1 then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         -- 等级检查 |  | ||||||
|         if data.grade < conf.viplvl then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         --检测格子 |  | ||||||
|         if CommonFunc.Awards.CheckBagIsEnough(pActor,16,tmDefNoBagNum,tstUI) ~= true then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         -- 设置标志 |  | ||||||
|         data.newServerGift = System.setIntBit(data.newServerGift, idx, true) |  | ||||||
|         SendData(pActor) |  | ||||||
|  |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,1) |  | ||||||
|         if istitle then |  | ||||||
|             local awards = {conf.title} |  | ||||||
|             CommonFunc.Awards.Give(pActor, awards, GameLog.Log_Activity10012, "YYVIP NewSrvGift") |  | ||||||
|         else |  | ||||||
|             --获取 |  | ||||||
|             local aid = Actor.getActorId(pActor) |  | ||||||
|             local awards = {conf.gift} |  | ||||||
|             SendMail(aid, ActivityConfig.nsTitle, ActivityConfig.nsContent, awards) |  | ||||||
|         end |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,2) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function OnReqYYVIPDailyGift(pActor, packet) |  | ||||||
|     if PfId ~= nil and PlatformConfig.SPID  ~= nil then   |  | ||||||
|         --print("[Tip] [YYVIP] SendData ---------------------PfId:"..PfId.."--- SPID:"..PlatformConfig.SPID)    |  | ||||||
|         if tostring(PfId) ~= tostring(PlatformConfig.SPID) then |  | ||||||
|              |  | ||||||
|             print("[Tip]  [YYVIP] [非本平台活动]")   |  | ||||||
|             return --非本平台活动 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if idx > #ActivityConfig.dailyGift then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local conf = ActivityConfig.dailyGift[idx] |  | ||||||
|     idx = idx - 1 |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if conf and data.lastTime then |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.dailyGift then |  | ||||||
|             data.dailyGift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.dailyGift, idx) |  | ||||||
|         --print("dailyGift="..data.dailyGift.." flag="..flag) |  | ||||||
|         if flag == 1 then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         -- 等级检查 |  | ||||||
|         if data.grade < conf.viplvl then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|          |  | ||||||
|         -- 元宝检查 |  | ||||||
|         local consumes = {{type=4,id=4,count=conf.yb}} |  | ||||||
|         if CommonFunc.Consumes.CheckActorSources(pActor, consumes, tstUI) ~= true then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         --消耗 |  | ||||||
|         CommonFunc.Consumes.Remove(pActor, consumes, GameLog.Log_Activity10012, "YYVIP dailyGift | " .. ActivityType) |  | ||||||
|  |  | ||||||
|         -- 设置标志 |  | ||||||
|         data.dailyGift = System.setIntBit(data.dailyGift, idx, true) |  | ||||||
|         SendData(pActor) |  | ||||||
|          |  | ||||||
|         --获取 |  | ||||||
|         local aid = Actor.getActorId(pActor) |  | ||||||
|         local awards = {conf.item} |  | ||||||
|         SendMail(aid, ActivityConfig.dgTitle, ActivityConfig.dgContent, awards) |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,1) |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,2) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function OnReqYYVIPWeeklyGift(pActor, packet) |  | ||||||
|     if PfId ~= nil and PlatformConfig.SPID  ~= nil then   |  | ||||||
|         --print("[Tip] [YYVIP] SendData ---------------------PfId:"..PfId.."--- SPID:"..PlatformConfig.SPID)    |  | ||||||
|         if tostring(PfId) ~= tostring(PlatformConfig.SPID) then |  | ||||||
|              |  | ||||||
|             print("[Tip]  [YYVIP] [非本平台活动]")   |  | ||||||
|             return --非本平台活动 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if idx > #ActivityConfig.weeklyGift then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local conf = ActivityConfig.weeklyGift[idx] |  | ||||||
|     idx = idx - 1 |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if conf and data.lastTime then |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.weeklyGift then |  | ||||||
|             data.weeklyGift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.weeklyGift, idx) |  | ||||||
|         --print("weeklyGift="..data.weeklyGift.." flag="..flag) |  | ||||||
|         if flag == 1 then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         -- 等级检查 |  | ||||||
|         if data.grade < conf.viplvl then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         --检测格子 |  | ||||||
|         if CommonFunc.Awards.CheckBagIsEnough(pActor,16,tmDefNoBagNum,tstUI) ~= true then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|          |  | ||||||
|         -- 元宝检查 |  | ||||||
|         local consumes = {{type=4,id=4,count=conf.yb}} |  | ||||||
|         if CommonFunc.Consumes.CheckActorSources(pActor, consumes, tstUI) ~= true then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         --消耗 |  | ||||||
|         CommonFunc.Consumes.Remove(pActor, consumes, GameLog.Log_Activity10012, "YYVIP WeeklyGift | " .. ActivityType) |  | ||||||
|  |  | ||||||
|         -- 设置标志 |  | ||||||
|         data.weeklyGift = System.setIntBit(data.weeklyGift, idx, true) |  | ||||||
|         SendData(pActor) |  | ||||||
|          |  | ||||||
|         --获取 |  | ||||||
|         CommonFunc.Awards.Give(pActor, awards, GameLog.Log_Activity10012, "YYVIP WeeklyGift | " .. ActivityType) |  | ||||||
|  |  | ||||||
|         --获取 |  | ||||||
|         local aid = Actor.getActorId(pActor) |  | ||||||
|         local awards = {conf.gift} |  | ||||||
|         SendMail(aid, ActivityConfig.wgTitle, ActivityConfig.wgContent, awards) |  | ||||||
|          |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,1) |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,2) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqYYVIPNewSrvGift, OnReqYYVIPNewSrvGift) |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqYYVIPDailyGift, OnReqYYVIPDailyGift) |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqYYVIPWeeklyGift, OnReqYYVIPWeeklyGift) |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- 玩家 回调注册 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| -- 跨天 |  | ||||||
| function OnNewDayArrive(pActor,ndiffday) |  | ||||||
|     if PfId ~= nil and PlatformConfig.SPID  ~= nil then   |  | ||||||
|         --print("[Tip] [YYVIP] SendData ---------------------PfId:"..PfId.."--- SPID:"..PlatformConfig.SPID)    |  | ||||||
|         if tostring(PfId) ~= tostring(PlatformConfig.SPID) then |  | ||||||
|              |  | ||||||
|             print("[Tip]  [YYVIP] [非本平台活动]")   |  | ||||||
|             return --非本平台活动 |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
|     local currMiniTime = System.getCurrMiniTime() |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if data.lastTime then |  | ||||||
|         if not System.isSameDay(data.lastTime, currMiniTime) then |  | ||||||
|             --print("跨一天") |  | ||||||
|             if not System.isSameWeek(data.lastTime, currMiniTime) then |  | ||||||
|                 --print("跨一周") |  | ||||||
|                 data.weeklyGift = 0 |  | ||||||
|             end |  | ||||||
|             data.lastTime = currMiniTime |  | ||||||
|             data.dailyGift = 0 |  | ||||||
|         end |  | ||||||
|         SendData(pActor) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| ActorEventDispatcher.Reg(aeNewDayArrive, OnNewDayArrive, "ActivityType10012.lua") |  | ||||||
| @@ -1,289 +0,0 @@ | |||||||
| module("ActivityType10013", package.seeall) |  | ||||||
|  |  | ||||||
| --[[ |  | ||||||
|     个人活动(玩法),超玩会员 |  | ||||||
|      |  | ||||||
|     个人数据:SupperVIPeople |  | ||||||
|     { |  | ||||||
|         isVip = true/false 是否是会员 |  | ||||||
|        lastTime = 0 上一次初始化的时间戳 |  | ||||||
|        v1_v3Gift  = 00000000 32位 是否领取第n个v1-v3礼包 |  | ||||||
|        dailyGift = 00000000 32位 是否领取第n个每日礼包 |  | ||||||
|     } |  | ||||||
| ]]-- |  | ||||||
|  |  | ||||||
| --活动类型 |  | ||||||
| ActivityType = 10013 |  | ||||||
| --对应的活动配置 |  | ||||||
| ActivityConfig = GameVIPConfig |  | ||||||
| if ActivityConfig == nil then |  | ||||||
|     assert(false) |  | ||||||
| end |  | ||||||
|  |  | ||||||
| local HttpStatus = |  | ||||||
| { |  | ||||||
|     Success = "200", -- 成功 |  | ||||||
|     ArgError = "302", -- 参数错误 |  | ||||||
|     SignError = "304", -- 签名错误 |  | ||||||
|     LinkLost = "305", -- 链接失效 |  | ||||||
|     IpLimit = "306", -- IP受限 |  | ||||||
|     AccountNotExits = "600", -- 账号不存在 |  | ||||||
|     UnKnownedError = "299", -- 未知错误 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| -- 服务接口 |  | ||||||
| Host = ActivityConfig.host or "proxy.udblogin.game.yy.com" |  | ||||||
| Port = ActivityConfig.port or "80" |  | ||||||
| Api = ActivityConfig.api or "/query/cwVipInfo.do" |  | ||||||
|  |  | ||||||
| function getData(pActor) |  | ||||||
|     local var = Actor.getStaticVar(pActor) |  | ||||||
|     if var.SupperVIPeople== nil then |  | ||||||
|         var.SupperVIPeople = {} |  | ||||||
|     end |  | ||||||
|     return var.SupperVIPeople |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function SendData(pActor) |  | ||||||
|     local npack = DataPack.allocPacket(pActor, enActivityID, sSupperVipData) |  | ||||||
|     if npack then |  | ||||||
|         local data = getData(pActor) |  | ||||||
|         DataPack.writeUInt(npack, (data.v1_v3Gift or 0)) |  | ||||||
| --print("v1-v3 giftbit : "..(data.v1_v3Gift or 0 ) ) |  | ||||||
|         DataPack.writeUInt(npack, (data.dailyGift or 0)) |  | ||||||
| --print("daily giftbit : "..(data.dailyGift or 0)) |  | ||||||
|         DataPack.flush(npack) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function AfterCheckSupperLogin(paramPack,content,result) |  | ||||||
|     local aid = paramPack[1] |  | ||||||
|     local pActor = Actor.getActorById(aid) |  | ||||||
|     if not pActor then |  | ||||||
|         --print("[AfterCheckSupperLogin][" .. aid .. "] 已离线") |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     --print("[AfterCheckSupperLogin][" .. Actor.getName(pActor) .. "] content:"..content) |  | ||||||
|     --print("[AfterCheckSupperLogin]result:"..result) |  | ||||||
|  |  | ||||||
|     if Actor.getEntityType(pActor) ~= enActor then  |  | ||||||
|         return  |  | ||||||
|     end  |  | ||||||
|  |  | ||||||
|     --先清buff |  | ||||||
|     for i = 1 , #ActivityConfig.GameVIPbuff do |  | ||||||
|         Actor.delBuffById(pActor, (ActivityConfig.GameVIPbuff[i].buffid or 0)) |  | ||||||
|     end  |  | ||||||
|  |  | ||||||
|     local data = getData(pActor) |  | ||||||
|  |  | ||||||
|     if result == 0 then |  | ||||||
|         local status = string.match(content,"\"status\":(%d+)") |  | ||||||
|         if status == HttpStatus.Success then |  | ||||||
|             local vipLevel = string.match(content,"\"vipLevel\":(%d+)") |  | ||||||
|             vipLevel = tonumber(vipLevel) |  | ||||||
|             Actor.setUIntProperty(pActor,PROP_ACTOR_SUPPER_PLAY_LVL,vipLevel) |  | ||||||
|             Actor.updateActorEntityProp(pActor) |  | ||||||
|             --local grade = string.match(content,"\"grade\":(%d+)") |  | ||||||
|             --local endTime = string.match(content,"\"endTime\":(%a+)") |  | ||||||
|             data.isVip = 1 |  | ||||||
|  |  | ||||||
|             --加超玩特权buff  |  | ||||||
|             if(vipLevel >= 9) then |  | ||||||
|                 Actor.addBuffById(pActor, (ActivityConfig.GameVIPbuff[3].buffid or 0)) |  | ||||||
|             elseif (vipLevel >= 6) then |  | ||||||
|                 Actor.addBuffById(pActor, (ActivityConfig.GameVIPbuff[2].buffid or 0)) |  | ||||||
|             elseif (vipLevel >= 2) then |  | ||||||
|                 Actor.addBuffById(pActor, (ActivityConfig.GameVIPbuff[1].buffid or 0)) |  | ||||||
|             end  |  | ||||||
|  |  | ||||||
|         else  |  | ||||||
|             data.isVip = 0 |  | ||||||
|             Actor.setUIntProperty(pActor,PROP_ACTOR_SUPPER_PLAY_LVL,0) |  | ||||||
|             Actor.updateActorEntityProp(pActor) |  | ||||||
|         end |  | ||||||
|          |  | ||||||
|     end |  | ||||||
|     SendData(pActor) |  | ||||||
| end |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- CPP回调 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| function OnSupperLogin(pActor) |  | ||||||
|     local account = Actor.getAccount(pActor) |  | ||||||
|     local aid = Actor.getActorId(pActor) |  | ||||||
|     local now_milli = os.time()*1000 |  | ||||||
|     local gameflag = System.getGameFlag() or "DDCQ" |  | ||||||
|     local key = System.getYYKey() |  | ||||||
|     local sign = System.MD5(gameflag,account,now_milli,key) |  | ||||||
|     local req = Api..'?game='..gameflag..'&account='..account..'&ts='..now_milli.."&sign="..string.upper(sign) |  | ||||||
|     --print("Require OnSupperLogin[" .. Actor.getName(pActor) .. "] : ".. req) |  | ||||||
|     AsyncWorkDispatcher.Add( |  | ||||||
|         {'GetHttpContent',Host,Port,req}, |  | ||||||
|         AfterCheckSupperLogin, |  | ||||||
|         {aid} |  | ||||||
|     ) |  | ||||||
|      |  | ||||||
|     -- 当天初始化 |  | ||||||
|     local currMiniTime = System.getCurrMiniTime() |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if data.lastTime == nil then |  | ||||||
|         data.lastTime = currMiniTime |  | ||||||
|         --print("第一天") |  | ||||||
|     else |  | ||||||
|         if not System.isSameDay(data.lastTime, currMiniTime) then |  | ||||||
|             data.lastTime = currMiniTime |  | ||||||
|         end |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- 客户端请求协议回调 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| --v1-v3等级礼包 |  | ||||||
| function OnReqSuperVipV1_V3(pActor, packet) |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if idx > #ActivityConfig.vipGift or idx <= 0  then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local conf = ActivityConfig.vipGift[idx] |  | ||||||
|     local myLevel = Actor.getIntProperty(pActor, PROP_ACTOR_SUPPER_PLAY_LVL) |  | ||||||
|  |  | ||||||
|     --一级玩家增加领取范围 |  | ||||||
|     if myLevel ==1 then  |  | ||||||
|         myLevel = 2 |  | ||||||
|     end  |  | ||||||
|  |  | ||||||
|     local data = getData(pActor) |  | ||||||
|  |  | ||||||
|     if data.isVip == 0 then  |  | ||||||
|         return  |  | ||||||
|     end  |  | ||||||
|     if conf and data.lastTime then |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.v1_v3Gift then |  | ||||||
|             data.v1_v3Gift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.v1_v3Gift, idx-1) |  | ||||||
|         if flag == 1 then |  | ||||||
|             Actor.sendTipmsg(pActor, "|C:0xf56f00&T:奖励已领取|", tstUI) |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|         -- 等级检查 |  | ||||||
|         if myLevel < idx then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         --消耗 |  | ||||||
|         --CommonFunc.Consumes.Remove(pActor, consumes, GameLog.Log_Activity10013, "super Player v1-v3") |  | ||||||
|  |  | ||||||
|         --记录日志 |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,1)  |  | ||||||
|  |  | ||||||
|         --获取 |  | ||||||
|         local aid = Actor.getActorId(pActor) |  | ||||||
|         local awards = conf |  | ||||||
|         SendMail(aid, ActivityConfig.VIPTitle, ActivityConfig.VIPContent, awards) |  | ||||||
|  |  | ||||||
|         --记录日志 |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,2)  |  | ||||||
|         -- 设置标志 |  | ||||||
|         data.v1_v3Gift = System.setIntBit(data.v1_v3Gift, idx-1, true) |  | ||||||
|         SendData(pActor) |  | ||||||
|     end |  | ||||||
|  |  | ||||||
| end  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| -- 每日礼包,初中高级 |  | ||||||
| function OnReqSuperVipDaily(pActor, packet) |  | ||||||
|     local idx = DataPack.readByte(packet) |  | ||||||
|     if idx > #ActivityConfig.dailyGift or idx <= 0 then |  | ||||||
|         return |  | ||||||
|     end |  | ||||||
|     local conf = ActivityConfig.dailyGift[idx] |  | ||||||
|  |  | ||||||
|     local myLevel = Actor.getIntProperty(pActor, PROP_ACTOR_SUPPER_PLAY_LVL) |  | ||||||
|      |  | ||||||
|     local data = getData(pActor) |  | ||||||
|  |  | ||||||
|     if data.isVip == 0 then  |  | ||||||
|         return  |  | ||||||
|     end  |  | ||||||
|  |  | ||||||
|     if conf and data.lastTime then |  | ||||||
|         -- 领取检查 |  | ||||||
|         if not data.dailyGift then |  | ||||||
|             data.dailyGift = 0 |  | ||||||
|         end |  | ||||||
|         local flag = System.getIntBit(data.dailyGift, idx-1) |  | ||||||
|         if flag == 1 then |  | ||||||
|             Actor.sendTipmsg(pActor, "|C:0xf56f00&T:奖励已领取|", tstUI) |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         -- 等级检查 |  | ||||||
|         if myLevel < ActivityConfig.vipMap[idx] then |  | ||||||
|             return |  | ||||||
|         end |  | ||||||
|  |  | ||||||
|         --记录日志 |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,1)  |  | ||||||
|  |  | ||||||
|         --获取 |  | ||||||
|         local aid = Actor.getActorId(pActor) |  | ||||||
|         local awards = conf |  | ||||||
|         SendMail(aid, ActivityConfig.VIPDailyTitle, ActivityConfig.VIPDailyContent, awards) |  | ||||||
|  |  | ||||||
|         --记录日志 |  | ||||||
|         Actor.SendActivityLog(pActor,ActivityType,ActivityType,2)  |  | ||||||
|  |  | ||||||
|         -- 设置标志 |  | ||||||
|         data.dailyGift = System.setIntBit(data.dailyGift, idx-1, true) |  | ||||||
|          |  | ||||||
|         SendData(pActor) |  | ||||||
|     end |  | ||||||
|  |  | ||||||
| end  |  | ||||||
|  |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqSuperVipV1_V3, OnReqSuperVipV1_V3) |  | ||||||
| NetmsgDispatcher.Reg(enActivityID, cReqSuperVipDaily, OnReqSuperVipDaily) |  | ||||||
|  |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
| -- 玩家 回调注册 |  | ||||||
| -------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| -- 跨天 |  | ||||||
| function OnNewDayArrive(pActor,ndiffday) |  | ||||||
|     local currMiniTime = System.getCurrMiniTime() |  | ||||||
|     local data = getData(pActor) |  | ||||||
|     if data.lastTime then |  | ||||||
|         if not System.isSameDay(data.lastTime, currMiniTime) then |  | ||||||
|             --print("跨一天") |  | ||||||
|             data.lastTime = currMiniTime |  | ||||||
|             data.dailyGift = 0 |  | ||||||
|         end |  | ||||||
|         SendData(pActor) |  | ||||||
|     end |  | ||||||
| end |  | ||||||
|  |  | ||||||
| function OnUserLogout(pActor,actorId) |  | ||||||
|     --local pActor = Actor.getActorById(actorId) |  | ||||||
|  |  | ||||||
|     --离线就删除buff |  | ||||||
|     --没有对会员时间处理,上线是超玩就加buff,离线就删buff |  | ||||||
|     for i = 1 , #ActivityConfig.GameVIPbuff do |  | ||||||
|         Actor.delBuffById(pActor, (ActivityConfig.GameVIPbuff[i].buffid or 0)) |  | ||||||
|     end  |  | ||||||
|  |  | ||||||
| end  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| ActorEventDispatcher.Reg(aeNewDayArrive, OnNewDayArrive, "ActivityType10013.lua") |  | ||||||
| ActorEventDispatcher.Reg(aeUserLogout, OnUserLogout, "ActivityType10013.lua") |  | ||||||
|  |  | ||||||
| @@ -1,101 +0,0 @@ | |||||||
| module("ActivityType10014", package.seeall) |  | ||||||
| --[[ |  | ||||||
|      |  | ||||||
|     微信礼包 |  | ||||||
|  |  | ||||||
|     个人数据:ActorData[AtvId] |  | ||||||
|     { |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     全局缓存:Cache[AtvId] |  | ||||||
|     {    |  | ||||||
|          |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     全局数据:GlobalData[AtvId] |  | ||||||
|     { |  | ||||||
|      |  | ||||||
|     } |  | ||||||
| ]]-- |  | ||||||
|  |  | ||||||
| --活动类型 |  | ||||||
| ActivityType = 10014 |  | ||||||
| --对应的活动配置 |  | ||||||
| ActivityConfig = Activity10014Config |  | ||||||
| if ActivityConfig == nil then |  | ||||||
|     assert(false) |  | ||||||
| end |  | ||||||
|  |  | ||||||
|  |  | ||||||
| --------------------------我是分界线---------------------------- |  | ||||||
| -- 初始化玩家数据 |  | ||||||
| function OnInit(atvId, pActor) |  | ||||||
|     -- local Cfg = ActivityConfig[atvId]; |  | ||||||
|     -- if Cfg == nil then |  | ||||||
|     --     return; |  | ||||||
|     -- end |  | ||||||
|     -- local data = getActorCdkData(pActor) |  | ||||||
|     -- if data then |  | ||||||
|     --     if data.codeTypeTimes then |  | ||||||
|     --         if data.codeTypeTimes[Cfg.cdktype] then |  | ||||||
|     --             Actor.closeOneActivity(pActor,atvId) |  | ||||||
|     --         end |  | ||||||
|     --     end |  | ||||||
|     -- end  |  | ||||||
| end |  | ||||||
|  |  | ||||||
| --活动开始 |  | ||||||
| function OnStart(atvId, pActor) |  | ||||||
|     -- local Cfg = ActivityConfig[atvId]; |  | ||||||
|     -- if Cfg == nil then |  | ||||||
|     --     return; |  | ||||||
|     -- end |  | ||||||
|     -- local data =getActorCdkData(pActor) |  | ||||||
|     -- if data then |  | ||||||
|     --     if data.codeTypeTimes then |  | ||||||
|     --         if data.codeTypeTimes[Cfg.cdktype] then |  | ||||||
|     --             Actor.closeOneActivity(pActor,atvId) |  | ||||||
|     --         end |  | ||||||
|     --     end |  | ||||||
|     -- end  |  | ||||||
| end |  | ||||||
|  |  | ||||||
|  |  | ||||||
| -- 获取活动数据 |  | ||||||
| function OnReqData(atvId, pActor, outPack) |  | ||||||
|     -- local Cfg = ActivityConfig[atvId]; |  | ||||||
|     -- if Cfg == nil then |  | ||||||
|     --     return; |  | ||||||
|     -- end |  | ||||||
|     -- local data = getActorCdkData(pActor) |  | ||||||
|     -- if data then |  | ||||||
|     --     if data.codeTypeTimes then |  | ||||||
|     --         if data.codeTypeTimes[Cfg.cdktype] then |  | ||||||
|     --             Actor.closeOneActivity(pActor,atvId) |  | ||||||
|     --         end |  | ||||||
|     --     end |  | ||||||
|     -- end  |  | ||||||
| end |  | ||||||
|  |  | ||||||
| -- 活动结束 |  | ||||||
| function OnUpdate(atvId, curTime, pActor) |  | ||||||
|     local Cfg = ActivityConfig[atvId]; |  | ||||||
|     if Cfg == nil then |  | ||||||
|         return; |  | ||||||
|     end |  | ||||||
|     local data = getActorCdkData(pActor) |  | ||||||
|     if data then |  | ||||||
|         if data.codeTypeTimes then |  | ||||||
|             if data.codeTypeTimes[Cfg.cdktype] then |  | ||||||
|                 Actor.closeOneActivity(pActor,atvId) |  | ||||||
|             end |  | ||||||
|         end |  | ||||||
|     end  |  | ||||||
| end |  | ||||||
|  |  | ||||||
|  |  | ||||||
| ActivityDispatcher.Reg(ActivityEvent.OnStart, ActivityType, OnStart, "ActivityType10014.lua") |  | ||||||
| ActivityDispatcher.Reg(ActivityEvent.OnInit, ActivityType, OnInit, "ActivityType10014.lua") |  | ||||||
|  |  | ||||||
| ActivityDispatcher.Reg(ActivityEvent.OnReqData, ActivityType, OnReqData, "ActivityType10014.lua") |  | ||||||
| ActivityDispatcher.Reg(ActivityEvent.OnUpdate, ActivityType, OnUpdate, "ActivityType10014.lua") |  | ||||||
| @@ -35,17 +35,12 @@ require("Activity.ActivityType10005")  --个人活动:月份签到 | |||||||
| require("Activity.ActivityType10006")  --个人活动:登录基金 | require("Activity.ActivityType10006")  --个人活动:登录基金 | ||||||
| require("Activity.ActivityType10009")  --个人活动:达标活动 | require("Activity.ActivityType10009")  --个人活动:达标活动 | ||||||
| require("Activity.ActivityType10010")  --个人活动:寻宝活动 | require("Activity.ActivityType10010")  --个人活动:寻宝活动 | ||||||
| require("Activity.ActivityType10011")  --玩法:YY大厅特权 |  | ||||||
| require("Activity.ActivityType10012")  --玩法:YY会员 |  | ||||||
| require("Activity.ActivityType10013")  --玩法:超玩会员 |  | ||||||
| require("Activity.ActivityType10014")  --玩法:微信礼包 |  | ||||||
| require("Activity.ActivityType10015")  --全局个人活动:每周固定时间的礼包活动 | require("Activity.ActivityType10015")  --全局个人活动:每周固定时间的礼包活动 | ||||||
| require("Activity.ActivityType10017")  --兑换活动 | require("Activity.ActivityType10017")  --兑换活动 | ||||||
| require("Activity.ActivityQQHall")  --QQ大厅 | require("Activity.ActivityType10019")  --个人活动:达标活动 | ||||||
| require("Activity.ActivityType10019")  -- | require("Activity.ActivityLuckyTree")  --摇钱树 | ||||||
| require("Activity.ActivityLuckyTree")  -- | require("Activity.ActivityOnlineMin")  --累计在线 | ||||||
| require("Activity.ActivityOnlineMin")  -- | require("Activity.ActivityType10020")  --个人活动:寻宝 | ||||||
| require("Activity.ActivityType10020")  -- |  | ||||||
| require("Activity.ActivityType10021")  --个人活动:二充 | require("Activity.ActivityType10021")  --个人活动:二充 | ||||||
|  |  | ||||||
| require("Activity.ActivityType10033")  --区服冠名 | require("Activity.ActivityType10033")  --区服冠名 | ||||||
|   | |||||||
| @@ -243,7 +243,6 @@ end | |||||||
|  |  | ||||||
| --使用通码 | --使用通码 | ||||||
| function UseCommonCDKey(pActor, code) | function UseCommonCDKey(pActor, code) | ||||||
|     print("[DEBUG] UseCommonCDKey, code="..code) |  | ||||||
|  |  | ||||||
|     local data = getActorData(pActor) |     local data = getActorData(pActor) | ||||||
|     local time = System.getCurrMiniTime() |     local time = System.getCurrMiniTime() | ||||||
| @@ -252,6 +251,12 @@ function UseCommonCDKey(pActor, code) | |||||||
|         return |         return | ||||||
|     end |     end | ||||||
|  |  | ||||||
|  |     -- 2025-4-15 12转130级才能领取 | ||||||
|  |     if Actor.checkCommonLimit(pActor,130,12,0,0) == false and code == "tiancijiyuan"  then | ||||||
|  |         Actor.sendTipmsg(pActor,"请不要使用小号注册进行刷去奖励!") | ||||||
|  |         return | ||||||
|  |     end | ||||||
|  |  | ||||||
|     if CommonCDKeyConf[code].switch == 0 then |     if CommonCDKeyConf[code].switch == 0 then | ||||||
|         local npack = DataPack.allocPacket(pActor, enMiscSystemID, sUseCdkey) |         local npack = DataPack.allocPacket(pActor, enMiscSystemID, sUseCdkey) | ||||||
|         if npack then |         if npack then | ||||||
|   | |||||||
| @@ -51,7 +51,6 @@ | |||||||
| --#include "data/config/activity/Activity10006Config.config" once | --#include "data/config/activity/Activity10006Config.config" once | ||||||
| --#include "data/config/activity/Activity10009Config.config" once | --#include "data/config/activity/Activity10009Config.config" once | ||||||
| --#include "data/config/activity/Activity10010Config.config" once | --#include "data/config/activity/Activity10010Config.config" once | ||||||
| --#include "data/config/activity/Activity10014Config.config" once |  | ||||||
| --#include "data/config/activity/Activity10015Config.config" once | --#include "data/config/activity/Activity10015Config.config" once | ||||||
| --#include "data/config/activity/Activity10017Config.config" once | --#include "data/config/activity/Activity10017Config.config" once | ||||||
| --#include "data/config/activity/Activity10019Config.config" once | --#include "data/config/activity/Activity10019Config.config" once | ||||||
| @@ -65,11 +64,6 @@ | |||||||
| --#include "data/config/OnlineTime/OnlineTimeReward.config" once --累计在线 | --#include "data/config/OnlineTime/OnlineTimeReward.config" once --累计在线 | ||||||
| --#include "data/config/OnlineTime/OnlineTimeconst.config" once --在线 | --#include "data/config/OnlineTime/OnlineTimeconst.config" once --在线 | ||||||
|  |  | ||||||
| --平台活动 |  | ||||||
| --#include "data/config/YYPlatform/YYMemberConfig.config" once |  | ||||||
| --#include "data/config/YYPlatform/YYVIPConfig.config" once |  | ||||||
| --#include "data/config/YYPlatform/GameVIPConfig.config" once |  | ||||||
|  |  | ||||||
| -- 套装 | -- 套装 | ||||||
| --#include "data/config/SuitConfig.config" once | --#include "data/config/SuitConfig.config" once | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1989,23 +1989,28 @@ TipMsg={ | |||||||
| }, | }, | ||||||
| [497] = { | [497] = { | ||||||
| 	id = 497, | 	id = 497, | ||||||
| 	tipmsg = "%s赞助白卡会员,|C:0xfc21ed&T:智能回收|轻松挂机续航,交易功能直接开启|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | 	tipmsg = "", | ||||||
|  | 	-- tipmsg = "%s赞助白卡会员,|C:0xfc21ed&T:智能回收|轻松挂机续航,交易功能直接开启|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | ||||||
| }, | }, | ||||||
| [498] = { | [498] = { | ||||||
| 	id = 498, | 	id = 498, | ||||||
| 	tipmsg = "%s赞助绿卡会员,|C:0xfc21ed&T:麻痹戒指|三职业通用麻天麻地,打怪回收|C:0xfc21ed&T:金币+18%|,攻速大增|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | 	tipmsg = "", | ||||||
|  | 	-- tipmsg = "%s赞助绿卡会员,|C:0xfc21ed&T:麻痹戒指|三职业通用麻天麻地,打怪回收|C:0xfc21ed&T:金币+18%|,攻速大增|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | ||||||
| }, | }, | ||||||
| [499] = { | [499] = { | ||||||
| 	id = 499, | 	id = 499, | ||||||
| 	tipmsg = "%s赞助蓝卡会员,打怪回收|C:0xfc21ed&T:金币+36%|,打怪|C:0xfc21ed&T:经验+20%|,|C:0xfc21ed&T:切割+20%|打怪砍瓜切菜|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | 	tipmsg = "", | ||||||
|  | 	-- tipmsg = "%s赞助蓝卡会员,打怪回收|C:0xfc21ed&T:金币+36%|,打怪|C:0xfc21ed&T:经验+20%|,|C:0xfc21ed&T:切割+20%|打怪砍瓜切菜|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | ||||||
| }, | }, | ||||||
| [500] = { | [500] = { | ||||||
| 	id = 500, | 	id = 500, | ||||||
| 	tipmsg = "%s赞助紫卡会员,体力永久|C:0xfc21ed&T:+1000|,幸运永久额外|C:0xfc21ed&T:+7|,打怪|C:0xfc21ed&T:经验+40%||E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | 	tipmsg = "", | ||||||
|  | 	-- tipmsg = "%s赞助紫卡会员,体力永久|C:0xfc21ed&T:+1000|,幸运永久额外|C:0xfc21ed&T:+7|,打怪|C:0xfc21ed&T:经验+40%||E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | ||||||
| }, | }, | ||||||
| [501] = { | [501] = { | ||||||
| 	id = 501, | 	id = 501, | ||||||
| 	tipmsg = "%s赞助橙卡会员,|C:0xfc21ed&T:超麻神戒|天地唯我,|C:0xfc21ed&T:暴击倍率+50%|不暴则已一暴惊人|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | 	tipmsg = "", | ||||||
|  | 	-- tipmsg = "%s赞助橙卡会员,|C:0xfc21ed&T:超麻神戒|天地唯我,|C:0xfc21ed&T:暴击倍率+50%|不暴则已一暴惊人|E:-2,19,&U:&C:0x28ee01&T:[我也要特权]|", | ||||||
| }, | }, | ||||||
| [502] = { | [502] = { | ||||||
| 	id = 502, | 	id = 502, | ||||||
|   | |||||||
							
								
								
									
										29
									
								
								buildConfig/AMServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								buildConfig/AMServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | |||||||
|  | amconfig= | ||||||
|  | { | ||||||
|  | 	httpport =11001,  							--绑定的http回调的端口 | ||||||
|  | 	amport =5660,  								--连接地址 | ||||||
|  | 	platform = | ||||||
|  | 	{ | ||||||
|  | 		{ | ||||||
|  | 			spid="wyi2", | ||||||
|  | 			codeid=1,  							--产品的编号 | ||||||
|  | 			code="djrm",  						--产品的code | ||||||
|  | 			db="mir_amdb",					--数据库名 | ||||||
|  | 			host="127.0.0.1",					--数据库主机 | ||||||
|  | 			port=3306,							--数据库端口 | ||||||
|  | 			user="root",					--数据库账号 | ||||||
|  | 			pass="mysql_y8NXNT",						--数据库密码 | ||||||
|  | 			paykey="GAmqXI8ao8kGAOIQmjFVqg==",	-- | ||||||
|  | 			awdkey="GAmqXI8ao8kGAOIQmjFVqg==",	-- | ||||||
|  | 			bianma="utf8",						-- | ||||||
|  |  | ||||||
|  | 			--允许的ip列表,最多32个 | ||||||
|  | 			hosts= | ||||||
|  | 			{ | ||||||
|  | 				"116.22.44.53", | ||||||
|  | 				"127.0.0.1", | ||||||
|  | 				"116.233.207.20" | ||||||
|  | 			} | ||||||
|  | 		}, | ||||||
|  | 	} | ||||||
|  | } | ||||||
							
								
								
									
										24
									
								
								buildConfig/BackStageServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								buildConfig/BackStageServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | |||||||
|  | BackServer =  | ||||||
|  | { | ||||||
|  | 	spguid = 1,		--默认的spid | ||||||
|  |  | ||||||
|  | 	--监听:服务器参数配置 | ||||||
|  | 	Server =  | ||||||
|  | 	{  | ||||||
|  | 		ServiceName="BackStageServer", | ||||||
|  | 		BindAddress = "0.0.0.0",  | ||||||
|  | 		Port = 8500 , | ||||||
|  | 		HttpPort = 111, | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	--数据库连接相关 | ||||||
|  | 	SQL =  | ||||||
|  | 	{  | ||||||
|  | 		Host = "127.0.0.1", | ||||||
|  | 		Port = 3306,  | ||||||
|  | 		DBName = "mir_command",  | ||||||
|  | 		DBUser = "root",  | ||||||
|  | 		DBPass = "mysql_y8NXNT", | ||||||
|  | 		utf8=1, | ||||||
|  | 	}, | ||||||
|  | } | ||||||
							
								
								
									
										29
									
								
								buildConfig/LoggerServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								buildConfig/LoggerServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | |||||||
|  | LoggerServer =  | ||||||
|  | { | ||||||
|  | 	--监听:服务器参数配置 | ||||||
|  | 	Server =  | ||||||
|  | 	{  | ||||||
|  | 		BindAddress = "0.0.0.0",  | ||||||
|  | 		Port = 34000 , | ||||||
|  | 		ServiceName="LoggerServer", | ||||||
|  | 	}, | ||||||
|  | 	 | ||||||
|  | 	--监听:发送聊天消息给工具 | ||||||
|  | 	ChatLog =  | ||||||
|  | 	{  | ||||||
|  | 		ServiceName="LogServer", | ||||||
|  | 		BindAddress = "0.0.0.0",  | ||||||
|  | 		Port = 35010, | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	--数据库连接相关 | ||||||
|  | 	SQL =  | ||||||
|  | 	{ | ||||||
|  | 		Host = "127.0.0.1", 	 | ||||||
|  | 		Port = 3306,  | ||||||
|  | 		DBName = "mir_log_s1",  | ||||||
|  | 		DBUser = "root",  | ||||||
|  | 		DBPass = "mysql_y8NXNT", | ||||||
|  | 		utf8=1, | ||||||
|  | 	}, | ||||||
|  | } | ||||||
							
								
								
									
										24
									
								
								buildConfig/NameServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								buildConfig/NameServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | |||||||
|  | NameServer = | ||||||
|  | { | ||||||
|  | 	--服务器名称 | ||||||
|  | 	ServerName = "zgame-nameserver", | ||||||
|  |     spguid=1, | ||||||
|  |          | ||||||
|  | 	--监听:名称服务绑定地址和端口 | ||||||
|  | 	NameService =  | ||||||
|  | 	{  | ||||||
|  | 		Address = "0.0.0.0",  | ||||||
|  | 		Port = 35000  | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	--数据库连接配置 | ||||||
|  | 	SQL =  | ||||||
|  | 	{  | ||||||
|  | 		--Host = "192.168.0.173", 	 | ||||||
|  | 		Host = "127.0.0.1",  | ||||||
|  | 		Port = 3306,  | ||||||
|  | 		DBName = "mir_name",  | ||||||
|  | 		DBUser = "root",  | ||||||
|  | 		DBPass = "mysql_y8NXNT"  | ||||||
|  | 	} | ||||||
|  | } | ||||||
							
								
								
									
										51
									
								
								buildConfig/SessionServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								buildConfig/SessionServerLinux.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,51 @@ | |||||||
|  | SessionServer = | ||||||
|  | { | ||||||
|  | 	--服务器名称 | ||||||
|  | 	ServerName = "会话服(sid=1)", | ||||||
|  | 	--SPID(运营商ID)定义 | ||||||
|  | 	SPID = "wyi2", | ||||||
|  | 	spguid = 1, | ||||||
|  | 	fcmOpen=false, | ||||||
|  | 	checksign=0, | ||||||
|  |     autoaccount = 1, | ||||||
|  | 	autocard = 1, | ||||||
|  |  	phptime = 1200, | ||||||
|  |  | ||||||
|  | 	--监听:会话服务器 | ||||||
|  | 	SessionService =  | ||||||
|  | 	{  | ||||||
|  | 		Address = "0.0.0.0",  | ||||||
|  | 		Port = 31000 | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	--监听:网关服务器(无用) | ||||||
|  | 	GateService =  | ||||||
|  | 	{  | ||||||
|  | 		Address = "0.0.0.0",  | ||||||
|  | 		Port = 21001 | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	--连接:Log服务器 | ||||||
|  | 	LogServer =  | ||||||
|  | 	{ | ||||||
|  | 		Host = "127.0.0.1",  | ||||||
|  | 		Port = 34000 | ||||||
|  | 	}, | ||||||
|  | 	 | ||||||
|  | 	--连接:AM服务器 | ||||||
|  | 	AMServer = | ||||||
|  | 	{ | ||||||
|  | 		Host = "127.0.0.1",  | ||||||
|  | 		Port = 5660 | ||||||
|  | 	}, | ||||||
|  |  | ||||||
|  | 	--数据库连接配置 | ||||||
|  | 	SQL =  | ||||||
|  | 	{  | ||||||
|  | 		Host = "127.0.0.1", 	 | ||||||
|  | 		Port = 3306,  | ||||||
|  | 		DBName = "mir_account", | ||||||
|  | 		DBUser = "root", | ||||||
|  | 		DBPass = "mysql_y8NXNT", | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @@ -2,12 +2,17 @@ version: '3.8' | |||||||
|  |  | ||||||
| services: | services: | ||||||
|   db: |   db: | ||||||
|     image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os:latest |     image: chuanqi-server-base:latest | ||||||
|     container_name: chuanqi-server-db |     container_name: chuanqi-server-db | ||||||
|     stdin_open: true |     stdin_open: true | ||||||
|     volumes: |     volumes: | ||||||
|       - ./DBServer:/data/server/s1/DBServer |       - ./DBServer:/data/server/s1/DBServer | ||||||
|       - ./wch:/etc/yum/wch |       - ./wch:/etc/yum/wch | ||||||
|  |       - ./buildConfig/AMServerLinux.txt:/data/server/build/AMServer/AMServerLinux.txt | ||||||
|  |       - ./buildConfig/BackStageServerLinux.txt:/data/server/build/BackStageServer/BackStageServerLinux.txt | ||||||
|  |       - ./buildConfig/LoggerServerLinux.txt:/data/server/build/LoggerServer/LoggerServerLinux.txt | ||||||
|  |       - ./buildConfig/NameServerLinux.txt:/data/server/build/NameServer/NameServerLinux.txt | ||||||
|  |       - ./buildConfig/SessionServerLinux.txt:/data/server/build/SessionServer/SessionServerLinux.txt | ||||||
|     entrypoint: "/data/server/s1/DBServer/start.sh" |     entrypoint: "/data/server/s1/DBServer/start.sh" | ||||||
|     network_mode: "host" |     network_mode: "host" | ||||||
|     restart: unless-stopped |     restart: unless-stopped | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user