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

📄 mytypes.h

📁 网络游戏龙族 完整的登陆器 C++ 源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
	char ChairNum;				// LTS SITDOWN BUG
	
	char HorseNo;					// LTS HORSERIDER
	char RiderNo;				// LTS HORSERIDER
	char HorseGrade;				// LTS HORSERIDER
	char RiderGrade;				// LTS HORSERIDER
	char DragonLordWarTeam;		// LTS DRAGONLORD
	int nAttr;
	int nRace; // CSD-030419        
	short int guild_code; // CSD-030324 thai2 YGI
	WORD idWeaponItem; // CSD-031001
}	GPCHARINFO, *LPGPCHARINFO;




typedef struct	tagPCANIMATIONTABLE
{	
	int		nCount;
	BYTE	cFrame[ MAX_PC_ANIMATION_FRAME ];
	
	char  	dx[ MAX_PC_ANIMATION_FRAME ];
	char  	dy[ MAX_PC_ANIMATION_FRAME ];
	char    attackf[ MAX_PC_ANIMATION_FRAME ];
	short   wave[  MAX_PC_ANIMATION_FRAME ];
	short 	height[ MAX_PC_ANIMATION_FRAME ];
	short	effect[ MAX_PC_ANIMATION_FRAME ];
} PCANIMATIONTABLE, *LPPCANIMATIONTABLE;


#define PC_IN_MAP_MAX	


typedef struct tagCHARELEMENT
{	
	char Name[ 20];
	
	BYTE gender;					// 0:咯磊 1 : 巢磊
	BYTE Race;						// 辆练
	BYTE Spiritvalue;				// 啊摹包
	BYTE Class;						// 0:傈荤 1:泵荐 2:档利 3:己流磊 4:付过荤
	BYTE class_sprituality;	
	BYTE class_poisioning;	
	BYTE class_bombplay;		
	BYTE class_entrapment;	
	BYTE class_scrolling;	
	BYTE class_cunning1;	
	BYTE class_cunning2;	
	BYTE class_cunning3;	
	BYTE class_stealing;	
	
	BYTE job;
	
	BYTE clothr, clothg, clothb;	// 鹅 祸彬 R.G.B
	BYTE bodyr, bodyg, bodyb;		// 个 祸彬 R.G.B
	
	short Age;
	
	BYTE  Level;
	DWORD Exp;
	
	short Hp;
	short AttackPow;		// 傍拜仿
	
	short Mana;				// 版氰摹
	short VitalPow;			// 积疙仿
	short Hungry;
	short Nk3, Nk4, Nk6;	// 阿 惫啊喊 快龋档  010531 KHS
	
	DWORD Killmon1;			// 1拌凯阁胶磐 懦傅胶
	DWORD Killmon2;			// 2拌凯阁胶磐 懦傅胶
	DWORD Killmon3;			// 3霸凯阁胶磐 懦傅荐
	DWORD Killmon4;			// 4霸凯阁胶磐 懦傅荐
	DWORD Killmon5;			// 5霸凯阁胶磐 懦傅荐
	DWORD Killmon6;			// 6霸凯阁胶磐 懦傅荐
	DWORD Killanimal;		// 悼拱 懦傅荐
	DWORD KillNPC;			// 荤恩,NPC 懦傅荐
	
	DWORD Money;
	
	//弥檬某腐磐 积己且锭狼 荐摹..
	short StrOld;				//  塞
	short ConOld;				//  扒碍
	short DexOld;				//	刮酶己
	short WisOld;				//	瘤驱
	short IntOld;				//	瘤瓷
	short MovePOld;				//	捞悼仿
	short CharOld;				//	概仿
	short EnduOld;				//  历氢仿
	short HealthOld;			//	眉仿
	short MoralOld;				//	荤扁
	short LuckOld;				//	青款
	
	short Str;				//  塞
	short Con;				//  扒碍
	short Dex;				//	刮酶己
	short Wis;				//	瘤驱
	short Int;				//	瘤瓷
	short MoveP;			//	捞悼仿
	short Char;				//	概仿
	short Endu;				//  历氢仿
	short Health;			//	眉仿
	short Moral;			//	荤扁
	short Luck;				//	青款
	short wsps;
	
	
	short Resis_Poision;	//	刀/磷澜 历亲仿
	short Resis_Stone;		//	籍拳 付厚 历亲仿
	short Resis_Magic;		//	付过历亲仿
	short Resis_Fire;		//	阂 历亲仿
	short Resis_Ice;		//	倔澜历亲仿
	short Resis_Elect;		//	傈扁历氢仿
	short Wizardspell;		//	Ws
	short Ws[200];			//	付过
	short Priestspell;		//	Ps
	short Ps[200];			//	脚过
	
	// 郴啊 啊瘤绊 乐绰 酒捞袍..
	DWORD Item[ 13][100];
	
	DWORD bankmoney;
	
}CHARELEMENT, *LPCHARELEMENT;

///////////////////////////////////////////////////////////////////////////////
//< CSD-031001
class CCharacter
{
public:
	CCharacter() : lpPrev(NULL), lpNext(NULL)
	{
		m_nGuildCode = 0;
	}

	~CCharacter()
	{
	
	}

public:
	void SetGuildCode(int nGuild)
	{
		m_nGuildCode = nGuild;
	}

	int GetGuildCode() const 
	{
		return m_nGuildCode;
	}

	bool IsCounselor() const 
	{ 
		return (name_status.counselor) ? true:false;
	}


private:
	int			m_nGuildCode;

public:
	CCharRank name_status;

	char type;
	int id;
	char name[ 31];
	char namedisplaycount;
	int	sprno;
	int	mutant;   //0810 KHS
	int	nutantani;	// 0810 KHS
	short age;
	// 010515 KHS
	bool eventnpc;
	
	short nCharacterData[20];
	int	animationType;
	int	AIanimationRest;	//  0 酒聪搁  框流捞瘤 臼绊 弊措肺 辑乐绰促. 
	int	AIattackTargetID;	//	绢恫仇阑 Mon1狼 框流烙俊辑 0 酒聪搁  框流捞瘤 臼绊 弊措肺 辑乐绰促. 
	short movetargetid;
	bool sealstone;
	short sealstoneani;
	char GuardStoneAni;	// 010915 LTS	// LTS SEALSTONE
	char SetAni2Zero;
	
	int x,y;
	int	restdx;
	int	movp;
	int	ddx;
	short int tox,toy;
	bool toflag;
	
	int	height;
	int	oldgox, oldgoy;
	int	gox, goy;
	DWORD desttime;
	char destflag;
	int	sex;
	int	walktime;
	POINT position,oldposition;
	POINT offset;
	DIRECTION direction;
	DIRECTION todir; // direction篮 todir肺 官操妨绰己龙捞 乐促. 
	short dirdelay;
	
	int	light;
	int	attackMinRange;
	int	attackMaxRange;
	int	changeActionFlag;// 1捞搁 悼累吝俊 促弗悼累栏肺 官拆荐 绝促.
	
	int	nAttackedType;
	void* lpAttacked;
	
	short NumberAnimationValue;
	BYTE attackedresult;
	short flagattacked;//
	bool attacksuccess;
	char attackanimationON;
	char pluse_value;
	char willdie; // 捞荐摹啊 1捞登搁 磷绰促. 
	
	int	nCurrentAction;
	int	nCurrentFrame;
	
	int	bow_Type;		// 阂拳混捞衬 倔澜拳混捞衬 Setting秦林绰镑... 0 : 老馆拳混 1: 阂拳混.
	int TotalAni;
	PCANIMATIONTABLE AnimationTable[ MAX_ANIMATION ];
	
	Spr	*sp, *sp0, *sp1, *sp2, *sp3, *sp4;
	
	int	pathcount;
	int	oldpathcount;
	int	path[MAX_SHORTPATH][2];
	bool moveFlag; //捞悼矫 Tile狼 困摹甫 扁撅窍咯 沥犬洒 弊镑栏肺 埃促. 
	BYTE movetype; // 0:walk 1:run 2:horse riding.
	
	short basicAction;
	short basicWalk;
	char viewtype;
	BYTE canview;
	short canviewitem;
	//020320 lsw
	bool bCanViewGhost;
	DWORD dwCanViewGhostTime;
	
	bool bCanViewMagicTrap;
	DWORD dwCanViewMagicTrapTime;
	
	bool bCanViewTrap;
	DWORD dwCanViewTrapTime;
	
	bool bCanViewBomb;
	DWORD dwCanViewBombTime;
	
	BYTE ghostani;
	BYTE ghostanito;
	
	int	accessory[4];
	int	mantle;	// 011018 KHS 噶肚
	int	jjing;	// 011030 KHS JJING
	
	DWORD bodycolor;
	DWORD clothcolor;
	DWORD mantlecolor;	// 011018 KHS 噶肚	
	
	int	hp,mp,Sp;
	int	hpmax,mpmax,Spmax;
	int	dieani;
	int	diedelay;
	int	dieanitype;
	char boxitembreaktype;
	
	BYTE wisdom;
	BYTE intelligence;
	BYTE health;				//硅绊悄 or Health
	BYTE con;			//扒碍档
	char spell;
	short face;
	
	bool stolen;
	
	int	sight;
	BYTE peacests;
	BYTE goodbad;
	
	CHARELEMENT* ce;
	
	int ChatDelay;
	int	nChatType;
	char szChatMessage[MAX_CHAT_STRING];
	
	char smileno;
	short int smiledelay;
	
	int	excute_MagicNum;	//泅犁 矫傈磊啊 霖厚窍绊 乐绰 概流锅龋
	int	ready_Magic;		//0->付过 公 /1->付过 casting 吝/2->付过 casting 蜡瘤 吝/3->付过 惯荤
	int	ready_Magic_rare;
	DWORD start_Casting;		//casting 矫累 矫埃
	DWORD continue_Time;
	DWORD end_Casting;		//casting 霖厚 肯丰 矫埃
	
	DWORD start_ReadyMagic;	//casting 蜡瘤 矫累等 矫埃
	DWORD end_ReadyMagic;		//casting 蜡瘤 辆丰瞪 矫埃 
	
	DWORD start_RunMagic;		//角力 付过 瓤苞啊 矫累等 矫埃
	DWORD continue_RunMagic; 
	DWORD end_RunMagic;		//付过 瓤苞 场唱绰 矫埃
	
	int	inc_Num;
	
	bool blood_Set;			//辑滚肺何磐 磷菌促绰 皋矫瘤 朝扼坷扁 傈俊 努扼捞攫飘俊辑 固府 乔 免仿
	BYTE condition;			//某腐磐狼 惑怕
	int	arigement;			//某腐磐狼 啊摹包
	int	insertPattern;		// 
	
	int	lostSight;			//某腐磐啊 传刚 惑怕 悸泼(0->乞惑惑怕/1捞惑->矫具惑角 沥档)
	DWORD lostSightTime;		//矫具 惑角 瘤加 矫埃
	
	int shoot_PointX;		//拳混 俊聪皋捞记狼 惯荤矫痢俊 沥犬洒 努腐茄 困摹肺 惯荤困秦 荤侩
	int	shoot_PointY;		
	
	int	eventdelay;
	
	int	_lev;
	int _str;
	int	_Wis;				//	瘤驱
	int	_Int;				//	瘤瓷
	int	_wsps;				//  付过仿->付过 皋葛扼捞令
	
	int _Hp, _HpMax;
	int _Mp, _MpMax;
	int _Hungry,_HungryMax;		
	short int event_no;
	int viewdebugcharinfo;
	
	int destx;
	int desty;		// 格利 Map x,y;
	
	//  npc框流烙俊 措茄 函荐 ...
	short patterntype, oldpatterntype;
	int targetid;
	int bossid;
	short attackcount;
	DWORD aitimedelay, aidelayhowmuch;
	int how;
	int attacked;
	DWORD pk;
	DWORD Exp;
	int MoveP;		// NPC狼 框流烙阑 促剧窍霸 窍扁 困茄 函荐肺 静烙..
	bool notcomeinside; //  阁胶磐绰 笼救俊 甸绢棵荐 绝促. 
	
	bool just_ani;	// true捞搁 窜鉴 Animation父阑 茄促. 
	
	short social_status;
	short fame;
	short nk3;
	short nk4;
	short nk6;
	short dummy_pk;  //  喊 包拌 绝捞 版厚捍阑扒甸搁 吝啊..   货肺 area俊 甸绢坷搁 
	
	DWORD killpc;	   // user
	
	short int tame;
	BYTE tame_cmd;
	short int HostId;
	char HostName[ 21];
	char TargetName[ 31];
	
	int	hpupdown; //  单固瘤 贸府矫埃阑 焊厘窍扁 困茄 函荐.
	
	int	feeldelay;
	int	feeltype;
	
	bool hunter_target;		// 郴啊 殿废茄 泅惑裹捞促 酒聪促, 	// 0807 YGI
	BYTE lv;//Level
	char class_type;// 努饭胶
	
	////////////////////// SoundUp lkh 眠啊(某腐 阿 悼累喊 绊蜡澜 免仿困茄 矫埃函荐) ///////////////////////////
	DWORD naturalSound_Time;
	int	odd_Even;				//娄荐锅-圈荐锅 风橇
	int	attacker_ID;			//唱甫 傍拜茄 措惑狼 ID
	//void		*lpAttacker;			//唱甫 傍拜茄 措惑 器牢磐
	
	BOOL fight_flag;		//措搬 惑怕眉农..
	int	stone_x;		//傈捧倒 x 谅钎..
	int	stone_y;		//傈捧倒 y 谅钎..
	int	fight_id;		//傈捧且 仇..
	int	fight_time;		//傈捧矫埃..
	
	BYTE light_On;		//堡盔咯何(林牢傍 某腐苞 颇萍/老何 NPC父 扁夯利栏肺 堡盔阑 瘤聪绊 乐澜)
	DWORD castStartingTime;
	int	fight_map_team_num;		// 0906 YGI	fightmap
	int	homex, homey;
	
	int	job;			// 免仿且 流诀		1004 YGI
	int	call_job_lv;	// 免仿且 流诀 饭骇
	
	int	candle;
	
	NW_Character NWCharacter;
	
	char JoinLocalWar;
	char GainedFame;	
	char ChairNum;
	
	char HorseNo;
	char RiderNo;
	char HorseGrade;
	char RiderGrade;
	char DragonLordWarTeam;
	
	char aStepInfo[20];
	char reporter_mode;
	int nAttr;
	int nRace;
	int nActiveCombat;
	int nPassiveCombat;
	int nRecoveryCombat;
	int nActiveLevel;
	int nPassiveLevel;
	int nRecoveryLevel;
	bool bCrash;
	bool bShoot;
	bool bSelect;
	bool bLock;	
	WORD idWeaponItem; // CSD-031001

	CCharacter* lpPrev;
	CCharacter* lpNext;
};

typedef CCharacter	CHARACTER;
typedef CCharacter*	LPCHARACTER;
//> CSD-031001
///////////////////////////////////////////////////////////////////////////////
typedef struct	tagCHARACTERLIST
{
	int				nCount;
	LPCHARACTER		lpFirst, lpLast;
	tagCHARACTERLIST()
	{
		nCount = 0;
		lpFirst = NULL;
		lpLast = NULL;
	}
} CHARACTERLIST, *LPCHARACTERLIST;


#endif	//__MYTYPES_H__

// 010505 KHS
#if defined(TAIWAN_LOCALIZING_ ) || defined( CHINA_LOCALIZING_ ) || defined (HONGKONG_LOCALIZING_)//010730 lms

//#define CHANGE_MONEY_//020730 lsw 捣 烹老
#else

#define CHANGE_MONEY_	

#endif

⌨️ 快捷键说明

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