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

📄 network.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
📖 第 1 页 / 共 5 页
字号:
	int		  fame_pk;
						
}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;
}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



#define CMD_SERVER_ITEMTABLE_RELOAD	 8480




#define  CMD_DEBUG_CHANGE_SKILL_EXP		8490
typedef struct debug_change_skill_exp
{
	short int id;
	DWORD			skillexp[45];		// 1219 YGI 版氰摹


}t_debug_change_skill_exp;




// 惫啊傈俊 措茄  packet..





#define CMD_SEALSTONE_WAR_LEFTTIME			8850

typedef struct sealstone_warlefttime
{				
	char  nation;
	DWORD lefttime;
}t_sealstone_warlefttime;

#define CMD_SEALSTONE_WAR_START				8851
typedef struct sealstone_war_start
{				
	char  nation;
}t_sealstone_war_start;

	
#define CMD_SEALSTONE_RE_GENTIME			8860
typedef struct sealstone_regentime
{	
	char nation;
	DWORD regentime;
}t_sealstone_regentime;
 
 
#define CMD_SEALSTONE_START_RE_GENTIME		8869
#define CMD_SEALSTONE_END_RE_GENTIME		8870
 
 
#define CMD_SEALSTONE_RESULT				8880


 
typedef struct sealstone_result
{	
	char aresult;
	char anation;
	
	char bresult;
	char bnation;
}t_sealstone_result;


#define CMD_SEALSTONEFROMKING				8890
typedef struct	sealstone_fromking
{
	char nation;
}t_sealstone_fromking;


#define CMD_SEALSTONE_STATUS				8892
typedef struct sealstone_status
{
	char sealstonesprno;
	short int id;
	char mapnumber;
	short int x, y;
	char status;

}t_sealstone_status;


#define CMD_STEALSTONE_BREAKABLE			8894
#define CMD_STEALSTONE_NON_BREAKABLE 		8896
#define CMD_STEALSTONE_NON_BREAKABLE_PEACE  8898


#define CMD_NATION2NATION_RELATION			8910

typedef struct nation2nation_relation
{
	char a,b;
	char relation;
	short int year, yday, hour;
	DWORD howlong;

}t_nation2nation_relation;


#define CMD_NATION2NATION_RELATION_RESULT		8912

typedef struct nation2nation_relation_result
{
	BYTE why;

}t_nation2nation_relation_result;





//////////////// Chr_Log 

#define CMD_CHR_LOG_CHAR_DB				9002

typedef struct server_chr_log_basic_data
{
	char id[ NM_LENGTH];
	char name[ NM_LENGTH];
	char state;
	BYTE btLevel; // CSD-030806
	int	 fame_pk;						// 010915 LTS	//Fame_PK -> NWCharacter肺 背眉 DB俊绰 角力肺 NWCharacter狼 蔼捞 甸绢癌聪促.		
	NW_Character	NWCharacter;		// 010915 LTS
	int  Str;
	int  Con;
	int  Dex;
	int  Wis;
	int  Int;
	int  MoveP;
	int  Char;
	int  Endu;
	int  Moral;
	int  Luck;
	int  wsps;

	int  Tactics;
	DWORD nation;	

	DWORD Money;
	int HpMax ;
	int ManaMax;

	char MapName[ NM_LENGTH];
	int HungryMax;

	int Resis_Poison;
	int Resis_Stone	;
	int Resis_Magic	;
	int Resis_Fire	;
	int Resis_Ice	;
	int Resis_Elect	;

	int X, Y;

	int		reserved_point;
	DWORD	BankMoney;
	DWORD	Exp;

}t_server_chr_log_basic_data;


#define CMD_CHR_LOG_BINARY_DATA0	9003
typedef struct server_chr_log_binary_data0
{

	char name[ NM_LENGTH];
	char Skill[ SIZE_OF_SKILL];
	char skillexp[ SIZE_OF_SKILL_EXP];
	char tac_skillEXP[ SIZE_OF_TAC_SKILL_EXP];
}t_server_chr_log_binary_data0;


#define CMD_CHR_LOG_BINARY_DATA1	9004
typedef struct server_chr_log_binary_data1
{
	char name[ NM_LENGTH];
	char equip[ SIZE_OF_EQUIP];
	char quick[ SIZE_OF_QUICK];
}t_server_chr_log_binary_data1;

	
#define CMD_CHR_LOG_BINARY_DATA2	9005
typedef struct server_chr_log_inv_binary_data2
{
		char name[ NM_LENGTH];
		char inv[ SIZE_OF_INV];
}t_server_chr_log_binary_data2;


#define CMD_CHR_LOG_BINARY_DATA3	9006
typedef struct server_chr_log_binary_data3
{
	char name[ NM_LENGTH];
	char bankitem[ SIZE_OF_BANKITEM];
}t_server_chr_log_binary_data3;





#define CMD_HACKING_USER			9007
typedef struct hacking_user
{
	char	id[ 20];
	char	name[20];
	short	type;
	char	ip[20];
	char	cause[100];
}t_hacking_user;


#pragma pack (push,1)

	
#include "network2.h"
#include "Network3.h"
#include "NetWork4.h"	// 010915 LTS
#include "NetWork6.h"	// 020110 lsw
//--------------------------------------------------------
//--------------------------------------------------------

//010909 lsw
typedef struct dragon_header
{					
	short int		type;
	short int		size;
	char			crc;	
} t_header;
					
//--------------------------------------------------------
typedef struct packet
{					
	union			
	{				
		char					data[sizeof(t_header)];
		t_header				header;
	} h;			
						
	union			
	{				
		char					data[MAX_PACKET_SIZE];
						
		t_server_weather		server_weather;
		t_server_npc_add		server_npc_add;
		t_server_npc_remove		server_npc_remove;
		t_server_doing_magic	server_doing_magic ;
		t_server_starting_magic server_starting_magic ;
		t_client_doing_magic	client_doing_magic ;
		t_client_starting_magic client_starting_magic ;
		t_client_attack			client_attack;
		t_server_attack			server_attack;

		t_server_modify_position				server_modify_position;
		t_client_modify_position				client_modify_position;
		t_server_modify_position_absolute		server_modify_position_absolute;

		t_server_item_add		server_item_add;
		t_server_item_remove	server_item_remove;
		t_server_you_got_item	server_you_got_item;
		t_client_item_drop		client_item_drop;
		t_client_item_take		client_item_take;
		t_client_item_status	client_item_status;
		t_server_item_status	server_item_status;

		t_client_bank			client_bank;
		
		t_server_accept_login	server_accept_login;
		t_server_accept_join	server_accept_join;
		t_server_assign_server_id server_assign_server_id;
		t_all_ready				all_ready;

		t_client_connect_info	client_connect_info;
		t_server_connect_info	server_connect_info;

		t_client_chat_data		client_chat_data;
		t_server_chat_data		server_chat_data;
		t_client_move			client_move;
		t_server_move			server_move;
		t_client_create_char	client_create_char;
		t_client_delete_char	client_delete_char;


		t_client_event							client_event; // ###0923
		t_item_attr_change						item_attr_change;
		t_item_door_open_close					item_door_open_close;
		t_client_item_box_break					client_item_box_break;
		t_server_item_box_break		 			server_item_box_break;
		t_client_item_box_break_result			client_item_box_break_result;

		t_client_item_box_magic_break			client_item_box_magic_break;
		t_server_item_box_magic_break_result	server_item_box_magic_break_result;

		t_client_just_attack_animation			client_just_attack_animation;

		t_server_change_map						server_change_map;


		t_server_foot_on_trap0		server_foot_on_trap0;
		t_client_foot_on_trap0		client_foot_on_trap0;
		t_server_foot_on_trap1		server_foot_on_trap1;
		t_client_foot_on_trap1		client_foot_on_trap1;

		t_chr_item_info0			chr_item_info0;
		t_chr_item_info1			chr_item_info1;
		t_chr_item_info2			chr_item_info2;
		t_char_info_basic			char_info_basic;
		t_char_info_magic			char_info_magic;
		t_char_info_skill			char_info_skill;
		t_other_info_basic			other_info_basic;
		t_server_give_item			server_give_item;
		k_client_item_inv			client_item_inv;	// 1218
		t_char_info_tac_skillexp	char_info_tac_skillexp;

		t_req_pc_add				req_pc_add;
		t_req_npc_add				req_npc_add;
		t_req_item_add				req_item_add;


		t_server_user_db_data		server_user_db_data;
		t_server_user_add			server_user_add;
		t_server_envir_info			server_envir_info;
		t_server_user_remove		server_user_remove;

		t_item_ex_info				item_ex_info ;
		t_item_exchange				item_exchange;
		t_chr_status_info			chr_status_info ;

		t_attack_result				attack_result ;
		t_attack_info				attack_info ;

		t_server_change_equip		server_change_equip ;
		t_client_change_equip		client_change_equip ;

		t_client_magic_result		client_magic_result ;
		t_server_magic_result		server_magic_result ;
		t_mass_data					mass_data ;

		t_server_insert_magic		server_insert_magic;
		//t_inv_info				inv_info ;
		//t_equip_info				equip_info ;

		t_server_interface_battle	server_interface_battle ;
		t_server_interface_peace	server_interface_peace ;

		// Menu..
		t_server_call_smallmenu		server_call_smallmenu ;
		t_server_store_itemlist		server_store_itemlist;
		t_client_item_buy			client_item_buy ;
		t_client_item_sell			client_item_sell ;
		t_server_menu_message		server_menu_message;

		t_server_guild_info			server_guild_info;
		t_client_learn_skill		client_learn_skill;
		t_server_learn_skill		server_learn_skill;
		t_server_learn_skillitem	server_learn_skillitem;				//### 1214 荐沥 
		t_server_repair_itemlist	server_repair_itemlist;
		t_client_item_repair		client_item_repair;
		t_server_item_repair		server_item_repair;
		t_server_rumor_info			server_rumor_info;
		t_server_menu_message_title server_menu_message_title;
		t_client_menu_message_title client_menu_message_title;
		t_server_menu_message_text	server_menu_message_text;

		t_client_levelup_point		client_levelup_point;
		t_server_levelup_point		server_levelup_point;

		// Animation..
		t_server_turn_dir			server_turn_dir;

		// Skill..
		t_server_skill_info			server_skill_info;
		t_client_skill_info			client_skill_info;
		t_server_skill_result		server_skill_result;
		t_client_skill_result		client_skill_result;

		t_client_skill_item_matter		client_skill_item_matter;
		t_server_skill_itemmake_result	server_skill_itemmake_result;
		t_server_skill_result_fail		server_skill_result_fail;
		t_server_skill_result_toother	server_skill_result_toother;
		t_client_skill_cursor_view		client_skill_cursor_view;

		t_client_skill_gauge			client_skill_gauge;
		t_server_skill_gauge			server_skill_gauge;

		t_viewtype_change				viewtype_change;
		t_view_char_info				view_char_info;

		t_roof_open						roof_open;
		t_roof_close					roof_close;


		t_chat_set_result				chat_set_result;
		t_chat_set						chat_set;

		t_total_map_connections			total_map_connections;
		t_total_connections				total_connections;

		t_client_isthere_charname		client_isthere_charname;

		t_tame_command					tame_command;
		t_tame_name_change				tame_name_change;
		t_tame_host_name				tame_host_name;
		t_tame_command_result			tame_command_result;
		t_tame_end						tame_end;


		t_you_die						you_die;

		t_debug_server_req_char_info	debug_server_req_char_info;
		t_debug_client_req_char_info	debug_client_req_char_info;

		t_please_give_life				please_give_life;

		t_client_smile_face				client_smile_face;
		t_server_smile_face				server_smile_face;

		// 傍瘤荤亲..
		t_server_bbs					server_bbs;


		// 霸烙辑滚 牢侥 
		t_im_game_server				im_game_server;


		//------------------- NEW_APPEND -------------------------
		t_server_access_char_db			server_access_char_db;
		t_server_accept_char_db			server_accept_char_db;
		t_server_accept_char_game_db	server_accept_char_game_db;
		t_server_accept_binary_data		server_accept_binary_data;
		t_server_accept_script_data		server_accept_script_data;
		t_server_accept_inv_data		server_accept_inv_data;
		t_server_accept_item_data		server_accept_item_data;
		t_server_accept_bankitem_data	server_accept_bankitem_data;

⌨️ 快捷键说明

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