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

📄 network.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
📖 第 1 页 / 共 5 页
字号:
	short int skillno;
	short int x, y;
	char      min;

}t_server_skill_gauge;


#define CMD_VIEWTYPE_CHANGE				620
typedef struct viewtype_change
{
	short int   server_id; 
	char		viewtype;
}t_viewtype_change;


#define CMD_VIEW_CHAR_INFO				622
typedef struct view_char_info
{
	short int server_id;
	short int type;
	DWORD data;
	char  killer[ 31];
}t_view_char_info;



// Chatting.................................................................
#define CMD_CHAT_SET				7500
typedef struct chat_set
{
	char chattype;
	char chatname[ NM_LENGTH];
}t_chat_set;
#define CMD_CHAT_SET_RESULT			7510		
typedef struct chat_set_result	// 汲沥沁绰单 惑措啊 绝促搁 绝促绊 娟扁 秦霖促. 
{
	char result;
}t_chat_set_result;
// .........................................................................

#define CMD_TOTAL_MAP_CONNECTIONS	7520
typedef struct  total_map_connections
{
	short int no;
}t_total_map_connections;

#define CMD_TOTAL_CONNECTIONS		7530
typedef struct  total_connections
{
	short int no;
}t_total_connections;


#define CMD_ISTHERE_CHARNAME		7540
typedef struct client_isthere_charname
{		
	char name[ NM_LENGTH];
}t_client_isthere_charname;
#define CMD_THEREIS_NO_CHARNAME		7541
#define CMD_THEREIS_CHARNAME		7542
		
//------------ NEW_APPEND -------------------------------
#define CMD_GLOBAL_CHAT_DATA		9001
#define CMD_IM_GAME_SERVER         	9011
typedef struct im_game_server
{	
	int my_code;
	int port;
}t_im_game_server;
		
#define CMD_ACCESS_CHAR_DB			9021
#define CMD_ACCEPT_CHAR_DB			9031
#define CMD_ACCEPT_CHAR_GAME_DB		9032
#define CMD_ACCEPT_BINARY_DATA		9033
#define CMD_ACCEPT_SCRIPT_DATA		9034
#define CMD_ACCEPT_INV_DATA			9035
#define CMD_ACCEPT_ITEM_DATA		9036
#define CMD_ACCEPT_BANKITEM_DATA	9037
		
#define CMD_ACCEPT_BINARY_DATA_ERROR	9038
								
							
//-------------------------------------------------------
//------------ NEW_APPEND -------------------------------
typedef struct  server_access_char_db
{							
	short int		server_id;
							
	char			id[ID_LENGTH];
	char			name[NM_LENGTH];
} t_server_access_char_db;	
							
typedef struct  server_accept_char_db // 2308
{
	char			name[20];		// 030923 HK YGI	// 捞抚栏肺 犬牢茄促.
	short int		server_id;
							
	short int		Level;	
	DWORD			Exp;	
							
	short int		Gender;	
	short int		Face;							
	short int		nGuildCode; // CSD-030324
	short int		Class;	
	short int		Job;		// 0212YGI
	short int		Spell;	
							
	short int		Str;	
	short int		Con;	
	short int		Dex;	
	short int		Wis;		
	short int		Int;	
	short int		MoveP;	
	short int		Char;	
	short int		Endu;	
	short int		Moral;	
							
	DWORD			Money;	

	__int32	nLife;
	__int32	nMaxHp;
	__int32	nMana;
	__int32	nMaxMp;
	__int32	nHungry;
	__int32	nMaxHungry;
	
	BYTE			Condition;
						
	short int		SprNo;
	short int		X;
	short int		Y;
	char			MapName[20];
	unsigned char	Peacests;
	int		Sight;		// YGI 020418
	
	short int		BodyR;
	short int		BodyG;
	short int		BodyB;

	short int		ClothR;
	short int		ClothG;
	short int		ClothB;

	short int		Age;
	short int		Luck;
	short int		wsps;
	DWORD			nation;				//1004 YGI

	BYTE			accessory[4];
	short int		mantle;		// 011018 KHS 噶肚 

	BYTE			bAlive;
	short int		openhouse;
	char			disease[6];		
	DWORD			total_id;

	__int16 nPoison; // 历林拌凯 付过俊 措茄 历亲仿
	__int16 nCurse; // 历林拌凯 付过俊 措茄 历亲仿	
	__int16 nFire;	 // 阂拌凯 傍拜 付过俊 措茄 历亲仿
	__int16 nIce;		 // 倔澜拌凯 傍拜 付过俊 措茄 历亲仿
	__int16 nHoly;	 // 脚仿拌凯 傍拜 付过俊 措茄 历亲仿
	__int16 nElect;	 // 傈拜拌凯 傍拜 付过俊 措茄 历氢仿
	char			viewtype;

	short int		social_status;
	short int		fame;
	short int		fame_pk;		// 010915 LTS	//Fame_PK -> NWCharacter肺 背眉 DB俊绰 角力肺 NWCharacter狼 蔼捞 甸绢癌聪促.		
	NW_Character	NWCharacter;	// 010915 LTS
 
	char aStepInfo[20];
	int		nUserAge;				// 030929 kyo
  	Event_Join		EventJoin;		// 020115 LTS
} t_server_accept_char_db;

typedef struct  server_accept_char_game_db
{
	char			name[20];		// 030923 HK YGI
	short int		server_id;

	DWORD			BankMoney;

	// 010406 YGI
	DWORD			win_defeat;
	DWORD			LadderScore;
	DWORD			LastLoan;
	//DWORD			LastLoan_time;

	short int		nk3, nk4, nk6;
	DWORD			killmon;
	DWORD			killanimal;
	DWORD			killpc;
	short	int 	reserved_point;
	unsigned char	Tactics;
} t_server_accept_char_game_db;

typedef struct  server_accept_binary_data
{
	char			name[20];	// 030923 HK YGI
	short int		server_id;

	UCHAR			Ws[SIZE_OF_WS];
	UCHAR			Ps[SIZE_OF_PS];
	UCHAR			Skill[SIZE_OF_SKILL];
	UCHAR			skillexp[SIZE_OF_SKILL_EXP];
	UCHAR			tac_skillEXP[SIZE_OF_TAC_SKILL_EXP];
	UCHAR			equip[SIZE_OF_EQUIP];
	UCHAR			quick[SIZE_OF_QUICK];
	UCHAR			party[SIZE_OF_PARTY];
	UCHAR			relation[SIZE_OF_RELATION];
	UCHAR			employment[SIZE_OF_EMPLOYMENT];		
} t_server_accept_binary_data;

typedef struct  server_accept_script_data
{
	char			name[20];	// 030923 HK YGI
	short int		server_id;
	UCHAR			script_var[SIZE_OF_SCRIPT_VAR];
} t_server_accept_script_data;

typedef struct  server_accept_inv_data
{
	char			name[20];	// 030923 HK YGI
	short int		server_id;
	UCHAR			inv[SIZE_OF_INV];
	char			refresh_inventory;		// 甘辑滚啊 促矫 努扼捞攫飘俊 蔼阑 焊郴拎具 且锭	//021030 YGI
} t_server_accept_inv_data;

typedef struct  server_accept_item_data
{
	char			name[20];	// 030923 HK YGI
	short int		server_id;
	UCHAR			Item[SIZE_OF_ITEMINDEX];
} t_server_accept_item_data;

typedef struct  server_accept_bankitem_data
{
	char			name[20];	// 030923 HK YGI
	short int		server_id;
	UCHAR			bankitem[SIZE_OF_BANKITEM];
} t_server_accept_bankitem_data;


typedef struct server_accept_data_error		// login server俊辑 Error啊 惯积沁促. 
{
	char name[ NM_LENGTH];
}t_server_accept_data_error;


//-------------------------------------------------------



#define CMD_TAME_COMMAND			8100
//-------------------------------------------------------
#define LC_TAME_STOP				18
#define LC_TAME_ATTACK				19	
#define LC_TAME_FOLLOWME			20
#define LC_TAME_NAME				21
typedef struct tame_command
{
	BYTE	cmd;
	char	mybaby[ NM_LENGTH];
	char    toname[ NM_LENGTH]; 
}t_tame_command;

//-------------------------------------------------------
#define CMD_TAME_NAME_CHANGE		8101
typedef struct tame_name_change 
{
	short int id;
	char name[ NM_LENGTH];
}t_tame_name_change;

#define CMD_TAME_HOST_NAME			8102
typedef struct tame_host_name
{
	short int id;
	char hostname[ NM_LENGTH];
}t_tame_host_name;

#define CMD_TAME_COMMAND_RESULT		8103
typedef struct tame_command_result
{
	char	result;
}t_tame_command_result;

#define CMD_TAME_END				8104
typedef struct tame_end
{
	short int id;
}t_tame_end;

#define CMD_YOU_DIE					8200
typedef struct
{
	short int	id;
	short int	t;
}t_you_die;

#define CMD_DEBUG_REQ_CHAR_INFO		8300

typedef struct debug_server_req_char_info
{
	short int id;
	int		lv;
	int		exp;
	int		 ac;
	int		Str;				//  塞
	int		Con;				//  扒碍
	int		Dex;				//	刮酶己
	int		Wis;				//	瘤驱
	int		Int;				//	瘤瓷
	int		MoveP;				//	捞悼仿
	int		Char;				//	概仿
	int		Endu;				//  历氢仿
	int		Moral;				//	荤扁
	int		Luck;				//	青款
	int		wsps;				//  付过仿->付过 皋葛扼捞令

	int     Hp, HpMax;
	int     Mp, MpMax;
	int		Hungry,HungryMax;		

	short int event_no;			// 0131 YGI

}t_debug_server_req_char_info;

typedef struct debug_client_req_char_info
{
	short int id;
}t_debug_client_req_char_info;


#define CMD_PLEASE_GIVE_LIFE		8400
#define CMD_PLEASE_GIVE_LIFE1		8401
//< CSD-010907
/*
typedef struct please_give_life
{
	short int		id;
	short int       hp;
	short int       mana;
	short int       hungryp;
	short int       who;
}t_please_give_life;
*/
struct t_please_give_life
{
  short int id;
  short int who;
  __int32 nLife;
  __int32 nMana;
  __int32 hHungry;
};
//> CSD-010907
#define CMD_GOTO_EDELBROY_TOGETLIFE		8402

#define CMD_SMILE_FACE			8410
typedef struct client_smile_face	
{
	char smileno;
}t_client_smile_face;
typedef struct server_smile_face	
{
	short int id;
	char  smileno;
}t_server_smile_face;

// 傍瘤荤亲 傍绊....
#define		CMD_BBS					8411
typedef struct server_bbs
{
	char bbs[ MAX_PATH];
}t_server_bbs;

#define CMD_ACCESS_JOIN_YOU_ALREADY_IN_MAP			8412	// id客 Password甫 甸绊 立辟窍瘤父. 寸脚篮 捞固 甘俊 乐促. 肚绰 泅犁 Update吝捞促. 


#define CMD_HOW_MANY_IN_MAP							8413
typedef struct how_many_in_map
{
	char		map[ NM_LENGTH ];
	short int	how;
}t_how_many_in_map;

// 霸烙 款康磊侩
#define CMD_BLOCK_ATTACK_START						8414
#define CMD_BLOCK_ATTACK_END						8415
#define CMD_BLOCK_MOVE_START 						8416
#define CMD_BLOCK_MOVE_END							8417
#define CMD_BLOCK_MAGIC_START						8418
#define CMD_BLOCK_MAGIC_END							8419
#define CMD_BLOCK_GIVE_LIFE_START					8420
#define CMD_BLOCK_GIVE_LIFE_END						8421


#define CMD_ABSOLUTE_LOGOUT							8422
typedef struct absolute_logout
{
	short id;
}t_absolute_logout;

#define CMD_MAKE_GHOST								8423
typedef struct make_ghost
{
	short id;
}t_make_ghost;


#define CMD_GIVE_LIFE								8425
typedef struct give_life 
{
	short id;
}t_give_life;




#define CMD_ITEM_DURATION_CHANGE					8426
typedef struct item_duration_change
{
	BYTE pos;
	WORD dur;
}t_item_duration_change;



////////////////////////////////////////////////////////////////////////////////////////
//
// NPC甫 力绢窍扁 困茄 橇肺配妮
//

#define CMD_NPC_CHAT_DATA							8427
typedef struct npc_chat_data
{
	short int id;
	char      data[ TEXT_LENGTH];
}t_npc_chat_data;


#define CMD_NPCCTRL_MURI_8							8428
typedef struct npcctrl_muri_8	
{								
	short int id;				
	short int oldpatterntype;		
	short int patterntype;		
	short int bossid;
	DWORD	  Exp;
}t_npcctrl_muri_8;				
								
								
#define CMD_NPCCTRL_MURI_18							8429
typedef struct npcctrl_muri_18	
{								
	short int id;				
	short int oldpatterntype;	
	short int patterntype;		
	short int bossid;
	DWORD	  Exp;
}t_npcctrl_muri_18;				
								
									
#define CMD_NPCCTRL_MURI_28							8430
typedef struct npcctrl_muri_28 
{								
	short int id;				
	short int oldpatterntype;	
	short int patterntype;		
	short int bossid;
	DWORD	  Exp;

}t_npcctrl_muri_28;				

#define CMD_NPCCTRL_WANDER_MAUL						8431
typedef struct npcctrl_wander_maul 
{
	short int id;
	short int oldpatterntype;
	short int patterntype;
}t_npcctrl_wander_maul;

#define CMD_NPCCTRL_NO_MOVE							8432
typedef struct npcctrl_no_move 
{
	short int id;
	short int oldpatterntype;
	short int patterntype;
}t_npcctrl_no_move;

#define CMD_NPCCTRL_WANDER_GUARD					8433
typedef struct npcctrl_wander_guard 
{	
	short int id;
	short int oldpatterntype;
	short int patterntype;
}t_npcctrl_wander_guard;

#define CMD_NPCCTRL_WANDER_38						8434
typedef struct npcctrl_wander_38 
{
	short int id;
	short int oldpatterntype;
	short int patterntype;
	short int bossid;
}t_npcctrl_wander_38;


#define CMD_NPCCTRL_TAME	   						8435
typedef struct npcctrl_tame
{
	short int id;
	short int oldpatterntype;
	short int patterntype;
	short int bossid;
	short int HostId;
	char	  TargetName[31];
	short int tame;
	BYTE	  tame_cmd;
					
}t_npcctrl_tame;	
	
#define CMD_NPC_MODIFY_POS							8436
typedef struct npc_modify_pos
{				 	
	short int id;	
	short int mx, my;
}t_npc_modify_pos;	
					
							
#define CMD_SEND_NPC_PARAMETER						8437
typedef struct send_npc_parameter
{					
	short id;
	short type;
	short data;
}t_send_npc_parameter;
						
#define CMD_SEND_NPC_STRING_PARAMETER				8438
typedef struct send_npc_string_parameter
{							
	short id;			
	short type;				
	char data[ 31];		
}t_send_npc_string_parameter;
						
						
#define CMD_START_GOODBAD							8439
typedef struct start_goodbad
{						
	short int id;		

⌨️ 快捷键说明

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