⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nationsys_define.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
字号:
#ifndef _NATION_SYS_DEFINE_
#define _NATION_SYS_DEFINE_


// WarFieldStatus Define

#define		NW_PEACE						1
#define		NW_VOTE							2
#define		NW_PREPARE						3
#define		NW_WAR							4
#define		NW_WAIT_VOTE					7
#define		NW_WAIT_PREPARE					8
#define		NW_WAIT_WAR						9
#define		NW_WAIT_PEACE					10
#define		NW_SOPEN						11 

// WarFieldPort Define

#define		WARFIELD_PORT1					5991			// a Mountain Recess Warfield  
#define		WARFIELD_PORT2					5992			// a Prairie Warfield
#define		WARFIELD_PORT3					5993	        // an island Warfield

#define		BASE_WARFIELD_PORT				5991
#define		BASE_NEW_WARFIELD_PORT			5980
#define		MAX_NEW_WARFIELD				1


// WarLoop Time Define

#define		NW_PEACETIME1					1803600			// LTS TEMP
#define		NW_PEACETIME2					457200
#define		NW_PEACETIME3					1062000
#define		NW_PEACETIME4					1666800
#define		NW_VOTETIME						3600
#define		NW_PREPARETIME					7200
#define		NW_WARTIME						7200
#define		NW_BONUS						3600			// 011028 lts
#define		NW_FIRST_TIME					600

// Warfield Count Define

#define		NW_NATION_COUNT					3

// Function Kind

#define		NW_REQUEST						1
#define		NW_ANSWER						2

// String Max Define

#define     NW_NAME_MAX						31

// Squad Define
#define     NW_SQUAD_MAX					5		// 0何措 : 何措 祈己捞 登瘤 臼篮 牢盔狼 葛烙.
#define		NW_CANDIDATE_MAX				6

// NPC	Define
#define		NW_MAX_NPC						20
#define		NW_MAX_MONSTER					350

// CheckNation function Use
#define		NW_EVERY_SERVER					0
#define		NW_NATION_MANAGE_SERVER			1


#define		MAX_MONSTER_POINT				15

#define		MAP0_133						32		
#define		MAP0_138						24
#define		MAP0_203						24
#define		MAP0_198						34
#define		MAP0_263						32
#define		MAP0_268						23

#define		MAP1_450						32		
#define		MAP1_527						32
#define		MAP1_524						32

#define		MAP2_114						32		
#define		MAP2_119						26
#define		MAP2_151						28
#define		MAP2_156						23
#define		MAP2_274						30
#define		MAP2_279						19

#define		NW_SQUAD_KIND					3

#define		NW_ATTACKER						0
#define		NW_DEFENCER						1
#define		NW_REINFORCE					2

#define		NW_COMMANDER					3

#define		NW_BY							3
#define		NW_ZY							4
#define		NW_YL							6

//#define		MAX_STRING_PK					100 //020903 lsw

// WarBBS BBSType Define


#define		BBS_GENERAL						0
#define		BBS_WAR_BEGIN					1
#define		BBS_GUARDSTONE_BROKED			2
#define		BBS_CASTLEGATEWAY_BROKED		3
#define		BBS_WAR_VICTORY					4
#define		BBS_WAR_DEFEAT					5
#define		BBS_COMMANDER_ELECT				6
#define		BBS_WAR_JOIN_VOTE				7
#define		BBS_PEACE						8
#define		BBS_WAR_PREPARE					9
#define		BBS_COMMANDER_DEATH				10
#define		BBS_COMMANDER_CHAT				11
#define		BBS_BONUS_OPEN					12
#define		BBS_KILLER						13
#define		BBS_SQUADLEADER_ELECT			14
#define		BBS_NATION_MONEY_USE			15
#define		BBS_NATION_MONEY_NOT_USE		16

// WarBBS ArgType

#define		BBS_ALPHA						0
#define		BBS_NUM							1

// Castle GateWay
#define		NW_WARFIELD1					6
#define		NW_WARFIELD2					3
#define		NW_WARFIELD3					6

#define		NW_SQUAD_RARE_MAX				3


// 011017 LTS <
#define		NW_NOTICE_JOIN_ATTACK			1
#define		NW_NOTICE_JOIN_DEFENCE			2
#define		NW_NOTICE_JOIN_REINFORCE		3

#define		NW_NOTICE_PREPARE1				4			// In Case, Not Unified Warfield
#define		NW_NOTICE_PREPARE1_REINFORCE	5

#define		NW_NOTICE_PREPARE2				6
#define		NW_NOTICE_PREPARE2_REINFORCE	7

#define		NW_NOTICE_PREPARE3				8			// In Case, Unified Warfield
#define		NW_NOTICE_PREPARE3_REINFORCE	9

#define		NW_NOTICE_PREPARE4				10
#define		NW_NOTICE_PREPARE4_REINFORCE	11

#define		NW_NOTICE_WAR1A					12			// In Case, Not Unified Warfield
#define		NW_NOTICE_WAR1_REINFORCE		13

#define		NW_NOTICE_WAR2A					14			// In Case, Unified Warfield
#define		NW_NOTICE_WAR2_REINFORCE		15

#define		NW_NOTICE_PEACE1_VICTORY		16
#define		NW_NOTICE_PEACE1_DEFEAT			17
#define		NW_NOTICE_PEACE1_REINFORCE		18

#define		NW_NOTICE_PEACE2				19
#define		NW_NOTICE_PEACE2_REINFORCE		20

#define		NW_NOTICE_WAR1D                 21
#define		NW_NOTICE_WAR2D					22			// In Case, Unified Warfield

#define		NW_NOTICE_SOPEN					23
#define		NW_NOTICE_SOPEN_ERROR			24
// 011017 LTS >

#define		NW_REMAIN_TIME_UPDATE			60			// 011018 LTS

#define		NW_BY_JOIN_MAX					600
#define		NW_ZY_JOIN_MAX					600
#define		NW_YL_JOIN_MAX					600


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -