cmdlearn.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:9k
- #include "stdafx.h"
- #include "XmudOS.h"
- #include "CommandCheck.h"
- #include "CmdPlayerLogon.h"
- #include "mapMapInfo.h"
- #include "npcNpc.h"
- #include "skillskillSkill.h"
- extern rmfullglobals myglobs;
- /*
- void CCommandCheck::LearenProc(LPVOID pvPlayer,char *szWho,char *szWhichSkill,char *Result)
- {
- CPlayerInfo *lpPlayerInfo;
- CNpc * lpNpc;
- CBaseMap * lpDataMap;
- BOOL bFindOppNPC = FALSE;
- int i;
- lpPlayerInfo = (CPlayerInfo*)pvPlayer;
- POSITION pMapPosite = lpPlayerInfo->pMapPosite;
-
- EnterCriticalSection(&myglobs.csMaplist);
- EnterCriticalSection(&myglobs.csPlayerData);
- if(lpPlayerInfo->nStatus != 0)
- {
- wsprintf(Result,"%s FAIL