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

📄 dr_network.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
📖 第 1 页 / 共 5 页
字号:
} t_mass_data ;


////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................


#define CMD_UPDATE_CHAR_DB			8500
#define CMD_UPDATE_BINARY_DATA0		8501
#define CMD_UPDATE_BINARY_DATA1		8502
#define CMD_UPDATE_SCRIPT_DATA		8503
#define CMD_UPDATE_INV_DATA			8504	
#define CMD_UPDATE_ITEM_DATA		8505
#define CMD_UPDATE_BANKITEM_DATA	8506	

struct t_update_char_db
{	//< CSD-030807
	char name[NM_LENGTH];
	char id[NM_LENGTH];
	short Level;
	short nGuildCode;
	short social_status; // 脚盒
	short fame;	// 疙己摹
	NW_Character NWCharacter; // 惫啊傈 包访 鞘靛 // 010915 LTS
	short Str;	
	short Con;	
	short Dex;
	short Wis;	
	short Int;
	short MoveP;	  
	short Char;
	short Endu;
	short Moral;	  
	short Luck ;	 
	short wsps;
	BYTE Tactics; // 急琶茄 傈捧扁贱 (焊咯林扁 困窃)
	DWORD nation; // 1004 YGI
	DWORD Money;
	int	Hp;
	int	HpMax ;
	int	Mana;
	int	ManaMax;
	int Hungry;	
	int	HungryMax;
	BYTE Condition;	// 某腐磐 惑怕
	char MapName[21];
	int Sight;		// YGI 020418
	short Age;
	BYTE bAlive; // 某腐磐狼 积荤咯何
	DWORD killmon;	// 1拌凯阁胶磐 懦傅荐
	DWORD killanimal; // 悼拱 懦傅荐
	DWORD killpc; // 荤恩, NPC 懦傅荐
	short nPoison; // 历林拌凯 付过俊 措茄 历亲仿
	short nCurse; // 历林拌凯 付过俊 措茄 历亲仿	
	short nFire; // 阂拌凯 傍拜 付过俊 措茄 历亲仿
	short nIce;	// 倔澜拌凯 傍拜 付过俊 措茄 历亲仿
	short nElect; // 傈拜拌凯 傍拜 付过俊 措茄 历氢仿
	short nHoly; // 脚仿拌凯 傍拜 付过俊 措茄 历亲仿
	short X;
	short Y;
	BYTE accessory[4];
	short mantle; // 011018 KHS 噶肚
	short openhouse;
	short reserved_point ;
	DWORD BankMoney;
	DWORD win_defeat;
	DWORD LadderScore;
	DWORD LastLoan;
	DWORD Exp;
	char disease[6];					
	char viewtype;
	short nk3;
	short nk4;
	short nk6;
	char aStepInfo[20];
	int nCombatAmount;
	int	check_crc; //acer5
};	//> CSD-030807

typedef struct  server_update_binary_data0
{
	char            name[ NM_LENGTH];
	char            id[ NM_LENGTH];

	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];
	int				check_crc;		// acer5
}	t_server_update_binary_data0;

typedef struct  server_update_script_data
{
	char            name[ NM_LENGTH];
	char            id[ NM_LENGTH];
	UCHAR			script_var[SIZE_OF_SCRIPT_VAR];
	int				check_crc;		// acer5
} t_server_update_script_data;

typedef struct  server_update_binary_data1
{
	char            name[ NM_LENGTH];
	char            id[ NM_LENGTH];

	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];		
	int				check_crc;		// acer5
} t_server_update_binary_data1;


typedef struct  server_update_inv_data
{
	char            name[ NM_LENGTH];
	char            id[ NM_LENGTH];
	UCHAR			inv[SIZE_OF_INV];
	int				check_crc;		// acer5
} t_server_update_inv_data;

typedef struct  server_update_item_data
{
	char            name[ NM_LENGTH];
	char            id[ NM_LENGTH];
	UCHAR			Item[SIZE_OF_ITEMINDEX];
	int				check_crc;		// acer5
} t_server_update_item_data;

typedef struct  server_update_bankitem_data
{
	char            name[ NM_LENGTH];
	char            id[ NM_LENGTH];
	char			mapname[ 20];
	UCHAR			bankitem[SIZE_OF_BANKITEM];
	int				check_crc;		// acer5
} t_server_update_bankitem_data;

////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................
////////////////////////////////////////////////////////////////  Binary Update..................................



// Character Basic Data*********************************************

typedef struct chr_status_info
{
	short int		Str;				//  塞
	bool			fStr ;
	short int		Con;				//  扒碍
	bool			fCon ;
	short int		Dex;				//	刮酶己
	bool			fDex ;
	short int		Wis;				//	瘤驱
	bool			fWis ;
	short int		Int;				//	瘤瓷
	bool			fInt ;
	short int		MoveP;				//	捞悼仿
	bool			fMoveP ;
	short int		Char;				//	概仿
	bool			fChar ;
	short int		Endu;				//  历氢仿
	bool			fEndu ;
	short int		Health;				//	眉仿
	bool			fHealth ;
	short int		Moral;				//	荤扁
	bool			fMoral ;
	short int		Luck;				//	青款
	bool			fLuck ;

	short int		Resis_Poision;		//	刀/磷澜 历亲仿
	bool			fPoison ;
	short int		Resis_Stone;		//	籍拳 付厚 历亲仿
	bool			fStone ;
	short int		Resis_Magic;		//	付过历亲仿
	bool			fMagic ;
	short int		Resis_Fire;			//	阂 历亲仿
	bool			fFire ;
	short int		Resis_Ice;			//	倔澜历亲仿
	bool			fIce ;
	short int		Resis_Elect;		//	傈扁历氢仿
	bool			fElect ;

	short int		Ap ;
	bool			fAp ;
		
	short int		Hp ;
	bool			fHp ;

	short int		HpMax ;
	bool			fHpMax ;
	
	short int		Mp ;
	bool			fMp ;
	short int		MpMax ;
	bool			fMpMax ;

	short int		Ac ;
	bool			fAc ;
	short int		Hit ;
	bool			fHit ;
	short int		Dam_Min, Dam_Max ;
	bool			fDamage ;
	short int		Tactics ;
	bool			fTactic ;
	
	short int		WsPs ;
	bool			fWsPs ;

	int		Sight ;		// YGI 020418
	bool			fSight ;

} t_chr_status_info ;

typedef struct item_ex_info				// 皋春俊辑 荤侩 (酒捞袍)( 辑滚侩 )
{
//	ItemAttr item_attr;
	int		itemno ;
	POS		pos_s;
	POS		pos_t;
} t_item_ex_info;
typedef struct item_exchange			// 努扼捞攫飘侩...
{
	int		item_no;
	POS		pos_s;
	POS		pos_t;
} t_item_exchange;

// Menu..
// ===========================================================================================
// 汲疙: 努扼捞攫飘啊 绢恫 皋春甫 剁匡瘤 捞亥飘俊 蝶扼 皋春ID甫 舅妨林扁困茄 备炼眉
// 傈价: SERVER ==> CLIENT
// 庆歹: CMD_CALL_SMALLMENU
// -------------------------------------------------------------------------------------------
typedef struct server_call_smallmenu
{
	short int	menu;
	short int   storelistindex;
} t_server_call_smallmenu;

// 1010 CSB
typedef struct server_call_smallmenucustom
{
	short int iMenuNo;
	short int iPicNo;
	short int iWidth;
	short int iHeight;
	short int iExt;

} t_server_call_smallmenucustom;
//


typedef struct tag_store_list_item			// 按眉		// 0928 YGI
{
	short int item;
//	short int price;
}k_store_list_item;

typedef struct server_store_itemlist
{
	short int		no;
	short int		smallmenu;
	short int		storelistindex;
	k_store_list_item	store_item[MAX_STORE_ITEM_LIST];		// 0928 YGI
//	short int		item[MAX_STORE_ITEM_LIST];		//### 1212
//	short int		price[MAX_STORE_ITEM_LIST];		//### 1227
}t_server_store_itemlist;

typedef struct client_item_buy
{
	short int store_id;
	short int item_no;								//### 1217
	short int inv_position;

}t_client_item_buy;
typedef struct client_item_sell
{
	short int store_id;
	short int item_position;
}t_client_item_sell;

#define MM_RUMOR_				0
#define MM_ALL_BROADCAST_TEXT	1
#define MM_RANK					2

typedef struct server_menu_message
{
	unsigned char	type;
	char			text[TEXT_LENGTH];
}t_server_menu_message;

struct t_client_levelup_point
{
  WORD aPoint[11];
};

struct t_server_levelup_point
{
  WORD idServer;
  __int16 nPoint;
  __int16 nLevel;
  __int32 nLife;
  char aStepInfo[20];
};

//------------  Animation --------------------------------
//------------  Animation --------------------------------
//------------  Animation --------------------------------
//------------  Animation --------------------------------
//------------  Animation --------------------------------

typedef struct server_turn_dir
{
	short int  server_id;
	DIRECTION  dir;
}t_server_turn_dir;

// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------

#define CMD_SKILL_INFO					6150	//010707 lsw 荐沥

typedef struct server_skill_info
{
	short int server_id;
	short int skillno;
	short int x, y;
	short int targettype;
	short int target_id;
}t_server_skill_info;
typedef struct client_skill_info
{
	short int skillno;
	short int x, y;
	short int targettype;
	short int target_id;
	POS		  s;
	char	TargetName[31];//020531 lsw
	int		iKey;//030102 lsw
}t_client_skill_info;



#define CMD_SKILL_RESULT				610
typedef struct server_skill_result
{
	short int skillno;
	short int x, y;
	short int result;
}t_server_skill_result;
typedef struct client_skill_result
{
	short int skillno;
	short int x, y;
	short int targettype;
	short int target_id;
}t_client_skill_result;

//1019 zhh
#define CMD_SKILL_ANIMAL_LORE			701
typedef struct server_skill_animal_lore
{
	short int skillno;
	short int x, y;
	char  name[ NM_LENGTH];
	unsigned long int NowLife;
	unsigned long int MaxLife;
	unsigned long int exp;
	long int loyalty;
	long int damage;
	short int result;
	short int Level;
}t_server_skill_animal_lore;

//1029 zhh
#define CMD_SPECIAL_ITEM				702
typedef struct server_special_item
{
	int No;
	int Now_Store;
	int S_Day;
}t_server_special_item;

const int  CMD_OUTPUT_MESSAGE				=704;
const int  CMD_SOUND_OUT					=705;//酒贰客 鞍捞 竟聪促.
typedef struct server_output_message
{
	DWORD para1;
	DWORD para2;
}t_server_output_message;

//011023 lsw >
#define CMD_SKILL_ITEMMAKE_RESULT		614
typedef struct server_skill_itemmake_result
{
	short int skillno;
	ItemAttr item;
	int		MakeItemCount;
	int		TryItemCount;
}t_server_skill_itemmake_result;
//011023 lsw <


#define CMD_SKILL_RESULT_FAIL			618
typedef struct server_skill_result_fail
{
	short int skillno;
	char      why;
}t_server_skill_result_fail;



#define	CMD_SKILL_RESULT_TOOTHER		619
typedef struct server_skill_result_toother
{	
	short int id;
	short     skillno;
	char	  result;
	
}t_server_skill_result_toother;
	


#define CMD_SKILL_CURSOR_VIEW			611

typedef struct client_skill_cursor_view
{
	short int skillno;
	short int x, y;
}t_client_skill_cursor_view;


#define CMD_SKILL_GAUGE					613

typedef struct client_skill_gauge
{
	short int skillno;
	short int x, y;

}t_client_skill_gauge;
typedef struct server_skill_gauge
{
	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[40];
}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_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;	

⌨️ 快捷键说明

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