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

📄 dr_network.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
📖 第 1 页 / 共 5 页
字号:
	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;
	//010326 YGI
	DWORD			win_defeat;
	DWORD			LadderScore;
	DWORD			LastLoan;
	//DWORD			LastLoan_time;
	short int		nk3;
	short int		nk4;
	short int		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];
	//021030 YGI
	char			refresh_inventory;		// 甘辑滚啊 促矫 努扼捞攫飘俊 蔼阑 焊郴拎具 且锭

} 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
#define CMD_QUEST_JOB_FINISH			8409

struct t_please_give_life
{
  short int id;
  short int who;
	__int32 nLife;
	__int32 nMana;
	__int32 nHungry;
};

#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_BLOCK_SKILL_START						8530//020821 lsw
#define CMD_BLOCK_SKILL_END							8531//020821 lsw


#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_SEALSTONE_						8901
typedef struct npcctrl_sealstone
{								
	short int id;				
	short int patterntype;		
}t_npcctrl_sealstone;				



#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;		
	short int	 nk3;
	short int	 nk4;
	short int	 nk6;
						
}t_start_goodbad;			
						
#define CMD_ENDOF_GOODBAD							8440
typedef struct endof_goodbad
{							
	short int id;			
}t_endof_goodbad;				
							
#define	CMD_LOGIN_BBS								8450
typedef struct login_bbs
{
	char	bbs[ MAX_PATH];
}t_login_bbs;



#define	CMD_CHAR_IN_GAME							8460	
typedef struct char_in_game							
{
	char name[ NM_LENGTH];
}t_char_in_game;



// Login Server -> Game Server
// id甫 啊柳 仇阑 谗绢扼...
#define CMD_CLOSE_LOGIN_ID							8462
typedef struct login_close_login_id 
{
	char id[ NM_LENGTH];
}t_login_close_login_id;



#define CMD_UPDATE_VERY_IMPORTANT_STATUS			8465
typedef struct update_very_important_status
{
	char            name[ NM_LENGTH];
	
	short int		Level;

	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;	  
	short int		Luck ;	 
	short int		wsps ;	 

	int		HpMax ;
	int		ManaMax;
	int		HungryMax;

	short int		reserved_point;

	DWORD			Exp;

}t_update_very_important_status;



#define CMD_UPDATE_VERY_IMPORTANT_TACTICS		8466
typedef struct update_very_important_tactics
{
	char name[ NM_LENGTH];
	char tac_skillEXP[ SIZE_OF_TAC_SKILL_EXP];
}t_update_very_important_tactics;




#define CMD_TRIP_AROUND		8468
typedef struct trip_around
{
	int x, y;
}t_trip_around;





#define CMD_TACTICS_PARRYING_EXP		8470
typedef struct tactics_parrying_exp
{
	DWORD exp;
	char step;
}t_tactics_parrying_exp;
	
	
	
	
#define CMD_DUAL_PROPOSAL			8472
typedef struct dual_proposal	
{	
	char name[ NM_LENGTH];
}t_dual_fight_proposal;
	
#define CMD_DUAL_PROPOSAL_ACCEPT	8472
typedef struct dual_proposal_accept
{	
	char name[NM_LENGTH];
}t_dual_proposal_accept;

#define CMD_DUAL_PROPOSAL_REFUSE	8472

#define CMD_DUAL_SURRENDER			8476



⌨️ 快捷键说明

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