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

📄 network.h

📁 网络游戏龙族 完整的登陆器 C++ 源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
	DWORD body_g:5;
	DWORD body_b:5;
	DWORD cloth_r:5;
	DWORD cloth_g:5;
	DWORD cloth_b:5;
	DWORD bAlive:2;
	
	DWORD x:11;
	DWORD y:11;
	DWORD face:4;
	DWORD viewtype:4;
	DWORD spr_no:1;
	DWORD spell:1;

	DWORD equip0:8;
	DWORD equip1:8;
	DWORD equip2:8;
	DWORD equip3:8;

	DWORD namelen:5;
	DWORD lv:8;				// 0807 YGI
	DWORD nation:3;		// 加茄唱扼	0 : 绝澜, 1, 2, 3: 官捞辑胶 4: 磊捞戚 5:庆霸葛聪酒 6: 老胶		// 1004 YGI
	DWORD guild_master:3;		// 辨靛 付胶磐
	DWORD king:1;		// 唱扼 空
	DWORD imsi:9;		// 辨靛 内靛 ( 512俺 )	
	DWORD counselor:2;		// 0 : 绝澜, 1: 雀荤 款康磊, 2: 霸烙郴 款康磊
 	DWORD reporter:1;		// 扁磊窜...

	DWORD nk4:16;
	DWORD nk6:16;

	DWORD SquadNo:3;	//	何措锅龋
	DWORD isSquadLeader:1;	//	何措厘牢啊?	
	DWORD YL_JoinNation:4;	//	老胶牢版快 磊捞戚俊沁唱? 官捞辑胶俊 沁唱?  // 惫啊锅龋
	DWORD nDualCls:4;
	DWORD nClsStep:4;
	DWORD mantle:16;	//  011018 KHS 噶肚 

	DWORD isCommander:1;	//	荤飞包牢啊?
	DWORD jjing:4; //  011030 KHS JJING
 	DWORD JoinLocalWar:1;	// 惫瘤傈俊 曼咯 沁促.	// LTS LOCALWAR
	DWORD nCurrentAction:1;	// LTS SITDOWN BUG
	DWORD ChairNum:2;
	DWORD HorseNo:2;	// LTS HORSERIDER
	DWORD RiderNo:2;	// LTS HORSERIDER
	DWORD HorseGrade:2;	// LTS HORSERIDER
	DWORD RiderGrade:2;	// LTS HORSERIDER
	DWORD DragonLordWarTeam:2;	// LTS DRAGONLORD
	DWORD guild_code:16;

	DWORD idWeaponItem:16;
	DWORD class_type:3;		// 0807 YGI

	char name[16];
};	//> CSD-031007

//--------------------------------------------------------
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..................................


#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];
}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];
} 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];		
} t_server_update_binary_data1;


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

typedef struct  server_update_item_data
{
	char            name[ NM_LENGTH];
	char            id[ NM_LENGTH];
	UCHAR			Item[SIZE_OF_ITEMINDEX];
} 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];
} 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 ;		// 020418 YGI
	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;


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
}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 --------------------------------
typedef struct server_turn_dir
{
	short int  server_id;
	DIRECTION  dir;
}t_server_turn_dir;

// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------
// ----------------- Skill -------------------------------
//011004 lsw > 
/*
#define CMD_2ND_GM_MAKE					5600//010708 lsw
typedef struct client_2nd_gm_make
{
	short int skillno;
}t_client_2nd_gm_make;
*/
//011004 lsw < 

#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窍绊 structure眠啊
#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;

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;

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


//011023 lsw >
#define CMD_SKILL_ITEMMAKE_RESULT		614
typedef struct server_skill_itemmake_result
{
	short int skillno;
	ItemAttr item;
	int			MakeItemCount;//011014 lsw
	int			TryItemCount;//011014 lsw
}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;

⌨️ 快捷键说明

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