|
传奇3C++版服务端源代码+客户端源码官方泄露版
public:
CUserInfo();
bool IsEmpty();
void CloseAccount(char *pszName, int nCertification);
void SaveHumanToDB(char *pszUserAddr);
void CloseUserHuman();
void DoClientCertification(char *pszPacket);
void Operate();
_LPTUSERITEMRCD GetItem(char *pszMakeIndex);
__inline _LPTUSERITEMRCD GetUseItem(int nPosition) { return GetItem(m_THumanRcd.szTakeItem[nPosition]); }
_LPTGENERALITEMRCD GetUseGenItem(char *pszMakeItemID);
void RemoveGenItem(_LPTGENERALITEMRCD lptGenItemRcd);
int EncodeMyMagicToServer(char *pszEncodeMsg, int nBuffSize, int& nPos);
int EncodeMyMagic(char *pszEncodeMsg, int nBuffSize, int& nPos);
int EncodeGenItem(char *pszEncodeMsg, int nBuffSize, int& nPos);
int GetWeaponFeature();
int GetDressFeature();
void AddNewItem(char *pszItemName);
void MakeGenItem(_LPTGENERALITEMRCD lpItemRcd);
BOOL IsMyMagic(int nIndex);
void AllowLongHitSkill(BOOL fFlag);
void AllowWideHitSkill(BOOL fFlag);
BOOL AllowFireHitSkill();
int CalcBagWeight();
int CalcWearWeightEx(int nIndex);
int GetGenItemStdIdx(char *pszMakeIndex);
int GetGenItemVal1(char *pszMakeIndex);
int GetGenItemVal2(char *pszMakeIndex);
BOOL UserDropItem(int nItemIndex, char *pszMakeIndex);
BOOL UserDropGenItem(int nItemIndex, char *pszMakeIndex);
BOOL IncGold(int nGold);
BOOL DecGold(int nGold);
_LPTHUMANMAGICRCD GetMagicRcdByID(int nID);
_LPTHUMANMAGICRCD GetMagicRcdByKey(int nKey);
_LPTGENERALITEMRCD CanUseBujuk();
void SetGenItemVal1(int nVal);
void ProcessUserMessage(char *pszPacket);
__inline _LPTUSERITEMRCD GetWeapon() { return GetUseItem(U_WEAPON); }
__inline _LPTUSERITEMRCD SetWeapon(char *pszMakeIndex) { memmove(m_THumanRcd.szTakeItem[U_WEAPON], pszMakeIndex, _MAKEITEMINDEX); }
__inline void SetEmptyWeapon() { ZeroMemory(m_THumanRcd.szTakeItem[U_WEAPON], _MAKEITEMINDEX); m_THumanRcd.szTakeItem[U_WEAPON][0] = '0'; }
__inline void SetEmptyDress() { ZeroMemory(m_THumanRcd.szTakeItem[U_DRESS], _MAKEITEMINDEX); m_THumanRcd.szTakeItem[U_DRESS][0] = '0'; }
__inline void SetEmptyUseItem(int i) { ZeroMemory(m_THumanRcd.szTakeItem, _MAKEITEMINDEX); m_THumanRcd.szTakeItem[0] = '0'; }
__inline _LPTUSERITEMRCD GetDress() { return GetUseItem(U_DRESS); }
__inline _LPTUSERITEMRCD GetAccessory(int nPosition) { return GetUseItem(nPosition); }
__inline _LPTGENERALITEMRCD GetRightHand() { return GetUseGenItem(m_THumanRcd.szTakeItem[U_RIGHTHAND]); }
__inline BYTE GetGenderFeature() { return m_THumanRcd.btGender; }
__inline char GetHairFeature() { return m_THumanRcd.szHair; }
__inline BYTE GetHorseFeatureEx() { if (m_lpTHorseRcd) return m_lpTHorseRcd->btHorseType; else return 0; }
__inline int GetJob() { return m_THumanRcd.btJob; }
__inline void SetJob(int nJob) { if (nJob >= 0 && nJob < 3) m_THumanRcd.btJob = (BYTE)nJob; }
__inline int GetAttackMode() { return (int)m_THumanRcd.btAttackMode; }
__inline int GetMagicID(char *pszMakeIndex) { return GetGenItemVal2(pszMakeIndex); }
__inline BOOL IsEnoughBag() { if (m_lpTItemRcd.GetCount() + m_lpTGenItemRcd.GetCount() >= USERITEMMAX) return FALSE; return TRUE; }
__inline DWORD GetGold() { return m_THumanRcd.dwGold; }
};
void InsertLogMsg(UINT nID);
void InsertLogMsg(LPTSTR lpszMsg);
void InsertLogPacket(char *pszPacket);
void InsertLogMsgParam(UINT nID, void *pParam, BYTE btFlags);
分享链接:http://pan.zxdll.cn:188/#s/9iwz03Zg
访问密码:
|
上一篇:Mono跨平台传奇3手游源代码 传奇三手游源码下一篇:C++传奇3EI3.0客户端 Mir3Ei ClientEx客户端源代码
|