cmdwieldandunw.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:8k
- #include "stdafx.h"
- #include "XmudOS.h"
- #include "CommandCheck.h"
- #include "CmdPlayerLogon.h"
- #include "mapMapInfo.h"
- #include "goodsgoodsGoods.h"
- #include "Common.h"
- extern rmfullglobals myglobs;
- void CCommandCheck::ArmProc(LPVOID pvPlayer,char *szWhichItem,char *Result)
- {
- CGoods *lpGoods = NULL;
- CEquip *lpEquip = NULL;
- CGoods *lpCheckGoods = NULL;
- CEquip *lpCheckEquip = NULL;
- CWeapon *lpWeapon = NULL;
- CPlayerInfo *lpPlayerInfo;
- CString szRet;
- lpPlayerInfo = (CPlayerInfo*)pvPlayer;
- EnterCriticalSection(&myglobs.csPlayerData);
- lpGoods = lpPlayerInfo->GetGoods(szWhichItem);
- if(lpGoods == NULL)
- {
- wsprintf(Result,"%s FAIL %s