CmdBuy.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:5k
- #include "stdafx.h"
- #include "XMudClient.h"
- #include "CommandCheck.h"
- #include "MenuCreateNew.h"
- #include "CommunicateMsg.h"
- #include "midi.h"
- #include "faceplate.h"
- #include "CmdFunction.h"
- #include "FileFunctionItem.h"
- #include "D3DRMScreen.h"
- #include "MapInfo.h"
- #include "NpcInfo.h"
- extern rmfullglobals myglobs;
- extern int g_nGameState;
- extern CMenuCreateNew m_MenuCreateNew;
- extern SOCKET hLCltForRSvrSock;
- extern BOOL g_bGetInputMessage;
- extern CStringList g_strlistChannel;
- extern CStringList g_strlistSelfMsg;
- extern CStringList g_strlistMesssage;
- extern CStringList g_strlistPlayerOnline;
- extern CList<CPlayerInfo*,CPlayerInfo*>playerlist;
- extern CList<CEquipInfo*,CEquipInfo*>equiplist;
- extern CList<CEquipInfo*,CEquipInfo*>equiprentlist;
- extern CList<CItemInfo *, CItemInfo *> itemlist;
- extern CRITICAL_SECTION csAnimation;
- extern CList <animationCallbackArgs *, animationCallbackArgs *> animationlist;
- extern CRITICAL_SECTION csMaplist;
- extern CList <CMapInfo *, CMapInfo *> maplist;
- extern CList <CNpcInfo *,CNpcInfo *> npclist;
- extern char g_tszPathName[256];
- void CmdListProc()
- {
- CPlayerInfo *lpPlayerInfo;
- CMapInfo *lpMapInfo;
- CString strtmp;
- int i,j;
- BOOL bFindInMap = FALSE;
- BOOL bAcceptBuy = FALSE;
- lpPlayerInfo = playerlist.GetHead();
- if(lpPlayerInfo->m_sPERSONA.IsEmpty()){
- strtmp = szYellowLow;
- strtmp += CString("