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

📄 network.h

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

	DWORD			nation;			//1004 YGI
  //< CSD-011006
  char aStepInfo[20];
  //> CSD-011006
} t_server_user_db_data;
	
//--------------------------------------------------------
typedef struct server_envir_info
{	
	DWORD			currtime_count;
	DWORD			weather_count;
	DWORD			rainstart;
	DWORD			rainend;
	short			amount;
	short			temperature;
	char			mapname[NM_LENGTH];
} t_server_envir_info;
	
//------------------------------------------
typedef struct server_user_add
{	
	char			name[NM_LENGTH];
	int				fame_pk;		// 010915 LTS	//Fame_PK -> NWCharacter肺 背眉 DB俊绰 角力肺 NWCharacter狼 蔼捞 甸绢癌聪促.		
	NW_Character	NWCharacter;	// 010915 LTS
	short int		server_id;
	unsigned char	spr_no;
	char			spell;
	char			face;
	
	unsigned char	body_r, body_g, body_b;
	unsigned char	cloth_r, cloth_g, cloth_b;
	unsigned char	equip[4];
	unsigned char	peacests;
	short int		hp;
	short int		x, y;
	char			viewtype;

} t_server_user_add;
	
//--------------------------------------------------------
typedef struct server_user_remove
{	
	short int		server_id;
} t_server_user_remove;
	
//--------------------------------------------------------


typedef struct req_pc_add
{
	short int server_id;
}t_req_pc_add;

typedef struct req_npc_add
{
	short int server_id;
}t_req_npc_add;

typedef struct req_item_add
{
	short int server_id;
}t_req_item_add;

typedef struct element {
	unsigned char var_kind ;
	short int value ;
} t_element ;

typedef struct mass_data {
	unsigned char num ;
	t_element elements[100] ;
} t_mass_data ;


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


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



#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;

// ===========================================================================================
// 汲疙: CLIENT啊 磊脚狼 傍拜阑 辑滚俊 舅妨林扁 困茄 备炼眉
// 傈价: CLIENT --> SERVER
// 庆歹: CMD_ATTACK
// -------------------------------------------------------------------------------------------
/////////////// 0604 lkh ////////////////
typedef struct attack_info
{
	short int	defender_id ;
	short int	backdraw_X;
	short int	backdraw_Y;
} t_attack_info ;
// ===========================================================================================



// ===========================================================================================
// 汲疙: CLIENT狼 傍拜青悼苞 弊 搬苞甫 促弗 CLIENT肺 钢萍某胶泼 秦临锭 荤侩瞪 备炼眉
// 傈价: SERVER ==> CLIENT(S)
// 庆歹: CMD_ATTACK_RESULT
// -------------------------------------------------------------------------------------------
typedef struct attack_result
{
	short int attacker_id ;
	short int defender_id ;
	short int damage ;
	short int hp;
	short int hpmax;
	char	  tac_skill;
	DWORD	  tac_skillEXP;

//	short int lev;
//	short int dex;
//	short int str;
//	short int addexp;
	
	short int tox, toy;

	char	  result ;		// HIT AND DEAD, HIT AND NOTDEAD, HIT FAILED
	//bool LevelUp_flag ;
	//unsigned int Exp ;
} t_attack_result ;
// ===========================================================================================


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


typedef struct server_store_itemlist
{
	unsigned char	no;
	short int		smallmenu;
	short int		storelistindex;
	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;
	

// ===========================================================================================

//< CSD-010907
/*
typedef struct client_levelup_point
{
	unsigned short int point[11];
}t_client_levelup_point;

typedef struct server_levelup_point
{
	short int		server_id;
	unsigned char   point;
	short int		hp;
}t_server_levelup_point;
*/
struct t_client_levelup_point
{
  WORD aPoint[11];
};
	struct t_server_levelup_point
{
  WORD idServer;
  BYTE nPoint;
  __int32 nLife;
};
//> CSD-010907
//------------  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];
	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;


#define CMD_SKILL_ITEM_MATTER			612
typedef struct client_skill_item_matter
{
	POS pos[20];
}t_client_skill_item_matter;


#define CMD_SKILL_ITEMMAKE_RESULT		614
typedef struct server_skill_itemmake_result
{
	short int skillno;
	ItemAttr item;
}t_server_skill_itemmake_result;



#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
{

⌨️ 快捷键说明

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