14 |
15 |
16 | class CCriticalSection
17 | {
18 | public:
19 | CRITICAL_SECTION m_csAccess;
20 |
21 | public:
22 | CCriticalSection();
23 | virtual ~CCriticalSection();
24 |
25 | void Lock();
26 | void Unlock();
27 | };
28 |
29 |
30 | typedef CCriticalSection CIntLock; // InterThread Lock
31 |
32 |
33 | #endif
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/Def/_OrzEx/util.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/Def/_OrzEx/util.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/Def/_OrzEx/util.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | /*
4 | Utility Functions
5 |
6 | Date:
7 | 2001/02/15
8 | */
9 | #ifndef __ORZ_MISC_UTIL__
10 | #define __ORZ_MISC_UTIL__
11 |
12 |
13 | /*
14 | Useful Macros
15 | */
16 | #define _abs(a) (((a) < (0)) ? (-a) : (b))
17 | #define _swap(a, b) ((a) ^= (b) ^= (a) ^= (b))
18 |
19 |
20 | /*
21 | Number System Converting Functions
22 | */
23 | int _hextodec( char *hex, int len );
24 | void _dectohex( int dec, char *hex, int len );
25 |
26 |
27 | /*
28 | Number Maniplulation Functions
29 | */
30 | template< class TV, class TM >
31 | inline TV _rounddown( TV value, TM multiple )
32 | {
33 | return (value / multiple) * multiple;
34 | }
35 |
36 | template< class TV, class TM >
37 | inline TV _roundup( TV value, TM multiple )
38 | {
39 | return _rounddown( value, multiple ) + ((value % multiple) > 0 ? multiple : 0);
40 | }
41 |
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/Def/dbmgr.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/Def/dbmgr.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/Abusive.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | CWHAbusive::CWHAbusive()
4 | {
5 | }
6 |
7 | CWHAbusive::~CWHAbusive()
8 | {
9 | }
10 |
11 | BOOL CWHAbusive::LoadAbusiveList()
12 | {
13 | FILE *stream = fopen("Abusive.txt", "r");
14 |
15 | if (stream)
16 | {
17 | while(!feof(stream))
18 | {
19 | fscanf(stream, "%s", m_szAbusiveList[m_nCount]);
20 | m_nCount++;
21 | }
22 |
23 | fclose(stream);
24 |
25 | InsertLogMsgParam(IDS_LOAD_ABUSIVE, &m_nCount, LOGPARAM_INT);
26 |
27 | return TRUE;
28 | }
29 | else
30 | InsertLogMsg(IDS_LOADFAIL_ABUSIVE);
31 |
32 | return FALSE;
33 | }
34 |
35 | void CWHAbusive::ChangeAbusiveText(char *pszText)
36 | {
37 | int nChange;
38 | char *pszSrc, *pszFilter;
39 |
40 | for (int i = 0; i < m_nCount; i++)
41 | {
42 | pszSrc = pszText;
43 | pszFilter = &m_szAbusiveList[i][0];
44 | nChange = 0;
45 |
46 | while (*pszSrc)
47 | {
48 | if (*pszSrc == *pszFilter)
49 | {
50 | nChange++;
51 |
52 | while (*pszFilter != 0)
53 | {
54 | if (*++pszSrc != *++pszFilter) break;
55 |
56 | nChange++;
57 | }
58 |
59 | if (*pszFilter == 0 && nChange >= (int)(memlen(&m_szAbusiveList[i][0]) - 1))
60 | {
61 | for (int nCnt = nChange; nCnt > 0; nCnt--)
62 | *(pszSrc - nCnt) = '*';
63 | }
64 |
65 | pszFilter = &m_szAbusiveList[i][0];
66 | nChange = 0;
67 | }
68 |
69 | pszSrc++;
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/Abusive.h:
--------------------------------------------------------------------------------
1 | class CWHAbusive
2 | {
3 | protected:
4 | char m_szAbusiveList[100][10];
5 | int m_nCount;
6 |
7 | public:
8 | CWHAbusive();
9 | ~CWHAbusive();
10 |
11 | BOOL LoadAbusiveList();
12 | void ChangeAbusiveText(char *pszText);
13 |
14 | };
15 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "GameGate"=.\GameGate.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameGate/GameGate.rc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/RES/MIR2.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameGate/RES/MIR2.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/RES/TOOLBAR.BMP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameGate/RES/TOOLBAR.BMP
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | WIN32 APPLICATION : GameGate
3 | ========================================================================
4 |
5 | Following functions was defined in ClientSockMsg.cpp
6 |
7 |
8 | OnClientSockMsg() --FD_READ--> ProcReceiveBuffer() --GM_DATA--> ProcMakeSocketStr()
9 |
10 |
11 | LPARAM OnClientSockMsg(WPARAM wParam, LPARAM lParam)
12 |
13 | void ProcReceiveBuffer(char *pszPacket, int nRecv)
14 |
15 | void ProcMakeSocketStr(_LPTMSGHEADER lpMsgHeader)
16 | This function called by ProcReceiveBuffer() when Received GM_DATA pakcet from Game Server.
17 | ProcMakeSocketStr are will make encode packet for send to client.
18 |
19 |
20 |
21 | Following functions was defined in ServerSockMsg.cpp
22 |
23 | Threads - Accept Thread(1)
24 | IOCP Worker Thread(2 * Number of Processor)
25 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // GameGate.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameGate/ThreadFuncForComm.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | #define PACKET_KEEPALIVE "%--$"
4 |
5 | extern HWND g_hToolBar;
6 | extern HWND g_hStatusBar;
7 |
8 | extern SOCKET g_csock;
9 | extern SOCKADDR_IN g_caddr;
10 |
11 | BOOL jRegGetKey(LPCTSTR pSubKeyName, LPCTSTR pValueName, LPBYTE pValue);
12 |
13 | VOID WINAPI OnTimerProc(HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
14 | {
15 | switch (idEvent)
16 | {
17 | case _ID_TIMER_KEEPALIVE:
18 | {
19 | if (g_csock != INVALID_SOCKET)
20 | {
21 | SendSocketMsgS(GM_CHECKCLIENT, 0, 0, 0, 0, NULL);
22 | SendMessage(g_hStatusBar, SB_SETTEXT, MAKEWORD(2, 0), (LPARAM)_TEXT("Check Activity"));
23 | }
24 |
25 | break;
26 | }
27 | case _ID_TIMER_CONNECTSERVER:
28 | {
29 | if (g_csock == INVALID_SOCKET)
30 | {
31 | DWORD dwIP = 0;
32 | int nPort = 0;
33 |
34 | InsertLogMsg(IDS_APPLY_RECONNECT);
35 |
36 | jRegGetKey(_GAMEGATE_SERVER_REGISTRY, _TEXT("RemoteIP"), (LPBYTE)&dwIP);
37 |
38 | if (!jRegGetKey(_GAMEGATE_SERVER_REGISTRY, _TEXT("RemotePort"), (LPBYTE)&nPort))
39 | nPort = 5000;
40 |
41 | ConnectToServer(g_csock, &g_caddr, _IDM_CLIENTSOCK_MSG, NULL, dwIP, nPort, FD_CONNECT|FD_READ|FD_CLOSE);
42 | }
43 |
44 | break;
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/DataHandler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/DataHandler.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/FrontEngine.h:
--------------------------------------------------------------------------------
1 | class CReadyUserInfo
2 | {
3 | public:
4 | // char m_szUserID[10];
5 | // char m_szCharName[14];
6 | BOOL m_fStartNew;
7 | // int m_nCertification;
8 | // int m_nApprovalMode;
9 | // int m_nClientVersion;
10 |
11 | // SOCKET m_s;
12 |
13 | // int m_nUserGateIndex;
14 |
15 | // CGateInfo* m_pGateInfo;
16 | CUserInfo* m_pUserInfo;
17 |
18 | DWORD m_dwReadyStartTime;
19 | BOOL m_fClosed;
20 | };
21 |
22 | class CReadyUserInfo2
23 | {
24 | public:
25 | BOOL m_fStartNew;
26 | DWORD m_dwReadyStartTime;
27 |
28 | int m_nNumOfGenItem;
29 | int m_nNumOfItem;
30 | int m_nNumOfMagic;
31 |
32 | _THUMANRCD m_THumanRcd;
33 |
34 | char pszData[8096];
35 | };
36 |
37 | void LoadPlayer(CUserInfo* pUserInfo);
38 | BOOL LoadPlayer(CReadyUserInfo2* pReadyUserInfo, CUserInfo* pUserInfo);
39 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/GameSvr.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/GameSvr.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/GameSvr.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "GameSvr"=.\GameSvr.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/GameSvr.plg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Build Log
5 |
6 | --------------------Configuration: GameSvr - Win32 Debug--------------------
7 |
8 | Command Lines
9 |
10 |
11 |
12 | Results
13 | GameSvr.exe - 0 error(s), 0 warning(s)
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/GameSvr.positions:
--------------------------------------------------------------------------------
1 | WndTabs Tab Positions File33C@ Workspace Output
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/GameSvr.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/GameSvr.rc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/Handler_Item.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/Handler_Item.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/Handler_Magic.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | int CMagicInfo::GetPower13(int nPwr, int nLevel)
4 | {
5 | float p1, p2;
6 |
7 | p1 = (float)nPwr / 3;
8 | p2 = (float)nPwr - p1;
9 |
10 | if ((sDefMaxPower - sDefPower))
11 | return ROUND(p1 + p2 / (3/*MaxTrainLevel*/ + 1) * (nLevel + 1) + (sDefPower + rand() % (sDefMaxPower - sDefPower)));
12 | else
13 | return ROUND(p1 + p2 / (3/*MaxTrainLevel*/ + 1) * (nLevel + 1) + sDefPower);
14 | }
15 |
16 | BOOL CMagicInfo::CheckMagicLevelup(CCharObject *pCharObject, _LPTHUMANMAGICRCD lptMagicRcd)
17 | {
18 | int nLevel;
19 |
20 | if (lptMagicRcd->btLevel >= 0 && lptMagicRcd->btLevel <= 3/*MaxTrainLevel*/)
21 | nLevel = (int)lptMagicRcd->btLevel;
22 | else
23 | nLevel = 0;
24 |
25 | if (lptMagicRcd->btLevel < 3/*MaxTrainLevel*/)
26 | {
27 | if (lptMagicRcd->nCurrTrain >= nTrain[nLevel])
28 | {
29 | if (lptMagicRcd->btLevel < 3/*MaxTrainLevel*/)
30 | {
31 | lptMagicRcd->nCurrTrain -= nTrain[nLevel];
32 | lptMagicRcd->btLevel += 1;
33 |
34 | pCharObject->UpdateDelayProcessCheckParam1(pCharObject, RM_MAGIC_LVEXP, 0, lptMagicRcd->nCurrTrain, lptMagicRcd->btLevel, lptMagicRcd->btMagicID, NULL, 800);
35 | // CheckMagicSpecialAbility (pum);
36 | }
37 | else
38 | lptMagicRcd->nCurrTrain = nTrain[nLevel];
39 |
40 | return TRUE;
41 | }
42 | }
43 |
44 | return FALSE;
45 | }
46 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/MagicHandler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/MagicHandler.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEngine.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEngine.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEngine.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEngine.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEvent.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEvent.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEvent.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectEvent.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectMerchant.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | CMerchantObject::CMerchantObject() : CCharObject(NULL)
4 | {
5 | m_fHideMode = FALSE;
6 |
7 | m_dwRunTime = GetTickCount();
8 | m_dwSearchTime = GetTickCount();
9 |
10 | m_dwRunNextTick = 250;
11 | m_dwSearchTick = 2000 + rand() % 2000;
12 | }
13 |
14 | void CMerchantObject::RunRace()
15 | {
16 | if ((rand() % 40) == 0)
17 | TurnTo(rand() % 8);
18 | else if ((rand() % 50) == 0)
19 | AddRefMsg(RM_HIT, m_nDirection, m_nCurrX, m_nCurrY, 0, NULL);
20 | }
21 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectMonster.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectMonster.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectMonster.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectMonster.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectNPC.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | CNPCObject::CNPCObject() : CCharObject(NULL)
4 | {
5 | m_dwRunNextTick = 250;
6 | m_dwSearchTick = 3000;
7 |
8 | m_btLight = 6;
9 | }
10 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectNPC.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | */
4 |
5 | class CNPCObject : public CCharObject
6 | {
7 | public:
8 | DWORD m_dwRunTime;
9 | DWORD m_dwRunNextTick;
10 |
11 | CNPCObject();
12 |
13 | virtual void GetCharName(char *pszCharName) { return; }
14 | };
15 |
16 | /*
17 | */
18 |
19 | class CMerchantObject : public CCharObject
20 | {
21 | public:
22 | DWORD m_dwRunTime;
23 | DWORD m_dwRunNextTick;
24 |
25 | int m_nIndex;
26 |
27 | CMerchantObject();
28 |
29 | void RunRace();
30 |
31 | virtual WORD GetThisCharColor() { return _CHAT_COLOR3; }
32 | virtual void GetCharName(char *pszCharName) { strcpy(pszCharName, m_szName); }
33 | };
34 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectPlayer.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectPlayer.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectPlayerAdminSaid.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectPlayerAdminSaid.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectPlayerClone.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectPlayerClone.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectPlayerClone.h:
--------------------------------------------------------------------------------
1 |
2 | class CPlayerCloneObject : public CPlayerObject
3 | {
4 | public:
5 | DWORD m_dwRunTime;
6 | DWORD m_dwRunNextTick;
7 |
8 | void Create(CPlayerObject* pPlayerObject);
9 |
10 | virtual void Operate();
11 | };
12 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectScripter.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectScripter.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ObjectScripter.h:
--------------------------------------------------------------------------------
1 |
2 | class CScripterObject : public CPlayerObject
3 | {
4 | protected:
5 | FILE* m_fScriptFile;
6 |
7 | public:
8 | DWORD m_dwRunTime;
9 | DWORD m_dwRunNextTick;
10 |
11 | void Create(int nX, int nY, CMirMap* pMap);
12 |
13 | virtual void Operate();
14 | };
15 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ProcessEvents.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ProcessEvents.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ProcessMonster.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ProcessMonster.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ProcessNPC.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ProcessNPC.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ProcessUserMsg.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | #define _MSG_GOOD "+GOOD/"
4 | #define _MSG_FAIL "+FAIL/"
5 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | WIN32 APPLICATION : GameSvr
3 | ========================================================================
4 |
5 |
6 | AppWizard has created this GameSvr application for you.
7 |
8 | This file contains a summary of what you will find in each of the files that
9 | make up your GameSvr application.
10 |
11 | GameSvr.cpp
12 | This is the main application source file.
13 |
14 | GameSvr.dsp
15 | This file (the project file) contains information at the project level and
16 | is used to build a single project or subproject. Other users can share the
17 | project (.dsp) file, but they should export the makefiles locally.
18 |
19 |
20 | /////////////////////////////////////////////////////////////////////////////
21 | Other standard files:
22 |
23 | StdAfx.h, StdAfx.cpp
24 | These files are used to build a precompiled header (PCH) file
25 | named GameSvr.pch and a precompiled types file named StdAfx.obj.
26 |
27 |
28 | /////////////////////////////////////////////////////////////////////////////
29 | Other notes:
30 |
31 | AppWizard uses "TODO:" to indicate parts of the source code you
32 | should add to or customize.
33 |
34 |
35 | /////////////////////////////////////////////////////////////////////////////
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/Res/MIR2.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/Res/MIR2.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/Res/toolbar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/Res/toolbar.bmp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/SockMsg_LogSvr.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | BOOL jRegGetKey(LPCTSTR pSubKeyName, LPCTSTR pValueName, LPBYTE pValue);
4 |
5 | LPARAM OnLogSvrSockMsg(WPARAM wParam, LPARAM lParam)
6 | {
7 | switch (WSAGETSELECTEVENT(lParam))
8 | {
9 | case FD_CONNECT:
10 | {
11 | break;
12 | }
13 | case FD_CLOSE:
14 | {
15 | closesocket(g_clsock);
16 | g_clsock = INVALID_SOCKET;
17 |
18 | break;
19 | }
20 | case FD_READ:
21 | {
22 | char szPacket[1024];
23 |
24 | int nRecv = recv((SOCKET)wParam, szPacket, sizeof(szPacket), 0);
25 |
26 | szPacket[nRecv] = '\0';
27 |
28 | break;
29 | }
30 | }
31 |
32 | return 0L;
33 | }
34 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // GameSvr.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/ThreadFuncForComm.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | BOOL jRegGetKey(LPCTSTR pSubKeyName, LPCTSTR pValueName, LPBYTE pValue);
4 |
5 | VOID WINAPI OnTimerProc(HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
6 | {
7 | switch (idEvent)
8 | {
9 | case _ID_TIMER_CONNECTSERVER:
10 | {
11 | if (g_csock == INVALID_SOCKET)
12 | {
13 | DWORD dwIP = 0;
14 | int nPort = 0;
15 | TCHAR szPort[24];
16 |
17 | InsertLogMsg(IDS_APPLY_RECONNECT);
18 |
19 | jRegGetKey(_GAME_SERVER_REGISTRY, _TEXT("DBServerIP"), (LPBYTE)&dwIP);
20 | jRegGetKey(_GAME_SERVER_REGISTRY, _TEXT("DBServerPort"), (LPBYTE)&nPort);
21 | _itow(nPort, szPort, 10);
22 |
23 | ConnectToServer(g_csock, &g_caddr, _IDM_CLIENTSOCK_MSG, NULL, dwIP, nPort, FD_CONNECT|FD_READ|FD_CLOSE);
24 | }
25 |
26 | break;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/UserInfo.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/UserInfo.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/capture.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/GameSvr/capture.txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.positions:
--------------------------------------------------------------------------------
1 | WndTabs Tab Positions File33C@ Workspace Output C:\...\DBSvr\ProcessDBMsg.cpp C:\...\ProcessMerchants.cpp C:\...\GameSvr\ProcessNPC.cpp C:\...\Handler_CommonDB.cpp C:\...\ProcessMonster.cpp C:\...\GameSvr\Global.cpp C:\...\ObjectPlayer.cpp C:\...\ObjectEngine.cpp
2 | C:\...\GameSvr\ObjectNPC.h
3 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.suo
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.suo.old:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LegendOfMir2_Server.suo.old
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/ClientSockMsg.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/ClientSockMsg.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/IOCPFunc.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | // **************************************************************************************
4 | //
5 | //
6 | //
7 | // **************************************************************************************
8 |
9 | BOOL CheckAvailableIOCP()
10 | {
11 | OSVERSIONINFO VersionInfo;
12 |
13 | GetVersionEx(&VersionInfo);
14 |
15 | if (VersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT && VersionInfo.dwMajorVersion >= 5)
16 | return TRUE;
17 |
18 | return FALSE;
19 | }
20 |
21 | // **************************************************************************************
22 | //
23 | //
24 | //
25 | // **************************************************************************************
26 | /*
27 | INT CreateIOCPWorkerThread(HANDLE hCP, LPDWORD lpdwThreadID, LPTHREAD_START_ROUTINE WorkerThreadFunc)
28 | {
29 | if (CompletionPort != INVALID_HANDLE_VALUE)
30 | {
31 | SYSTEM_INFO SystemInfo;
32 |
33 | if ((hCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0)) == NULL)
34 | return -1;
35 |
36 | GetSystemInfo(&SystemInfo);
37 |
38 | for (UINT i = 0; i < SystemInfo.dwNumberOfProcessors * 2; i++)
39 | {
40 | HANDLE ThreadHandle;
41 |
42 | if ((ThreadHandle = CreateThread(NULL, 0, WorkerThreadFunc, hCP, 0, lpdwThreadID)) == NULL)
43 | return -1;
44 |
45 | CloseHandle(ThreadHandle);
46 | }
47 |
48 | return SystemInfo.dwNumberOfProcessors * 2;
49 | }
50 |
51 | return -1;
52 | }
53 | */
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/IOCPFunc.h:
--------------------------------------------------------------------------------
1 | BOOL CheckAvailableIOCP();
2 | INT CreateIOCPWorkerThread(HANDLE hCP, LPDWORD lpdwThreadID, LPTHREAD_START_ROUTINE WorkerThreadFunc);
3 |
4 |
5 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "LoginGate"=.\LoginGate.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.plg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Build Log
5 |
6 | --------------------Configuration: LoginGate - Win32 Debug--------------------
7 |
8 | Command Lines
9 |
10 |
11 |
12 | Results
13 | LoginGate.exe - 0 error(s), 0 warning(s)
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/LoginGate.rc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/MainWndProc.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/MainWndProc.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/CONNECT.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/CONNECT.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/ICON1.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/ICON1.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/MIR2.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/MIR2.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/TOOLBAR.BMP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/Res/TOOLBAR.BMP
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/ServerSockMsg.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/ServerSockMsg.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // LoginGate.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginGate/ThreadFuncForComm.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "../Common/Common.h"
3 | #include "../Common/ServerConfig.h"
4 | #include "../packet/Category.h"
5 | #include "../packet/logingate_protocol.h"
6 |
7 | #define PACKET_KEEPALIVE "%--$"
8 |
9 | extern HWND g_hToolBar;
10 | extern HWND g_hStatusBar;
11 |
12 | extern SOCKET g_csock;
13 | extern SOCKADDR_IN g_caddr;
14 |
15 | void SendExToServer(Packet *pPacket);
16 | void SendExToServer(uint8 Category,uint8 protocol);
17 |
18 | BOOL jRegGetKey(LPCTSTR pSubKeyName, LPCTSTR pValueName, LPBYTE pValue);
19 |
20 | VOID WINAPI OnTimerProc(HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
21 | {
22 | switch (idEvent)
23 | {
24 | case _ID_TIMER_KEEPALIVE:
25 | {
26 | if (g_csock != INVALID_SOCKET)
27 | {
28 | SendExToServer(LOGIN_GATE,GATE2SRV_KEEPALIVE);
29 | SendMessage(g_hStatusBar, SB_SETTEXT, MAKEWORD(2, 0), (LPARAM)_TEXT("Check Activity"));
30 | }
31 |
32 | break;
33 | }
34 | case _ID_TIMER_CONNECTSERVER:
35 | {
36 | if (g_csock == INVALID_SOCKET)
37 | {
38 | DWORD dwIP = 0;
39 | int nPort = 0;
40 |
41 | InsertLogMsg(IDS_APPLY_RECONNECT);
42 |
43 | ENGINE_COMPONENT_INFO info = g_SeverConfig.getLoginSrvInfo();
44 |
45 | nPort = info.intport?info.intport:5500;
46 | ConnectToServer(g_csock, &g_caddr, _IDM_CLIENTSOCK_MSG, info.intip.c_str(),dwIP, nPort, FD_CONNECT|FD_READ|FD_CLOSE);
47 | }
48 |
49 | break;
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/AccountManager.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "AccountManager.h"
3 |
4 | CreateSingleton(AccoutManager);
5 |
6 | AccountUser::AccountUser()
7 | {
8 | m_bOnLine = false;
9 | memset(m_id,0,50);
10 | memset(m_pwd,0,50);
11 | }
12 |
13 | AccountUser::~AccountUser()
14 | {
15 |
16 | }
17 |
18 | AccoutManager::AccoutManager()
19 | {
20 |
21 | }
22 |
23 | AccoutManager::~AccoutManager()
24 | {
25 | for (AccountList::iterator iter = m_AccountMap.begin();iter != m_AccountMap.end();++iter)
26 | {
27 | SAFE_DELETE(iter->second);
28 | }
29 | m_AccountMap.clear();
30 | }
31 |
32 | AccountUser * AccoutManager::GetAccount( char * szUser )
33 | {
34 | if(szUser == NULL)
35 | return NULL;
36 | else
37 | {
38 | AccountUser*pUser = m_AccountMap[szUser];
39 |
40 | return pUser;
41 | }
42 | }
43 |
44 | bool AccoutManager::InsertAccountUser( AccountUser*pUser )
45 | {
46 | if (pUser == NULL)
47 | return false;
48 | else
49 | {
50 | std::pair ret = m_AccountMap.insert(std::make_pair(pUser->m_id,pUser));
51 |
52 | return ret.second;
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/AccountManager.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/AccountManager.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/GateCommSockMsg.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/GateCommSockMsg.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/GateInfo.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/GateInfo.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "LoginSvr"=.\LoginSvr.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/LoginSvr.rc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/MainWndProc.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/MainWndProc.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ===============================================================================
2 |
3 | LoginSvr
4 |
5 | All written by Euy-heon, Jeong.
6 | Copyright(C) 2001 Wemade Entertainment Co., LTD. All rights Reserved.
7 |
8 | ===============================================================================
9 |
10 | Last Update : 2001/09/20
11 | Last Update Author : Euy-heon, Jeong.
12 |
13 | 1. Using common module file name.
14 |
15 | - RegistryHandler.cpp
16 | - ServerSockHandler.cpp
17 |
18 | 2. Global variables.
19 |
20 | StdAfx.cpp
21 | AddSvrListFunc.cpp
22 | ConfigDlgFunc.cpp
23 | GateCommSockMsg.cpp
24 | LoginSvr.cpp
25 | LoginSvr.rc
26 | MainWndProc.cpp
27 | ServerListProc.cpp
28 | ThreadFuncForMsg.cpp
29 |
30 | 3. File and function description.
31 |
32 |
33 | 4. History
34 |
35 |
36 | GateCommSockMsg -> ThreadFuncForMsg -------------> DecodeUserData
37 | (FD_READ) (ThreadFuncForMsg.cpp)
38 | Decode Gate Protocol
39 |
40 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/Res/MIR2.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/Res/MIR2.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/Res/toolbar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/Res/toolbar.bmp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // LoginSvr.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/ThreadFuncForMsg.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/LoginSvr/ThreadFuncForMsg.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ConsoleSocket.cpp:
--------------------------------------------------------------------------------
1 | // ConsoleSocket.cpp : implementation file
2 | //
3 |
4 | #include "stdafx.h"
5 | #include "ManConsole.h"
6 | #include "ConsoleSocket.h"
7 |
8 | #ifdef _DEBUG
9 | #define new DEBUG_NEW
10 | #undef THIS_FILE
11 | static char THIS_FILE[] = __FILE__;
12 | #endif
13 |
14 | /////////////////////////////////////////////////////////////////////////////
15 | // CConsoleSocket
16 |
17 | CConsoleSocket::CConsoleSocket()
18 | {
19 | }
20 |
21 | CConsoleSocket::~CConsoleSocket()
22 | {
23 | }
24 |
25 |
26 | // Do not edit the following lines, which are needed by ClassWizard.
27 | #if 0
28 | BEGIN_MESSAGE_MAP(CConsoleSocket, CAsyncSocket)
29 | //{{AFX_MSG_MAP(CConsoleSocket)
30 | //}}AFX_MSG_MAP
31 | END_MESSAGE_MAP()
32 | #endif // 0
33 |
34 | /////////////////////////////////////////////////////////////////////////////
35 | // CConsoleSocket member functions
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ConsoleSocket.h:
--------------------------------------------------------------------------------
1 | #if !defined(AFX_CONSOLESOCKET_H__C2E973DB_90BA_4535_9633_38278EAB8EDB__INCLUDED_)
2 | #define AFX_CONSOLESOCKET_H__C2E973DB_90BA_4535_9633_38278EAB8EDB__INCLUDED_
3 |
4 | #if _MSC_VER > 1000
5 | #pragma once
6 | #endif // _MSC_VER > 1000
7 | // ConsoleSocket.h : header file
8 | //
9 |
10 |
11 |
12 | /////////////////////////////////////////////////////////////////////////////
13 | // CConsoleSocket command target
14 |
15 | class CConsoleSocket : public CAsyncSocket
16 | {
17 | // Attributes
18 | public:
19 |
20 | // Operations
21 | public:
22 | CConsoleSocket();
23 | virtual ~CConsoleSocket();
24 |
25 | // Overrides
26 | public:
27 | // ClassWizard generated virtual function overrides
28 | //{{AFX_VIRTUAL(CConsoleSocket)
29 | //}}AFX_VIRTUAL
30 |
31 | // Generated message map functions
32 | //{{AFX_MSG(CConsoleSocket)
33 | // NOTE - the ClassWizard will add and remove member functions here.
34 | //}}AFX_MSG
35 |
36 | // Implementation
37 | protected:
38 | };
39 |
40 | /////////////////////////////////////////////////////////////////////////////
41 |
42 | //{{AFX_INSERT_LOCATION}}
43 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
44 |
45 | #endif // !defined(AFX_CONSOLESOCKET_H__C2E973DB_90BA_4535_9633_38278EAB8EDB__INCLUDED_)
46 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "ManConsole"=.\ManConsole.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/ManConsole.rc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // ManConsole.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/StdAfx.h:
--------------------------------------------------------------------------------
1 | // stdafx.h : include file for standard system include files,
2 | // or project specific include files that are used frequently, but
3 | // are changed infrequently
4 | //
5 |
6 | #if !defined(AFX_STDAFX_H__D4BEEACE_E0B0_4C9B_BE8D_FF8618EF253F__INCLUDED_)
7 | #define AFX_STDAFX_H__D4BEEACE_E0B0_4C9B_BE8D_FF8618EF253F__INCLUDED_
8 |
9 | #if _MSC_VER > 1000
10 | #pragma once
11 | #endif // _MSC_VER > 1000
12 |
13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
14 |
15 | #include // MFC core and standard components
16 | #include // MFC extensions
17 | #include // MFC Automation classes
18 | #include // MFC support for Internet Explorer 4 Common Controls
19 | #ifndef _AFX_NO_AFXCMN_SUPPORT
20 | #include // MFC support for Windows Common Controls
21 | #endif // _AFX_NO_AFXCMN_SUPPORT
22 |
23 | #include // MFC socket extensions
24 |
25 | //{{AFX_INSERT_LOCATION}}
26 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
27 |
28 | #endif // !defined(AFX_STDAFX_H__D4BEEACE_E0B0_4C9B_BE8D_FF8618EF253F__INCLUDED_)
29 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/res/ManConsole.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/res/ManConsole.ico
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/res/ManConsole.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // MANCONSOLE.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/ManConsole/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Developer Studio generated include file.
3 | // Used by ManConsole.rc
4 | //
5 | #define IDM_ABOUTBOX 0x0010
6 | #define IDD_ABOUTBOX 100
7 | #define IDS_ABOUTBOX 101
8 | #define IDD_MANCONSOLE_DIALOG 102
9 | #define IDP_SOCKETS_INIT_FAILED 103
10 | #define IDR_MAINFRAME 128
11 | #define IDC_LIST1 1000
12 | #define IDC_EDIT1 1001
13 |
14 | // Next default values for new objects
15 | //
16 | #ifdef APSTUDIO_INVOKED
17 | #ifndef APSTUDIO_READONLY_SYMBOLS
18 | #define _APS_NEXT_RESOURCE_VALUE 129
19 | #define _APS_NEXT_COMMAND_VALUE 32771
20 | #define _APS_NEXT_CONTROL_VALUE 1002
21 | #define _APS_NEXT_SYMED_VALUE 101
22 | #endif
23 | #endif
24 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_db.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | IF EXISTS (SELECT * FROM SYSDATABASES WHERE NAME = 'LEGENDOFMIR')
11 | DROP DATABASE LEGENDOFMIR
12 |
13 | GO
14 |
15 | CREATE DATABASE LEGENDOFMIR ON
16 | (
17 | NAME = LEGENDOFMIR_DATA,
18 | FILENAME = 'D:\DATA\LEGENDOFMIR_DATA.MDF',
19 | SIZE = 10,
20 | MAXSIZE = 50,
21 | FILEGROWTH = 10
22 | )
23 | LOG ON
24 | (
25 | NAME = LEGENDOFMIR_LOG,
26 | FILENAME = 'D:\DATA\LEGENDOFMIR_LOG.LDF',
27 | SIZE = 5MB,
28 | MAXSIZE = 25MB,
29 | FILEGROWTH = 5MB
30 | )
31 |
32 | GO
33 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl.sql
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_account.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_ACCOUNT
14 | GO
15 |
16 | /*
17 | User Account Table
18 | */
19 |
20 | CREATE TABLE TBL_ACCOUNT
21 | (
22 | FLD_LOGINID CHAR(10) NOT NULL,
23 | FLD_PASSWORD CHAR(10) NOT NULL,
24 | FLD_USERNAME CHAR(20) NOT NULL,
25 |
26 | FLD_CERTIFICATION INT DEFAULT(0),
27 | )
28 | GO
29 |
30 | ALTER TABLE TBL_ACCOUNT ADD CONSTRAINT PK_ACCOUNT PRIMARY KEY (FLD_LOGINID)
31 | GO
32 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_accountadd.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_ACCOUNTADD
14 | GO
15 |
16 | /*
17 | User Account AddInfo Table
18 | */
19 |
20 | CREATE TABLE TBL_ACCOUNTADD
21 | (
22 | FLD_LOGINID CHAR(10) NOT NULL,
23 | FLD_SSNO CHAR(14) NOT NULL,
24 | FLD_BIRTHDAY CHAR(10) NOT NULL,
25 | FLD_PHONE CHAR(14) NOT NULL,
26 | FLD_MOBILEPHONE CHAR(13) NOT NULL,
27 | FLD_ADDRESS1 VARCHAR(20) NULL,
28 | FLD_ADDRESS2 VARCHAR(20) NULL,
29 | FLD_EMAIL VARCHAR(40) NULL,
30 | FLD_QUIZ1 VARCHAR(20) NULL,
31 | FLD_ANSWER1 VARCHAR(20) NULL,
32 | FLD_QUIZ2 VARCHAR(20) NULL,
33 | FLD_ANSWER2 VARCHAR(20) NULL
34 | )
35 | GO
36 |
37 | ALTER TABLE TBL_ACCOUNTADD ADD CONSTRAINT PK_ACCOUNTADD PRIMARY KEY (FLD_LOGINID)
38 | GO
39 |
40 | CREATE INDEX IDX_ACCOUNTADD_SSNO ON TBL_ACCOUNTADD (FLD_SSNO ASC)
41 | GO
42 |
43 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_character.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_CHARACTER
14 | GO
15 |
16 | /*
17 | User Character Table
18 | */
19 |
20 | CREATE TABLE TBL_CHARACTER
21 | (
22 | FLD_LOGINID CHAR(10) NOT NULL,
23 | FLD_CHARNAME CHAR(20) NOT NULL,
24 |
25 | FLD_JOB CHAR(1) NOT NULL,
26 | FLD_GENDER CHAR(1) NOT NULL,
27 |
28 | FLD_LEVEL TINYINT NOT NULL,
29 |
30 | FLD_DIRECTION INT NOT NULL,
31 | FLD_CX INT NOT NULL,
32 | FLD_CY INT NOT NULL,
33 | FLD_MAPNAME CHAR(16) NOT NULL,
34 |
35 | FLD_GOLD INT NOT NULL,
36 |
37 | FLD_DRESS_ID CHAR(11) NOT NULL,
38 | FLD_WEAPON_ID CHAR(11) NOT NULL,
39 | FLD_LEFTHAND_ID CHAR(11) NOT NULL,
40 | FLD_RIGHTHAND_ID CHAR(11) NOT NULL,
41 | FLD_HELMET_ID CHAR(11) NOT NULL,
42 | FLD_NECKLACE_ID CHAR(11) NOT NULL,
43 | FLD_ARMRINGL_ID CHAR(11) NOT NULL,
44 | FLD_ARMRINGR_ID CHAR (11) NOT NULL,
45 | FLD_RINGL_ID CHAR(11) NOT NULL,
46 | FLD_RINGR_ID CHAR(11) NOT NULL,
47 | )
48 | GO
49 |
50 | ALTER TABLE TBL_CHARACTER ADD CONSTRAINT PK_CHARACTER PRIMARY KEY (FLD_LOGINID, FLD_CHARNAME)
51 | GO
52 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_guard.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_GUARD
14 | GO
15 |
16 | /*
17 | Guard
18 | */
19 |
20 | CREATE TABLE TBL_GUARD
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_ID CHAR(14) NOT NULL,
24 | FLD_MAPNAME CHAR(14) NOT NULL,
25 | FLD_POSX INT NOT NULL,
26 | FLD_POSY INT NOT NULL,
27 | FLD_DIRECTION SMALLINT NOT NULL,
28 | FLD_DESCRIPTION VARCHAR(100) NULL,
29 | )
30 | GO
31 |
32 | /*ALTER TABLE TBL_MERCHANT ADD CONSTRAINT PK_MOVEMAPEVENT PRIMARY KEY (FLD_INDEX)
33 | GO */
34 |
35 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_horse.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_HORSE
14 | GO
15 |
16 | /*
17 | User Character Table
18 | */
19 |
20 | CREATE TABLE TBL_HORSE
21 | (
22 | FLD_CHARNAME CHAR(20) NOT NULL,
23 | FLD_HORSEINDEX CHAR(11) NOT NULL,
24 |
25 | FLD_HORSETYPE TINYINT NOT NULL,
26 |
27 | FLD_LEVEL TINYINT NULL,
28 | FLD_PRICE INT NULL,
29 | FLD_HP TINYINT NULL
30 | )
31 | GO
32 |
33 | ALTER TABLE TBL_HORSE ADD CONSTRAINT PK_HORSE PRIMARY KEY (FLD_CHARNAME, FLD_HORSEINDEX)
34 | GO
35 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_magic.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_MAGIC
14 | GO
15 |
16 | /*
17 | Magic Item
18 | */
19 |
20 | CREATE TABLE TBL_MAGIC
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_NAME CHAR(12) NOT NULL,
24 | FLD_EFFECTTYPE SMALLINT NULL,
25 | FLD_EFFECT SMALLINT NULL,
26 | FLD_SPELL SMALLINT NULL,
27 | FLD_POWER SMALLINT NULL,
28 | FLD_MAXPOWER SMALLINT NULL,
29 | FLD_DEFSPELL SMALLINT NULL,
30 | FLD_DEFPOWER SMALLINT NULL,
31 | FLD_DEFMAXPOWER SMALLINT NULL,
32 | FLD_JOB SMALLINT NULL,
33 | FLD_NEEDL1 SMALLINT NULL,
34 | FLD_L1TRAIN INT NULL,
35 | FLD_NEEDL2 SMALLINT NULL,
36 | FLD_L2TRAIN INT NULL,
37 | FLD_NEEDL3 SMALLINT NULL,
38 | FLD_L3TRAIN INT NULL,
39 | FLD_DELAY SMALLINT NULL,
40 | FLD_DESC CHAR(8) NULL,
41 | FLD_DESCRIPTION VARCHAR(100) NULL,
42 | )
43 | GO
44 |
45 | ALTER TABLE TBL_MAGIC ADD CONSTRAINT PK_MAGIC PRIMARY KEY (FLD_INDEX)
46 | GO
47 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_mapinfo.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_MAPINFO
14 | GO
15 |
16 | /*
17 | Map Information
18 | */
19 |
20 | CREATE TABLE TBL_MAPINFO
21 | (
22 | FLD_MAPFILENAME CHAR(14) NOT NULL,
23 | FLD_MAPNAME VARCHAR(40) NOT NULL,
24 | FLD_SERVERINDEX SMALLINT NOT NULL,
25 | FLD_ATTRIBUTE INT NULL,
26 | FLD_RECALLMAPFNAME CHAR(14) NULL,
27 | FLD_DESCRIPTION VARCHAR(100) NULL,
28 | )
29 | GO
30 |
31 | ALTER TABLE TBL_MAPINFO ADD CONSTRAINT PK_MAPINFO PRIMARY KEY (FLD_MAPFILENAME)
32 | GO
33 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_merchant.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_MERCHANT
14 | GO
15 |
16 | /*
17 | Merchant
18 | */
19 |
20 | CREATE TABLE TBL_MERCHANT
21 | (
22 | FLD_ID INT IDENTITY(1, 1),
23 | FLD_MAPNAME CHAR(14) NOT NULL,
24 | FLD_POSX INT NOT NULL,
25 | FLD_POSY INT NOT NULL,
26 | FLD_NPCNAME VARCHAR(40) NOT NULL,
27 | FLD_FACE INT NOT NULL,
28 | FLD_BODY INT NOT NULL,
29 | FLD_GENDER SMALLINT NOT NULL,
30 | FLD_DESCRIPTION VARCHAR(100) NULL,
31 | )
32 | GO
33 |
34 | ALTER TABLE TBL_MERCHANT ADD CONSTRAINT PK_MERCHANT PRIMARY KEY (FLD_ID)
35 | GO
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_mongen.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_MONGEN
14 | GO
15 |
16 | /*
17 | Monster Generation Info
18 | */
19 |
20 | CREATE TABLE TBL_MONGEN
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_MAPNAME CHAR(14) NOT NULL,
24 | FLD_X INT NOT NULL,
25 | FLD_Y INT NULL,
26 | FLD_MONNAME CHAR(14) NULL,
27 | FLD_AREA SMALLINT NULL,
28 | FLD_COUNT SMALLINT NULL,
29 | FLD_GENTIME INT NULL,
30 | FLD_SMALLGENRATE INT NULL,
31 | FLD_DESCRIPTION VARCHAR(100) NULL,
32 | )
33 | GO
34 |
35 | ALTER TABLE TBL_MONGEN ADD CONSTRAINT PK_MONGEN PRIMARY KEY (FLD_INDEX)
36 | GO
37 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_monster.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_MONSTER
14 | GO
15 |
16 | /*
17 | Monster
18 | */
19 |
20 | CREATE TABLE TBL_MONSTER
21 | (
22 | FLD_NAME CHAR(14) NOT NULL,
23 | FLD_RACE SMALLINT NULL,
24 | FLD_RACEIMG SMALLINT NULL,
25 | FLD_APPR SMALLINT NULL,
26 | FLD_LEVEL SMALLINT NULL,
27 | FLD_UNDEAD SMALLINT NULL,
28 | FLD_EXP SMALLINT NULL,
29 | FLD_HP SMALLINT NULL,
30 | FLD_MP SMALLINT NULL,
31 | FLD_AC SMALLINT NULL,
32 | FLD_MAXAC SMALLINT NULL,
33 | FLD_MAC SMALLINT NULL,
34 | FLD_MAXMAC SMALLINT NULL,
35 | FLD_DC SMALLINT NULL,
36 | FLD_MAXDC SMALLINT NULL,
37 | FLD_SPEED SMALLINT NULL,
38 | FLD_HIT SMALLINT NULL,
39 | FLD_WALKSPEED SMALLINT NULL,
40 | FLD_ATTACKSPEED SMALLINT NULL,
41 | )
42 | GO
43 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_movemapevnt.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_MOVEMAPEVENT
14 | GO
15 |
16 | /*
17 | Move Map Event Information
18 | */
19 |
20 | CREATE TABLE TBL_MOVEMAPEVENT
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_SMAPFILENAME CHAR(14) NOT NULL,
24 | FLD_SX INT NOT NULL,
25 | FLD_SY INT NOT NULL,
26 | FLD_DMAPFILENAME CHAR(14) NOT NULL,
27 | FLD_DX INT NOT NULL,
28 | FLD_DY INT NOT NULL,
29 | FLD_DESCRIPTION VARCHAR(100) NULL,
30 | )
31 | GO
32 |
33 | ALTER TABLE TBL_MOVEMAPEVENT ADD CONSTRAINT PK_MOVEMAPEVENT PRIMARY KEY (FLD_INDEX)
34 | GO
35 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_npc.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_NPC
14 | GO
15 |
16 | /*
17 | NPC
18 | */
19 |
20 | CREATE TABLE TBL_NPC
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_NAME CHAR(14) NOT NULL,
24 | FLD_RACE SMALLINT NOT NULL,
25 | FLD_MAPNAME CHAR(14) NOT NULL,
26 | FLD_POSX INT NOT NULL,
27 | FLD_POSY INT NOT NULL,
28 | FLD_FACE SMALLINT NOT NULL,
29 | FLD_BODY SMALLINT NOT NULL,
30 | FLD_DESCRIPTION VARCHAR(100) NULL,
31 | )
32 | GO
33 |
34 | /*ALTER TABLE TBL_MERCHANT ADD CONSTRAINT PK_MOVEMAPEVENT PRIMARY KEY (FLD_INDEX)
35 | GO */
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_serverinfo.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_SERVERINFO
14 | GO
15 |
16 | /*
17 | Server Information Table
18 | */
19 |
20 | CREATE TABLE TBL_SERVERINFO
21 | (
22 | FLD_SERVERIDX INT IDENTITY(0, 1),
23 | FLD_SERVERNAME NCHAR(40) NOT NULL,
24 | FLD_SERVERIP NCHAR(20) NOT NULL
25 | )
26 | GO
27 |
28 | ALTER TABLE TBL_SERVERINFO ADD CONSTRAINT PK_SERVERINFO PRIMARY KEY (FLD_SERVERIDX)
29 | GO
30 |
31 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_startpnt.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_STARTPOINT
14 | GO
15 |
16 | /*
17 | TBL_STARTPOINT
18 | */
19 |
20 | CREATE TABLE TBL_STARTPOINT
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_MAPNAME CHAR(14) NOT NULL,
24 | FLD_POSX INT NOT NULL,
25 | FLD_POSY INT NOT NULL,
26 | FLD_DESCRIPTION VARCHAR(100) NULL,
27 | )
28 | GO
29 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_stditem.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_STDITEMWEAPON
14 | GO
15 |
16 | /*
17 | Standard Item
18 | */
19 |
20 | CREATE TABLE TBL_STDITEMWEAPON
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_NAME VARCHAR(20) NOT NULL,
24 | FLD_STDMODE SMALLINT NULL,
25 | FLD_SHAPE SMALLINT NULL,
26 | FLD_WEIGHT SMALLINT NULL,
27 | FLD_ANICOUNT SMALLINT NULL,
28 | FLD_SOURCE SMALLINT NULL,
29 | FLD_LOOKS INT NULL,
30 | FLD_DURAMAX INT NULL,
31 | FLD_AC SMALLINT NULL,
32 | FLD_AC2 SMALLINT NULL,
33 | FLD_MAC SMALLINT NULL,
34 | FLD_MAC2 SMALLINT NULL,
35 | FLD_DC SMALLINT NULL,
36 | FLD_DC2 SMALLINT NULL,
37 | FLD_MC SMALLINT NULL,
38 | FLD_MC2 SMALLINT NULL,
39 | FLD_SC SMALLINT NULL,
40 | FLD_SC2 SMALLINT NULL,
41 | FLD_NEED SMALLINT NULL,
42 | FLD_NEEDLEVEL SMALLINT NULL,
43 | FLD_PRICE INT NULL,
44 | FLD_STOCK INT NULL,
45 | )
46 | GO
47 |
48 | ALTER TABLE TBL_STDITEMWEAPON ADD CONSTRAINT PK_STDITEMWEAPON PRIMARY KEY (FLD_INDEX)
49 | GO
50 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_stditem_Accessory.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_STDITEM_ACCESSORY
14 | GO
15 |
16 | /*
17 | Standard Item
18 | */
19 |
20 | CREATE TABLE TBL_STDITEM_ACCESSORY
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_NAME VARCHAR(20) NOT NULL,
24 | FLD_STDMODE SMALLINT NULL,
25 | FLD_SHAPE SMALLINT NULL,
26 | FLD_WEIGHT SMALLINT NULL,
27 | FLD_ANICOUNT SMALLINT NULL,
28 | FLD_SOURCE SMALLINT NULL,
29 | FLD_LOOKS INT NULL,
30 | FLD_DURAMAX INT NULL,
31 | FLD_AC SMALLINT NULL,
32 | FLD_AC2 SMALLINT NULL,
33 | FLD_MAC SMALLINT NULL,
34 | FLD_MAC2 SMALLINT NULL,
35 | FLD_DC SMALLINT NULL,
36 | FLD_DC2 SMALLINT NULL,
37 | FLD_MC SMALLINT NULL,
38 | FLD_MC2 SMALLINT NULL,
39 | FLD_SC SMALLINT NULL,
40 | FLD_SC2 SMALLINT NULL,
41 | FLD_NEED SMALLINT NULL,
42 | FLD_NEEDLEVEL SMALLINT NULL,
43 | FLD_PRICE INT NULL,
44 | FLD_STOCK INT NULL,
45 | )
46 | GO
47 |
48 | ALTER TABLE TBL_STDITEM_ACCESSORY ADD CONSTRAINT PK_STDITEM_ACCESSORY PRIMARY KEY (FLD_INDEX)
49 | GO
50 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_stditem_etc.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_STDITEM_ETC
14 | GO
15 |
16 | /*
17 | Standard General Item
18 | */
19 |
20 | CREATE TABLE TBL_STDITEM_ETC
21 | (
22 | FLD_INDEX INT NOT NULL,
23 | FLD_NAME VARCHAR(20) NOT NULL,
24 | FLD_STDMODE SMALLINT NULL,
25 | FLD_SHAPE SMALLINT NULL,
26 | FLD_LOOKS INT NULL,
27 | FLD_WEIGHT SMALLINT NULL,
28 | FLD_PRICE INT NULL,
29 | FLD_VAL1 INT NULL,
30 | FLD_VAL2 INT NULL,
31 | )
32 | GO
33 |
34 | ALTER TABLE TBL_STDITEM_ETC ADD CONSTRAINT PK_STDITEM_ETC PRIMARY KEY (FLD_INDEX)
35 | GO
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_stditemarmor.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_STDITEMARMOR
14 | GO
15 |
16 | /*
17 | Standard Item
18 | */
19 |
20 | CREATE TABLE TBL_STDITEMARMOR
21 | (
22 | FLD_INDEX INT IDENTITY(1,1),
23 | FLD_NAME VARCHAR(20) NOT NULL,
24 | FLD_STDMODE SMALLINT NULL,
25 | FLD_SHAPE SMALLINT NULL,
26 | FLD_WEIGHT SMALLINT NULL,
27 | FLD_ANICOUNT SMALLINT NULL,
28 | FLD_SOURCE SMALLINT NULL,
29 | FLD_LOOKS INT NULL,
30 | FLD_DURAMAX INT NULL,
31 | FLD_AC SMALLINT NULL,
32 | FLD_AC2 SMALLINT NULL,
33 | FLD_MAC SMALLINT NULL,
34 | FLD_MAC2 SMALLINT NULL,
35 | FLD_DC SMALLINT NULL,
36 | FLD_DC2 SMALLINT NULL,
37 | FLD_MC SMALLINT NULL,
38 | FLD_MC2 SMALLINT NULL,
39 | FLD_SC SMALLINT NULL,
40 | FLD_SC2 SMALLINT NULL,
41 | FLD_NEED SMALLINT NULL,
42 | FLD_NEEDLEVEL SMALLINT NULL,
43 | FLD_PRICE INT NULL,
44 | FLD_STOCK INT NULL,
45 | )
46 | GO
47 |
48 | ALTER TABLE TBL_STDITEMARMOR ADD CONSTRAINT PK_STDITEMARMOR PRIMARY KEY (FLD_INDEX)
49 | GO
50 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_stditemweapon.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_STDITEMWEAPON
14 | GO
15 |
16 | /*
17 | Standard Item
18 | */
19 |
20 | CREATE TABLE TBL_STDITEMWEAPON
21 | (
22 | FLD_INDEX INT IDENTITY(1,1),
23 | FLD_NAME VARCHAR(20) NOT NULL,
24 | FLD_STDMODE SMALLINT NULL,
25 | FLD_SHAPE SMALLINT NULL,
26 | FLD_WEIGHT SMALLINT NULL,
27 | FLD_ANICOUNT SMALLINT NULL,
28 | FLD_SOURCE SMALLINT NULL,
29 | FLD_LOOKS INT NULL,
30 | FLD_DURAMAX INT NULL,
31 | FLD_AC SMALLINT NULL,
32 | FLD_AC2 SMALLINT NULL,
33 | FLD_MAC SMALLINT NULL,
34 | FLD_MAC2 SMALLINT NULL,
35 | FLD_DC SMALLINT NULL,
36 | FLD_DC2 SMALLINT NULL,
37 | FLD_MC SMALLINT NULL,
38 | FLD_MC2 SMALLINT NULL,
39 | FLD_SC SMALLINT NULL,
40 | FLD_SC2 SMALLINT NULL,
41 | FLD_NEED SMALLINT NULL,
42 | FLD_NEEDLEVEL SMALLINT NULL,
43 | FLD_PRICE INT NULL,
44 | FLD_STOCK INT NULL,
45 | )
46 | GO
47 |
48 | ALTER TABLE TBL_STDITEMWEAPON ADD CONSTRAINT PK_STDITEMWEAPON PRIMARY KEY (FLD_INDEX)
49 | GO
50 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_tbl_useritem.sql:
--------------------------------------------------------------------------------
1 | /* **************************************************************************
2 |
3 | Create Database for Legend of Mir 2
4 |
5 | All written by Euy-heon, Jeong
6 | Copyright (C) 2001 Wemade Entertainment. All rights reserved.
7 |
8 | *************************************************************************** */
9 |
10 | USE LEGENDOFMIR
11 | GO
12 |
13 | DROP TABLE TBL_USERITEM
14 | GO
15 |
16 | /*
17 | User Item
18 | */
19 |
20 | CREATE TABLE TBL_USERITEM
21 | (
22 | FLD_CHARNAME NCHAR(20) NOT NULL,
23 | FLD_STDTYPE NCHAR(1) NOT NULL,
24 | FLD_MAKEDATE NCHAR(6) NOT NULL,
25 | FLD_MAKEINDEX NCHAR(5) NOT NULL,
26 | FLD_STDINDEX INT NOT NULL,
27 | FLD_DURA INT NOT NULL,
28 | FLD_DURAMAX INT NOT NULL,
29 | FLD_VALUE1 TINYINT NOT NULL,
30 | FLD_VALUE2 TINYINT NOT NULL,
31 | FLD_VALUE3 TINYINT NOT NULL,
32 | FLD_VALUE4 TINYINT NOT NULL,
33 | FLD_VALUE5 TINYINT NOT NULL,
34 | FLD_VALUE6 TINYINT NOT NULL,
35 | FLD_VALUE7 TINYINT NOT NULL,
36 | FLD_VALUE8 TINYINT NOT NULL,
37 | FLD_VALUE9 TINYINT NOT NULL,
38 | FLD_VALUE10 TINYINT NOT NULL,
39 | FLD_VALUE11 TINYINT NOT NULL,
40 | FLD_VALUE12 TINYINT NOT NULL,
41 | FLD_VALUE13 TINYINT NOT NULL,
42 | FLD_VALUE14 TINYINT NOT NULL,
43 | )
44 | GO
45 |
46 | ALTER TABLE TBL_USERITEM ADD CONSTRAINT PK_USERITEM PRIMARY KEY (FLD_MAKEINDEX)
47 | GO
48 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SQL_Scripts/create_usr.sql:
--------------------------------------------------------------------------------
1 | USE MASTER
2 | GO
3 |
4 | IF NOT EXISTS (SELECT * FROM SYSUSERS WHERE NAME = 'MIR_DBA')
5 | SP_ADDUSER 'MIR_DBA'
6 | GO
7 |
8 | SP_ADDUSER 'MIR_USER_0'
9 | GO
10 | SP_ADDUSER 'MIR_USER_1'
11 | GO
12 | SP_ADDUSER 'MIR_USER_2'
13 | GO
14 | SP_ADDUSER 'MIR_USER_3'
15 | GO
16 | SP_ADDUSER 'MIR_USER_4'
17 | GO
18 | SP_ADDUSER 'MIR_USER_5'
19 | GO
20 | SP_ADDUSER 'MIR_USER_6'
21 | GO
22 | SP_ADDUSER 'MIR_USER_7'
23 | GO
24 | SP_ADDUSER 'MIR_USER_8'
25 | GO
26 | SP_ADDUSER 'MIR_USER_9'
27 | GO
28 |
29 | GRANT ALL ON TBL_ACCOUNT TO MIR_DBA
30 | END IF
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/IOCPFunc.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | // **************************************************************************************
4 | //
5 | //
6 | //
7 | // **************************************************************************************
8 |
9 | BOOL CheckAvailableIOCP()
10 | {
11 | OSVERSIONINFO VersionInfo;
12 |
13 | GetVersionEx(&VersionInfo);
14 |
15 | if (VersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT && VersionInfo.dwMajorVersion >= 5)
16 | return TRUE;
17 |
18 | return FALSE;
19 | }
20 |
21 | // **************************************************************************************
22 | //
23 | //
24 | //
25 | // **************************************************************************************
26 | /*
27 | INT CreateIOCPWorkerThread(HANDLE hCP, LPDWORD lpdwThreadID, LPTHREAD_START_ROUTINE WorkerThreadFunc)
28 | {
29 | if (CompletionPort != INVALID_HANDLE_VALUE)
30 | {
31 | SYSTEM_INFO SystemInfo;
32 |
33 | if ((hCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0)) == NULL)
34 | return -1;
35 |
36 | GetSystemInfo(&SystemInfo);
37 |
38 | for (UINT i = 0; i < SystemInfo.dwNumberOfProcessors * 2; i++)
39 | {
40 | HANDLE ThreadHandle;
41 |
42 | if ((ThreadHandle = CreateThread(NULL, 0, WorkerThreadFunc, hCP, 0, lpdwThreadID)) == NULL)
43 | return -1;
44 |
45 | CloseHandle(ThreadHandle);
46 | }
47 |
48 | return SystemInfo.dwNumberOfProcessors * 2;
49 | }
50 |
51 | return -1;
52 | }
53 | */
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/IOCPFunc.h:
--------------------------------------------------------------------------------
1 | BOOL CheckAvailableIOCP();
2 | INT CreateIOCPWorkerThread(HANDLE hCP, LPDWORD lpdwThreadID, LPTHREAD_START_ROUTINE WorkerThreadFunc);
3 |
4 |
5 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | WIN32 APPLICATION : SelGate
3 | ========================================================================
4 |
5 |
6 | AppWizard has created this SelGate application for you.
7 |
8 | This file contains a summary of what you will find in each of the files that
9 | make up your SelGate application.
10 |
11 | SelGate.cpp
12 | This is the main application source file.
13 |
14 | SelGate.dsp
15 | This file (the project file) contains information at the project level and
16 | is used to build a single project or subproject. Other users can share the
17 | project (.dsp) file, but they should export the makefiles locally.
18 |
19 |
20 | /////////////////////////////////////////////////////////////////////////////
21 | Other standard files:
22 |
23 | StdAfx.h, StdAfx.cpp
24 | These files are used to build a precompiled header (PCH) file
25 | named SelGate.pch and a precompiled types file named StdAfx.obj.
26 |
27 |
28 | /////////////////////////////////////////////////////////////////////////////
29 | Other notes:
30 |
31 | AppWizard uses "TODO:" to indicate parts of the source code you
32 | should add to or customize.
33 |
34 |
35 | /////////////////////////////////////////////////////////////////////////////
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/Res/MIR2.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SelGate/Res/MIR2.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/Res/TOOLBAR.BMP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SelGate/Res/TOOLBAR.BMP
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "SelGate"=.\SelGate.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/SelGate/SelGate.rc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // LoginGate.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/SelGate/ThreadFuncForComm.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | #define PACKET_KEEPALIVE "%--$"
4 |
5 | extern HWND g_hToolBar;
6 | extern HWND g_hStatusBar;
7 |
8 | extern SOCKET g_csock;
9 | extern SOCKADDR_IN g_caddr;
10 |
11 | void SendExToServer(char *pszPacket);
12 |
13 | BOOL jRegGetKey(LPCTSTR pSubKeyName, LPCTSTR pValueName, LPBYTE pValue);
14 |
15 | VOID WINAPI OnTimerProc(HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
16 | {
17 | switch (idEvent)
18 | {
19 | case _ID_TIMER_KEEPALIVE:
20 | {
21 | if (g_csock != INVALID_SOCKET)
22 | {
23 | SendExToServer(PACKET_KEEPALIVE);
24 | SendMessage(g_hStatusBar, SB_SETTEXT, MAKEWORD(2, 0), (LPARAM)_TEXT("Check Activity"));
25 | }
26 |
27 | break;
28 | }
29 | case _ID_TIMER_CONNECTSERVER:
30 | {
31 | if (g_csock == INVALID_SOCKET)
32 | {
33 | DWORD dwIP = 0;
34 | int nPort = 0;
35 |
36 | InsertLogMsg(IDS_APPLY_RECONNECT);
37 |
38 | jRegGetKey(_SELGATE_SERVER_REGISTRY, _TEXT("RemoteIP"), (LPBYTE)&dwIP);
39 |
40 | if (!jRegGetKey(_SELGATE_SERVER_REGISTRY, _TEXT("RemotePort"), (LPBYTE)&nPort))
41 | nPort = 5000;
42 |
43 | ConnectToServer(g_csock, &g_caddr, _IDM_CLIENTSOCK_MSG, NULL, dwIP, nPort, FD_CONNECT|FD_READ|FD_CLOSE);
44 | }
45 |
46 | break;
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/Tools/encodesize.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/Tools/encodesize.exe
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/Tools/encodesize.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/Tools/encodesize.obj
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/Tools/test_encode.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/Tools/test_encode.exe
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/Tools/test_encode.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/Tools/test_encode.obj
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/InitClient.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/InitClient.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/InitClient.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/InitClient.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/RESOURCE.H:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Developer Studio generated include file.
3 | // Used by VirtualClient.rc
4 | //
5 | #define IDR_MAINMENU 101
6 | #define IDD_LOGIN 102
7 | #define IDD_NEWUSER 103
8 | #define IDC_USERID 1000
9 | #define IDC_PASSWORD 1001
10 | #define IDC_USERNAME 1004
11 | #define IDC_SSNO 1005
12 | #define IDC_QUIZ1 1006
13 | #define IDC_ANSWER1 1007
14 | #define IDC_QUIZ2 1008
15 | #define IDC_ANSWER2 1009
16 | #define IDC_PHONE 1010
17 | #define IDC_MOBILEPHONE 1011
18 | #define IDC_EMAIL 1012
19 | #define IDC_BIRTHDAY 1013
20 | #define IDM_CM_IDPASSWORD 40001
21 | #define IDM_CM_ADDUSER 40002
22 | #define IDM_TEST 40003
23 |
24 | // Next default values for new objects
25 | //
26 | #ifdef APSTUDIO_INVOKED
27 | #ifndef APSTUDIO_READONLY_SYMBOLS
28 | #define _APS_NEXT_RESOURCE_VALUE 106
29 | #define _APS_NEXT_COMMAND_VALUE 40004
30 | #define _APS_NEXT_CONTROL_VALUE 1014
31 | #define _APS_NEXT_SYMED_VALUE 101
32 | #endif
33 | #endif
34 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | WIN32 APPLICATION : VirtualClient
3 | ========================================================================
4 |
5 |
6 | AppWizard has created this VirtualClient application for you.
7 |
8 | This file contains a summary of what you will find in each of the files that
9 | make up your VirtualClient application.
10 |
11 | VirtualClient.cpp
12 | This is the main application source file.
13 |
14 | VirtualClient.dsp
15 | This file (the project file) contains information at the project level and
16 | is used to build a single project or subproject. Other users can share the
17 | project (.dsp) file, but they should export the makefiles locally.
18 |
19 |
20 | /////////////////////////////////////////////////////////////////////////////
21 | Other standard files:
22 |
23 | StdAfx.h, StdAfx.cpp
24 | These files are used to build a precompiled header (PCH) file
25 | named VirtualClient.pch and a precompiled types file named StdAfx.obj.
26 |
27 |
28 | /////////////////////////////////////////////////////////////////////////////
29 | Other notes:
30 |
31 | AppWizard uses "TODO:" to indicate parts of the source code you
32 | should add to or customize.
33 |
34 |
35 | /////////////////////////////////////////////////////////////////////////////
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // VirtualClient.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/StdAfx.h:
--------------------------------------------------------------------------------
1 | // stdafx.h : include file for standard system include files,
2 | // or project specific include files that are used frequently, but
3 | // are changed infrequently
4 | //
5 |
6 | #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
7 | #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_
8 |
9 | #if _MSC_VER > 1000
10 | #pragma once
11 | #endif // _MSC_VER > 1000
12 |
13 | //#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
14 |
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 |
22 | #include "..\def\Misc.h"
23 | #include "..\def\EnDecode.h"
24 | #include "..\def\Protocol.h"
25 |
26 | #pragma comment (lib, "ws2_32.lib")
27 | #pragma comment (lib, "comctl32.lib")
28 |
29 | #define _IDM_SOCKMSG WM_USER + 1000
30 |
31 | //{{AFX_INSERT_LOCATION}}
32 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
33 |
34 | #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
35 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "VirtualClient"=.\VirtualClient.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.plg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Build Log
5 |
6 | --------------------Configuration: VirtualClient - Win32 Debug--------------------
7 |
8 | Command Lines
9 | Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP9C.tmp" with contents
10 | [
11 | /nologo /MLd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /Fp"Debug/VirtualClient.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
12 | "E:\Works.Wemade\LegendOfMir2_Server\Def\EnDecode.cpp"
13 | ]
14 | Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP9C.tmp"
15 | Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP9D.tmp" with contents
16 | [
17 | kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/VirtualClient.pdb" /debug /machine:I386 /out:"..\Debug/VirtualClient.exe" /pdbtype:sept
18 | .\Debug\DlgFunc.obj
19 | .\Debug\EnDecode.obj
20 | .\Debug\InitClient.obj
21 | .\Debug\Misc.obj
22 | .\Debug\StdAfx.obj
23 | .\Debug\VirtualClient.obj
24 | .\Debug\VirtualClient.res
25 | ]
26 | Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP9D.tmp"
27 | Output Window
28 | Compiling...
29 | EnDecode.cpp
30 | Linking...
31 |
32 |
33 |
34 | Results
35 | VirtualClient.exe - 0 error(s), 0 warning(s)
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.positions:
--------------------------------------------------------------------------------
1 | WndTabs Tab Positions File33C@ Workspace Output VirtualClient.cpp DlgFunc.cpp %VirtualClient.rc - IDD_LOGIN (Dialog)
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/VirtualClient/VirtualClient.rc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/include/mysql/psi/psi_abi_v1.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
2 |
3 | This program is free software; you can redistribute it and/or modify
4 | it under the terms of the GNU General Public License as published by
5 | the Free Software Foundation; version 2 of the License.
6 |
7 | This program is distributed in the hope that it will be useful,
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 | GNU General Public License for more details.
11 |
12 | You should have received a copy of the GNU General Public License
13 | along with this program; if not, write to the Free Software Foundation,
14 | 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 |
16 | /**
17 | @file mysql/psi/psi_abi_v1.h
18 | ABI check for mysql/psi/psi.h, when using PSI_VERSION_1.
19 | This file is only used to automate detection of changes between versions.
20 | Do not include this file, include mysql/psi/psi.h instead.
21 | */
22 | #define USE_PSI_1
23 | #define HAVE_PSI_INTERFACE
24 | #define _global_h
25 | #include "mysql/psi/psi.h"
26 |
27 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/include/mysql/psi/psi_abi_v2.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
2 |
3 | This program is free software; you can redistribute it and/or modify
4 | it under the terms of the GNU General Public License as published by
5 | the Free Software Foundation; version 2 of the License.
6 |
7 | This program is distributed in the hope that it will be useful,
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 | GNU General Public License for more details.
11 |
12 | You should have received a copy of the GNU General Public License
13 | along with this program; if not, write to the Free Software Foundation,
14 | 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 |
16 | /**
17 | @file mysql/psi/psi_abi_v1.h
18 | ABI check for mysql/psi/psi.h, when using PSI_VERSION_2.
19 | This file is only used to automate detection of changes between versions.
20 | Do not include this file, include mysql/psi/psi.h instead.
21 | */
22 | #define USE_PSI_2
23 | #define HAVE_PSI_INTERFACE
24 | #define _global_h
25 | #include "mysql/psi/psi.h"
26 |
27 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/include/mysql/services.h:
--------------------------------------------------------------------------------
1 | #ifndef MYSQL_SERVICES_INCLUDED
2 | /* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
3 |
4 | This program is free software; you can redistribute it and/or modify
5 | it under the terms of the GNU General Public License as published by
6 | the Free Software Foundation; version 2 of the License.
7 |
8 | This program is distributed in the hope that it will be useful,
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 | GNU General Public License for more details.
12 |
13 | You should have received a copy of the GNU General Public License
14 | along with this program; if not, write to the Free Software
15 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
16 |
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 |
21 | #include
22 | #include
23 | #include
24 | #include
25 |
26 | #ifdef __cplusplus
27 | }
28 | #endif
29 |
30 | #define MYSQL_SERVICES_INCLUDED
31 | #endif
32 |
33 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/include/mysql_embed.h:
--------------------------------------------------------------------------------
1 | #ifndef MYSQL_EMBED_INCLUDED
2 | #define MYSQL_EMBED_INCLUDED
3 |
4 | /* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
5 |
6 | This program is free software; you can redistribute it and/or modify
7 | it under the terms of the GNU General Public License as published by
8 | the Free Software Foundation; version 2 of the License.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
18 |
19 | /* Defines that are unique to the embedded version of MySQL */
20 |
21 | #ifdef EMBEDDED_LIBRARY
22 |
23 | /* Things we don't need in the embedded version of MySQL */
24 | /* TODO HF add #undef HAVE_VIO if we don't want client in embedded library */
25 |
26 | #undef HAVE_DLOPEN /* No udf functions */
27 | #undef HAVE_SMEM /* No shared memory */
28 |
29 | #endif /* EMBEDDED_LIBRARY */
30 | #endif /* MYSQL_EMBED_INCLUDED */
31 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/include/mysql_version.h:
--------------------------------------------------------------------------------
1 | /* Copyright Abandoned 1996, 1999, 2001 MySQL AB
2 | This file is public domain and comes with NO WARRANTY of any kind */
3 |
4 | /* Version numbers for protocol & mysqld */
5 |
6 | #ifndef _mysql_version_h
7 | #define _mysql_version_h
8 | #ifdef _CUSTOMCONFIG_
9 | #include
10 | #else
11 | #define PROTOCOL_VERSION 10
12 | #define MYSQL_SERVER_VERSION "5.5.20"
13 | #define MYSQL_BASE_VERSION "mysqld-5.5"
14 | #define MYSQL_SERVER_SUFFIX_DEF ""
15 | #define FRM_VER 6
16 | #define MYSQL_VERSION_ID 50520
17 | #define MYSQL_PORT 3306
18 | #define MYSQL_PORT_DEFAULT 0
19 | #define MYSQL_UNIX_ADDR "/tmp/mysql.sock"
20 | #define MYSQL_CONFIG_NAME "my"
21 | #define MYSQL_COMPILATION_COMMENT "MySQL Community Server (GPL)"
22 |
23 | /* mysqld compile time options */
24 | #endif /* _CUSTOMCONFIG_ */
25 |
26 | #ifndef LICENSE
27 | #define LICENSE GPL
28 | #endif /* LICENSE */
29 |
30 | #endif /* _mysql_version_h */
31 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/include/sslopt-case.h:
--------------------------------------------------------------------------------
1 | #ifndef SSLOPT_CASE_INCLUDED
2 | #define SSLOPT_CASE_INCLUDED
3 |
4 | /* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
5 |
6 | This program is free software; you can redistribute it and/or modify
7 | it under the terms of the GNU General Public License as published by
8 | the Free Software Foundation; version 2 of the License.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
18 |
19 | #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
20 | case OPT_SSL_KEY:
21 | case OPT_SSL_CERT:
22 | case OPT_SSL_CA:
23 | case OPT_SSL_CAPATH:
24 | case OPT_SSL_CIPHER:
25 | /*
26 | Enable use of SSL if we are using any ssl option
27 | One can disable SSL later by using --skip-ssl or --ssl=0
28 | */
29 | opt_use_ssl= 1;
30 | break;
31 | #endif
32 | #endif /* SSLOPT_CASE_INCLUDED */
33 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/include/sslopt-vars.h:
--------------------------------------------------------------------------------
1 | #ifndef SSLOPT_VARS_INCLUDED
2 | #define SSLOPT_VARS_INCLUDED
3 |
4 | /* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
5 |
6 | This program is free software; you can redistribute it and/or modify
7 | it under the terms of the GNU General Public License as published by
8 | the Free Software Foundation; version 2 of the License.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
18 |
19 | #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
20 | #ifdef SSL_VARS_NOT_STATIC
21 | #define SSL_STATIC
22 | #else
23 | #define SSL_STATIC static
24 | #endif
25 | SSL_STATIC my_bool opt_use_ssl = 0;
26 | SSL_STATIC char *opt_ssl_ca = 0;
27 | SSL_STATIC char *opt_ssl_capath = 0;
28 | SSL_STATIC char *opt_ssl_cert = 0;
29 | SSL_STATIC char *opt_ssl_cipher = 0;
30 | SSL_STATIC char *opt_ssl_key = 0;
31 | #ifdef MYSQL_CLIENT
32 | SSL_STATIC my_bool opt_ssl_verify_server_cert= 0;
33 | #endif
34 | #endif
35 | #endif /* SSLOPT_VARS_INCLUDED */
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/lib/Common_d.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/lib/Common_d.lib
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/lib/libmysql.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/lib/libmysql.dll
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/lib/libmysql.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/lib/libmysql.lib
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/packet/Account_protocol.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/packet/Account_protocol.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/packet/Category.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/packet/Category.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/packet/logingate_protocol.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/packet/logingate_protocol.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_Server/packet/loginsrv_protocol.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_Server/packet/loginsrv_protocol.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/CharacterProcess.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/CharacterProcess.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/CharacterProcess.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/CharacterProcess.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/Common/define.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/Common/define.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/CreateChr/CreateChr.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/CreateChr/CreateChr.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/CreateChr/CreateChr.h:
--------------------------------------------------------------------------------
1 | // LoginProcess.h: interface for the CCreateChrProcess class.
2 | //
3 | //////////////////////////////////////////////////////////////////////
4 |
5 | #ifndef _CREATE_CHR_H
6 | #define _CREATE_CHR_H
7 |
8 | #if _MSC_VER > 1000
9 | #pragma once
10 | #endif // _MSC_VER > 1000
11 |
12 | class CCreateChr : public CBMWnd
13 | {
14 | /////////////////////////////////////////////////////////////////////////////////////////
15 | // Functions
16 | public:
17 | CCreateChr();
18 | ~CCreateChr();
19 |
20 | virtual VOID Create(CWHWilImageData* pxImage);
21 |
22 | virtual HRESULT OnButtonDown(WPARAM wParam, LPARAM lParam);
23 | virtual HRESULT OnButtonDown(POINT ptMouse);
24 | virtual HRESULT OnButtonUp(WPARAM wParam, LPARAM lParam);
25 | virtual HRESULT OnButtonUp(POINT ptMouse);
26 | virtual HRESULT OnKeyDown(WPARAM wParam, LPARAM lParam);
27 | virtual LRESULT OnMouseMove(WPARAM wParam, LPARAM lParam);
28 |
29 | virtual VOID Render(INT nLoopTime);
30 | private:
31 | protected:
32 | /////////////////////////////////////////////////////////////////////////////////////////
33 | // Variable
34 | public:
35 | private:
36 | CMirButton m_xButtons[4];
37 | BOOL m_fIsButtonDown;
38 | protected:
39 | CWHWilImageData *m_pxImage;
40 | INT m_nSelectGender;
41 | INT m_nSelectJob;
42 | };
43 | #endif //_CREATE_CHR_H
44 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/SelectChr/SelectChr.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/CharSelectProcess/SelectChr/SelectChr.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/Button.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/Button.H
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/Button.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/Button.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/ChatEditBox.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/ChatEditBox.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/ChatEditBox.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/ChatEditBox.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/ClientSocket.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/ClientSocket.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/DLinkedList.cpp:
--------------------------------------------------------------------------------
1 | /******************************************************************************************************************
2 |
3 | DLinkedList.h: interface for the CDLList class.
4 |
5 | *******************************************************************************************************************/
6 |
7 | #include "stdafx.h"
8 |
9 |
10 | template
11 | CDLList::CDLList(CDLList& DLList)
12 | {
13 | for ( INT nLoops = 0; nLoopsData = DDList.Current();
17 | AddNode(tempT);
18 | }
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/DblList.cpp:
--------------------------------------------------------------------------------
1 | /******************************************************************************************************************
2 |
3 | DLinkedList.h: interface for the CPDLList class.
4 |
5 | *******************************************************************************************************************/
6 |
7 | #include "stdafx.h"
8 |
9 |
10 | template
11 | CPDLList::CPDLList(CPDLList& PDLList)
12 | {
13 | for ( INT nLoops = 0; nLoopsptypeData = DDList.Current();
17 | AddNode(tempT);
18 | }
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/DblList.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/DblList.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/ImageHandler.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/ImageHandler.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/ImageHandler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/ImageHandler.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox3D.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox3D.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox3D.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/MirMsgBox3D.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/MsgBox.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/MsgBox.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/NPCTxtAnalysis.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/NPCTxtAnalysis.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/NPCTxtAnalysis.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/NPCTxtAnalysis.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/NoticeBox.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/NoticeBox.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/NoticeBox.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/NoticeBox.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/Protocol.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/Protocol.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/Queue.h:
--------------------------------------------------------------------------------
1 | #define QUEUE_MAX 100
2 |
3 | class CWHQueue
4 | {
5 | protected:
6 | UINT m_btCount;
7 |
8 | UINT m_btQPushPos;
9 | UINT m_btQPopPos;
10 |
11 | BYTE *m_lpCircularQ[QUEUE_MAX];
12 |
13 | CRITICAL_SECTION m_cs;
14 |
15 | public:
16 | CWHQueue();
17 | ~CWHQueue();
18 |
19 | BOOL PushQ(BYTE *lpbtQ);
20 | BYTE *PopQ();
21 |
22 | __inline UINT GetCurPushPos() { return m_btQPushPos; }
23 | __inline UINT GetCurPopPos() { return m_btQPopPos; }
24 |
25 | __inline UINT GetCount() { return m_btCount; }
26 | };
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Common/Typedeftxt.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Common/Typedeftxt.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Define.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Define.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Extern.h:
--------------------------------------------------------------------------------
1 | #ifndef _EXTERN_H
2 | #define _EXTERN_H
3 |
4 | extern CWHDXGraphicWindow g_xMainWnd;
5 | extern CLoginProcess g_xLoginProc;
6 | extern CCharacterProcess g_xChrSelProc;
7 | extern CGameProcess g_xGameProc;
8 | extern CSprite g_xSpriteInfo;
9 | extern CChatEdit g_xChatEditBox;
10 | extern CClientSocket g_xClientSocket;
11 | extern CMirSound g_xSound;
12 |
13 | extern BYTE g_bProcState;
14 | extern INT g_nCertifyCode; // Global Certification Code
15 | extern char g_szUserID[20]; // Global User ID
16 | extern char g_szServerIP[16]; // Global Current Connection Server IP
17 | extern INT g_nServerPort; // Global Current Connection Server Port
18 | extern char g_szCharName[20]; // Global Charector Name
19 | extern INT g_nVersion; // Global Client Program Version Number
20 |
21 | #endif // _EXTERN_H
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GFun.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GFun.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Actor.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Actor.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Actor.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Actor.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ChatPopWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ChatPopWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ChatPopWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ChatPopWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ClientSysMsg.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ClientSysMsg.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ClientSysMsg.h:
--------------------------------------------------------------------------------
1 | #ifndef _CCLIENTMSG_H
2 | #define _CCLIENTMSG_H
3 |
4 |
5 | #define _MAX_SYSMSG 10
6 | typedef struct tagCONSTSTRING
7 | {
8 | CHAR szMsg[MAX_PATH];
9 | }CONSTSTRING, *LPCONSTSTRING;
10 |
11 | class ClientSysMsg
12 | {
13 | private:
14 | public:
15 | WORD m_wCurrDelay;
16 | CPDLList m_stSysMsg;
17 |
18 | ClientSysMsg();
19 | ~ClientSysMsg();
20 | VOID Init();
21 | VOID Destroy();
22 | VOID AddSysMsg(CHAR* szStr);
23 | VOID ShowSysMsg(INT nLoopTime, INT nX, INT nY);
24 | };
25 |
26 |
27 |
28 | #endif _CCLIENTMSG_H_
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ExchangeWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ExchangeWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ExchangeWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/ExchangeWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameBtn.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameBtn.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameBtn.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameBtn.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameProc.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameProc.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameProc.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameProc.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GameWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupPopWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupPopWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupPopWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupPopWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GroupWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildMasterWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildMasterWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildMasterWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildMasterWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/GuildWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/HorseWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/HorseWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/HorseWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/HorseWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Interface.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Interface.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Interface.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Interface.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/InventoryWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/InventoryWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/InventoryWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/InventoryWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Item.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Item.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/LightFog.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/LightFog.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/LightFog.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/LightFog.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Magic.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Magic.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Magic.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Magic.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/MapHandler.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/MapHandler.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/MapHandler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/MapHandler.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/NPCWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/NPCWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/NPCWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/NPCWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/OptionWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/OptionWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/OptionWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/OptionWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Particle.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Particle.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Particle.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Particle.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/PlayerChar.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/PlayerChar.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/PlayerChar.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/PlayerChar.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/QuestWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/QuestWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/QuestWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/QuestWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SprDfn.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SprDfn.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SprDfn.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SprDfn.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SpriteInfo.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SpriteInfo.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SpriteInfo.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/SpriteInfo.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StatusWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StatusWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StatusWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StatusWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StoreWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StoreWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StoreWnd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/StoreWnd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Water.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Water.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Water.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/Water.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/WeatherEffect.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/GameProcess/WeatherEffect.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Change Pwd/ChgPwd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Change Pwd/ChgPwd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Change Pwd/ChgPwd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Change Pwd/ChgPwd.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Common/BMWnd.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 | #define WND_WIDTH 640
4 | #define WND_HEIGHT 480
5 |
6 | CBMWnd::CBMWnd()
7 | {
8 | m_fIsActive = FALSE;
9 | m_fIsFocused = FALSE;
10 | SetRect(&m_rcWnd,0,0,0,0);
11 | }
12 |
13 | CBMWnd::~CBMWnd()
14 | {
15 |
16 | }
17 |
18 | VOID CBMWnd::OpenWnd(VOID)
19 | {
20 | m_fIsActive = TRUE;
21 | }
22 |
23 | VOID CBMWnd::CloseWnd(VOID)
24 | {
25 | m_fIsActive = FALSE;
26 | }
27 |
28 | HRESULT CBMWnd::OnButtonDown(WPARAM wParam, LPARAM lParam)
29 | {
30 | POINT ptMouse;
31 | ptMouse.x = LOWORD(lParam);
32 | ptMouse.y = HIWORD(lParam);
33 |
34 | return OnButtonDown(ptMouse);
35 | }
36 |
37 | HRESULT CBMWnd::OnButtonDown(POINT ptMouse)
38 | {
39 |
40 | return 0;
41 | }
42 |
43 | HRESULT CBMWnd::OnButtonUp(WPARAM wParam, LPARAM lParam)
44 | {
45 | POINT ptMouse;
46 | ptMouse.x = LOWORD(lParam);
47 | ptMouse.y = HIWORD(lParam);
48 |
49 | return OnButtonUp(ptMouse);
50 | }
51 |
52 | HRESULT CBMWnd::OnButtonUp(POINT ptMouse)
53 | {
54 | return 0;
55 | }
56 |
57 | HRESULT CBMWnd::OnKeyDown(WPARAM wParam, LPARAM lParam)
58 | {
59 | return 0;
60 | }
61 |
62 |
63 | LRESULT CBMWnd::OnMouseMove(WPARAM wParam, LPARAM lParam)
64 | {
65 | return 0;
66 | }
67 |
68 |
69 | VOID CBMWnd::Render(INT nLoopTime)
70 | {
71 | }
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Common/define.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Common/define.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Common/typedef.h:
--------------------------------------------------------------------------------
1 | #ifndef _LOGIN_TYPE_DEF
2 | #define _LOGIN_TYPE_DEF
3 |
4 |
5 | typedef struct tagServerList
6 | {
7 | char Caption[20];
8 | char Name[20];
9 | }ServerList,* PServerList;
10 |
11 | typedef struct tagIMAGEINFO
12 | {
13 | UINT nImgIdx;
14 | LONG Left;
15 | LONG Top;
16 | } _LOGINIMAGEINFO,* _PLOGINIMAGEINFO;
17 |
18 | typedef struct tagSERVERBUTTON
19 | {
20 | RECT rcBtn;
21 | CHAR szCaption[20];
22 | CHAR szName[20];
23 | COLORREF dwTxtColor;
24 | COLORREF dwBkColor;
25 | INT nAlpha;
26 | } _SERVERBUTTON,* _PSERVERBUTTON, **_PPSERVERBUTTON;
27 |
28 | typedef struct tagINPUTSTATE
29 | {
30 | UINT nID;
31 | LONG Left;
32 | LONG Top;
33 | LONG Width;
34 | LONG Height;
35 | INT nHelptxt;
36 | INT nSize;
37 | CHAR szData[MAX_PATH];
38 | } INPUTSTATE;
39 |
40 |
41 | #endif // _LOGIN_TYPE_DEF
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Intro/LoginAvi.h:
--------------------------------------------------------------------------------
1 | // LoginProcess.h: interface for the CLoginProcess class.
2 | //
3 | //////////////////////////////////////////////////////////////////////
4 |
5 | #ifndef _LOGIN_AVI_H
6 | #define _LOGIN_AVI_H
7 |
8 | #if _MSC_VER > 1000
9 | #pragma once
10 | #endif // _MSC_VER > 1000
11 |
12 | class CLoginAvi : public CBMWnd
13 | {
14 | /////////////////////////////////////////////////////////////////////////////////////////
15 | // Functions
16 | public:
17 | CLoginAvi();
18 | ~CLoginAvi();
19 |
20 | VOID SetRenderAviState(INT nState);
21 |
22 | virtual VOID Create(CWHWilImageData* pxImage);
23 |
24 | VOID StopAllAvis(VOID);
25 |
26 | virtual HRESULT OnButtonDown(WPARAM wParam, LPARAM lParam);
27 | virtual HRESULT OnButtonDown(POINT ptMouse);
28 | virtual HRESULT OnButtonUp(WPARAM wParam, LPARAM lParam);
29 | virtual HRESULT OnButtonUp(POINT ptMouse);
30 | virtual LRESULT OnMouseMove(WPARAM wParam, LPARAM lParam);
31 |
32 | virtual VOID Render(INT nLoopTime);
33 | private:
34 | protected:
35 | VOID SetFocusBefore(VOID);
36 | VOID SetFocusAfter(VOID);
37 | /////////////////////////////////////////////////////////////////////////////////////////
38 | // Variable
39 | public:
40 | private:
41 | INT m_nRenderAviState;
42 | protected:
43 | CWHWilImageData *m_pxImage;
44 | CAvi m_xAvi;
45 | CAvi m_xLogoAvi;
46 | RECT m_rcSrc;
47 | };
48 | #endif //_LOGIN_AVI_H
49 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Login/Login.h:
--------------------------------------------------------------------------------
1 | // LoginProcess.h: interface for the CLoginProcess class.
2 | //
3 | //////////////////////////////////////////////////////////////////////
4 |
5 | #ifndef _LOGIN_H
6 | #define _LOGIN_H
7 |
8 | #if _MSC_VER > 1000
9 | #pragma once
10 | #endif // _MSC_VER > 1000
11 |
12 | class CLogin : public CBMWnd
13 | {
14 | /////////////////////////////////////////////////////////////////////////////////////////
15 | // Functions
16 | public:
17 | CLogin();
18 | ~CLogin();
19 |
20 | virtual VOID Create(CWHWilImageData* pxImage);
21 |
22 | virtual HRESULT OnButtonDown(WPARAM wParam, LPARAM lParam);
23 | virtual HRESULT OnButtonDown(POINT ptMouse);
24 | virtual HRESULT OnButtonUp(WPARAM wParam, LPARAM lParam);
25 | virtual HRESULT OnButtonUp(POINT ptMouse);
26 | virtual HRESULT OnKeyDown(WPARAM wParam, LPARAM lParam);
27 | virtual LRESULT OnMouseMove(WPARAM wParam, LPARAM lParam);
28 | virtual VOID Render(INT nLoopTime);
29 | private:
30 | protected:
31 | VOID SetFocusBefore(VOID);
32 | VOID SetFocusAfter(VOID);
33 | /////////////////////////////////////////////////////////////////////////////////////////
34 | // Variable
35 | public:
36 | private:
37 | INPUTSTATE m_xInputState[2];
38 | CMirButton m_xButtons[4];
39 | INT m_nUserState;
40 | BOOL m_fIsButtonDown;
41 | protected:
42 | CWHWilImageData *m_pxImage;
43 | CMirButton *m_pBtn;
44 | BOOL m_fShowIDPASS;
45 | };
46 | #endif //_LOGIN_H
47 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/LoginProcess.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/LoginProcess.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/LoginProcess.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/LoginProcess.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/New Account/NewAccount.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/New Account/NewAccount.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/New Account/NewAccount.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/New Account/NewAccount.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Patch.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Patch.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Select Srv/SelectSrv.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Select Srv/SelectSrv.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/LoginProcess/Select Srv/SelectSrv.h:
--------------------------------------------------------------------------------
1 | // LoginProcess.h: interface for the CLoginProcess class.
2 | //
3 | //////////////////////////////////////////////////////////////////////
4 |
5 | #ifndef _SELECT_SERVER_H
6 | #define _SELECT_SERVER_H
7 |
8 | #if _MSC_VER > 1000
9 | #pragma once
10 | #endif // _MSC_VER > 1000
11 |
12 | class CSelectSrv : public CBMWnd
13 | {
14 | /////////////////////////////////////////////////////////////////////////////////////////
15 | // Functions
16 | public:
17 | CSelectSrv();
18 | ~CSelectSrv();
19 |
20 | virtual VOID Create(CWHWilImageData* pxImage,CPDLList* pxSList);
21 |
22 | virtual HRESULT OnButtonDown(WPARAM wParam, LPARAM lParam);
23 | virtual HRESULT OnButtonDown(POINT ptMouse);
24 | virtual HRESULT OnButtonUp(WPARAM wParam, LPARAM lParam);
25 | virtual HRESULT OnButtonUp(POINT ptMouse);
26 | virtual HRESULT OnKeyDown(WPARAM wParam, LPARAM lParam);
27 | virtual LRESULT OnMouseMove(WPARAM wParam, LPARAM lParam);
28 |
29 | virtual VOID Render(INT nLoopTime);
30 | VOID Draw3DBorder(RECT rcWnd, COLORREF dwColor, INT nAlpha);
31 | private:
32 | protected:
33 | /////////////////////////////////////////////////////////////////////////////////////////
34 | // Variable
35 | public:
36 | private:
37 | BOOL m_fIsButtonDown;
38 | protected:
39 | CWHWilImageData *m_pxImage;
40 | _PPSERVERBUTTON m_ppxSrvBtn;
41 | INT m_nSrvCount;
42 | D3DVERTEX m_avBillBoard[4];
43 | };
44 | #endif //_SELECT_SERVER_H
45 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ei.ini:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ei.ini
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.ICO
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "Mir2Ex"=.\Mir2Ex.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | begin source code control
11 | "$/Mir2Ex", BAAAAAAA
12 | .
13 | end source code control
14 | }}}
15 |
16 | Package=<4>
17 | {{{
18 | Begin Project Dependency
19 | Project_Dep_Name WindHorn
20 | End Project Dependency
21 | }}}
22 |
23 | ###############################################################################
24 |
25 | Project: "WindHorn"=.\WindHorn\WindHorn.dsp - Package Owner=<4>
26 |
27 | Package=<5>
28 | {{{
29 | }}}
30 |
31 | Package=<4>
32 | {{{
33 | }}}
34 |
35 | ###############################################################################
36 |
37 | Global:
38 |
39 | Package=<5>
40 | {{{
41 | begin source code control
42 | "$/Mir2Ex", BAAAAAAA
43 | .
44 | end source code control
45 | }}}
46 |
47 | Package=<3>
48 | {{{
49 | }}}
50 |
51 | ###############################################################################
52 |
53 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.positions:
--------------------------------------------------------------------------------
1 | WndTabs Tab Positions File33C@ Workspace C:\...\GameProc.cpp C:\...\GameProcess\GroupWnd.h C:\...\GameProcess\NPCWnd.h Output C:\...\GroupWnd.cpp C:\...\GameProcess\NPCWnd.cpp Define.h C:\...\Common\ClientSocket.h C:\...\Common\ClientSocket.cpp C:\...\GuildWnd.cpp
2 | C:\...\Interface.cpp
3 | C:\...\GameProcess\Actor.cpp C:\...\GameProcess\Actor.h C:\...\StatusWnd.cpp C:\...\GameProcess\GameBtn.cpp C:\...\GameProcess\Interface.h C:\...\GuildMasterWnd.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Mir2Ex.suo
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Patch.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Patch.lst
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | WIN32 APPLICATION : Mir2Ex
3 | ========================================================================
4 |
5 |
6 | AppWizard has created this Mir2Ex application for you.
7 |
8 | This file contains a summary of what you will find in each of the files that
9 | make up your Mir2Ex application.
10 |
11 | Mir2Ex.cpp
12 | This is the main application source file.
13 |
14 | Mir2Ex.dsp
15 | This file (the project file) contains information at the project level and
16 | is used to build a single project or subproject. Other users can share the
17 | project (.dsp) file, but they should export the makefiles locally.
18 |
19 |
20 | /////////////////////////////////////////////////////////////////////////////
21 | Other standard files:
22 |
23 | StdAfx.h, StdAfx.cpp
24 | These files are used to build a precompiled header (PCH) file
25 | named Mir2Ex.pch and a precompiled types file named StdAfx.obj.
26 |
27 |
28 | /////////////////////////////////////////////////////////////////////////////
29 | Other notes:
30 |
31 | AppWizard uses "TODO:" to indicate parts of the source code you
32 | should add to or customize.
33 |
34 |
35 | /////////////////////////////////////////////////////////////////////////////
36 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Resource.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Resource.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/ServerSelectProcess/SvrSelProc.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/ServerSelectProcess/SvrSelProc.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/ServerSelectProcess/SvrSelProc.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/ServerSelectProcess/SvrSelProc.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Sound/BMMP3.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Sound/BMMP3.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Sound/MirSound.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Sound/MirSound.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Sound/MirSound.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Sound/MirSound.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Sound/SBuffer.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/Sound/SBuffer.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/Sound/TypeDef.h:
--------------------------------------------------------------------------------
1 | #if !defined _TYPEDEF_H
2 | #define _TYPEDEF_H
3 |
4 |
5 | #define MAX_DUPLE_COUNT 5
6 | #define ID_TIMER_1 101
7 | #define ID_AMBIANCE_TIMER 102
8 |
9 | #define WM_USER_ENDTIMER WM_USER+100
10 | #define WM_DSHOW_NOTIFY WM_APP + 500
11 |
12 | #define DELETEARRAY(x) if(x != NULL) { delete [] x; x = NULL; }
13 |
14 | typedef struct
15 | {
16 | int x;
17 | int y;
18 | } Position;
19 |
20 |
21 | #pragma pack(1)
22 |
23 | typedef struct
24 | {
25 | signed short int ID; // 2 bytes
26 | char Des[14]; // 14 bytes
27 | } WAVELIST; // 16 bytes
28 |
29 |
30 | typedef struct
31 | {
32 | char Title[40]; // 40 bytes
33 | char TargetDir[10]; // 10 bytes
34 | unsigned int FieldCount; // 4 bytes
35 | unsigned int ListCount; // 4 bytes
36 | } WAVELISTHEADER; // 58 bytes
37 |
38 | #pragma pack(8)
39 |
40 |
41 |
42 |
43 | #endif //_TYPEDEF_H
44 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // Mir2Ex.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "StdAfx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/StdAfx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/StdAfx.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/D3DCommon/d3dutil.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/D3DCommon/d3dutil.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/D3DCommon/ddutil.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/D3DCommon/ddutil.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/Readme.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | STATIC LIBRARY : WindHorn
3 | ========================================================================
4 |
5 |
6 | AppWizard has created this WindHorn library for you.
7 |
8 | This file contains a summary of what you will find in each of the files that
9 | make up your WindHorn application.
10 |
11 | /////////////////////////////////////////////////////////////////////////////
12 |
13 | StdAfx.h, StdAfx.cpp
14 | These files are used to build a precompiled header (PCH) file
15 | named WindHorn.pch and a precompiled types file named StdAfx.obj.
16 |
17 | /////////////////////////////////////////////////////////////////////////////
18 | Other notes:
19 |
20 | AppWizard uses "TODO:" to indicate parts of the source code you
21 | should add to or customize.
22 |
23 |
24 | /////////////////////////////////////////////////////////////////////////////
25 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/RegHandler.h:
--------------------------------------------------------------------------------
1 | // ****************************************************************************
2 | //
3 | // Registry Handler
4 | //
5 | // All written by Jeong, Euy-heon
6 | // Copyright(C) 1997, 1998 Euy-heon, Jeong. All right reserved.
7 | //
8 | // ****************************************************************************
9 |
10 | #include "stdafx.h"
11 |
12 |
13 |
14 | BOOL jRegSetKey(LPCTSTR pSubKeyName, LPCTSTR pValueName, DWORD dwFlags,
15 | LPBYTE pValue, DWORD nValueSize);
16 | BOOL jRegGetKey(LPCTSTR pSubKeyName, LPCTSTR pValueName, LPBYTE pValue);
17 | LONG jRegEnumKey(LPCTSTR pSubKeyName, int nIndex, LPTSTR lpSubKey, int nSubkeyLen);
18 |
19 | /*
20 | #define _LOGINGATE_SERVER_REGISTRY _T("Software\\LegendOfMir\\LoginGate")
21 | jRegGetKey(_LOGINGATE_SERVER_REGISTRY, _T("RemoteIP"), (LPBYTE)&dwIP);
22 | jRegSetKey(_LOGINGATE_SERVER_REGISTRY, _T("RemoteIP"), REG_DWORD, (LPBYTE)&dwIP, sizeof(DWORD));
23 | */
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/Resource.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/Resource.aps
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // WindHorn.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "StdAfx.h"
6 |
7 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/StdAfx.h:
--------------------------------------------------------------------------------
1 | // stdafx.h : include file for standard system include files,
2 | // or project specific include files that are used frequently, but
3 | // are changed infrequently
4 | //
5 |
6 | #if !defined(AFX_STDAFX_H__C1D724BB_6CC6_4243_A0B1_087152F91AAC__INCLUDED_)
7 | #define AFX_STDAFX_H__C1D724BB_6CC6_4243_A0B1_087152F91AAC__INCLUDED_
8 |
9 | #if _MSC_VER > 1000
10 | #pragma once
11 | #endif // _MSC_VER > 1000
12 |
13 | //#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
14 |
15 | #include "WHEngine.h"
16 |
17 | //{{AFX_INSERT_LOCATION}}
18 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
19 |
20 | #endif // !defined(AFX_STDAFX_H__C1D724BB_6CC6_4243_A0B1_087152F91AAC__INCLUDED_)
21 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WH3DInit.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WH3DInit.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WH3DInit.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WH3DInit.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHDXGraphic.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHDXGraphic.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHDXGraphic.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHDXGraphic.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHDefProcess.h:
--------------------------------------------------------------------------------
1 | /******************************************************************************************************************
2 |
3 | CWHDXGraphicWindow Class Declaration
4 |
5 | *******************************************************************************************************************/
6 |
7 |
8 | #ifndef _WINDHORN_DEFPROCESS
9 | #define _WINDHORN_DEFPROCESS
10 |
11 |
12 | class CWHDefProcess
13 | {
14 | public:
15 | CWHDefProcess();
16 | ~CWHDefProcess();
17 |
18 | VOID* m_pxDXGWnd;
19 |
20 | HRESULT Clear(DWORD dwColor);
21 |
22 | virtual VOID OnConnectToServer() = 0;
23 | virtual char* OnMessageReceive(CHAR* pszPacketMsg) = 0;
24 | virtual VOID ShowStatus(INT nStartX, INT nStartY);
25 |
26 | //Default Message Process
27 | virtual LRESULT DefMainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
28 | };
29 |
30 |
31 | #endif //_WINDHORN_DEFPROCESS
32 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHImage.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHImage.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHImage.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHImage.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHSurface.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHSurface.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHSurface.h:
--------------------------------------------------------------------------------
1 | #ifndef _WINDHORN_SURFACE
2 | #define _WINDHORN_SURFACE
3 |
4 |
5 | class CWHSurface
6 | {
7 | protected:
8 | LPDIRECTDRAWSURFACE7 m_pDDS;
9 |
10 | public:
11 | __inline CWHSurface() { m_pDDS = NULL; }
12 | __inline CWHSurface(LPDIRECTDRAW7 pDD, DWORD dwXSize, DWORD dwYSize) { CreateOffScreenSurface(pDD, dwXSize, dwYSize); }
13 | __inline ~CWHSurface() { ReleaseSurface(); }
14 |
15 | public:
16 | BOOL CreateOffScreenSurface(LPDIRECTDRAW7 pDD, DWORD dwXSize, DWORD dwYSize);
17 | BOOL CopyImageToSurface(DWORD dwSrcWidth, DWORD dwSrcHeight, WORD* pwSrc);
18 | BOOL ReleaseSurface();
19 |
20 | __inline LPDIRECTDRAWSURFACE7 GetSurface() { return m_pDDS; }
21 | __inline BOOL CopyImageToSurface(CWHImage* xImage) { return CopyImageToSurface(xImage->m_wWidth, xImage->m_wHeight, xImage->m_pwImage); }
22 | };
23 |
24 |
25 |
26 | #endif //_WINDHORN_SURFACE
27 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilImage.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilImage.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilImage.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilImage.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilTexture.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilTexture.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilTexture.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWilTexture.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWindow.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WHWindow.cpp
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WindHorn.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "EngineTest"=.\EngineTest\EngineTest.dsp - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | Begin Project Dependency
15 | Project_Dep_Name WindHorn
16 | End Project Dependency
17 | }}}
18 |
19 | ###############################################################################
20 |
21 | Project: "WindHorn"=.\WindHorn.dsp - Package Owner=<4>
22 |
23 | Package=<5>
24 | {{{
25 | }}}
26 |
27 | Package=<4>
28 | {{{
29 | }}}
30 |
31 | ###############################################################################
32 |
33 | Global:
34 |
35 | Package=<5>
36 | {{{
37 | }}}
38 |
39 | Package=<3>
40 | {{{
41 | }}}
42 |
43 | ###############################################################################
44 |
45 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WindHorn.ncb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WindHorn.ncb
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WindHorn.opt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WindHorn.opt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WindHorn.plg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Build Log
5 |
6 | --------------------Configuration: WindHorn - Win32 Debug--------------------
7 |
8 | Command Lines
9 |
10 |
11 |
12 | Results
13 | WindHorn.lib - 0 error(s), 0 warning(s)
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/WindHorn/WindHorn.positions:
--------------------------------------------------------------------------------
1 | WndTabs Tab Positions File @@ Workspace Output
WHDXGraphic.h WHDXGraphic.cpp WHImage.h WHImage.cpp D:\...\EngineTest.cpp WHSurface.h
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/bin/Patch.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/bin/Patch.lst
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/harrow.cur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/harrow.cur
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Developer Studio generated include file.
3 | // Used by Resource.rc
4 | //
5 | #define IDI_ICON 102
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 128
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1002
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/LegendOfMir3_src/LegendOfMir3_clint/vssver.scc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LegendOfMir3_clint/vssver.scc
--------------------------------------------------------------------------------
/LegendOfMir3_src/LoginGate服务器.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LoginGate服务器.txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/LoginSvr服务器.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/LoginSvr服务器.txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/SelGate服务器.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/SelGate服务器.txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析一) .txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析一) .txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析三) .txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析三) .txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析二) .txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析二) .txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析五 服务器端响应) .txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析五 服务器端响应) .txt
--------------------------------------------------------------------------------
/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析四) .txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zh423328/learnserver/5217a44634932728c5c64278b3f964b37bc34953/LegendOfMir3_src/传奇源码分析-客户端(游戏逻辑处理源分析四) .txt
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # learnserver
2 | 服务器学习
3 |
--------------------------------------------------------------------------------