- Joined
- Jun 24, 2011
- Messages
- 263
- Reaction score
- 75
I know i tried this ingame, leave a comment if this works Thanks...
s_NetGlobal.h
GLCharDefine.h
GLogixExPC.cpp
GLCharacter.h
GLCharacterMsg.cpp
GLCharactorReq.cpp
GLGaeaClient.cpp
GLGaeaServerMsg.cpp
GLChar.h
GLCharMsg.cpp
GLCharMsg.cpp
GLContrlPCMsg.h
DxGlobalStage.cpp
Last
Dxincommand.cpp
Note: place this below(i think)
GLogicEx.h
s_NetGlobal.h
Code:
//Get Money by NjD
NET_MSG_GCTRL_REQ_MONEY = (NET_MSG_GCTRL + 1619),
NET_MSG_GCTRL_REQ_MONEY_FB = (NET_MSG_GCTRL + 1620),
GLCharDefine.h
Code:
enum EMMONEY_TYPE //Get Money by NjD
{
EMMONEY_NONE = 0,
EMMONEY_GOLD = 1,
EMMONEY_VOTEP = 2,
EMMONEY_PREMP = 3,
EMMONEY_SIZE = 4
};
GLogixExPC.cpp
Code:
void GLCHARLOGIC::REQ_MONEY ( EMMONEY_TYPE emType, DWORD dwValue ) //Get Money by NjD
{
switch ( emType )
{
case EMMONEY_GOLD:
{
m_lnMoney += dwValue;
}
break;
case EMMONEY_VOTEP:
{
m_lnVoteP += dwValue;
}
break;
case EMMONEY_PREMP:
{
m_lnPremP += dwValue;
}
break;
};
INIT_DATA(FALSE, FALSE);
}
GLCharacter.h
Code:
void ReqMoney ( EMMONEY_TYPE emType, DWORD dwValue ); //Get Money by NjD
GLCharacterMsg.cpp
Code:
case NET_MSG_GCTRL_REQ_MONEY_FB: //Get Money by NjD
{
GLMSG::SNETPC_REQ_MONEY_FB *pNetMsg = (GLMSG::SNETPC_REQ_MONEY_FB *)nmg;
REQ_MONEY(pNetMsg->emType, pNetMsg->dwValue);
}
break;
GLCharactorReq.cpp
Code:
void GLCharacter::ReqMoney ( EMMONEY_TYPE emType, DWORD dwValue ) //Get Money by NjD
{
GLMSG::SNETPC_REQ_MONEY NetMsg;
NetMsg.emType = emType;
NetMsg.dwValue = dwValue;
NETSENDTOFIELD ( &NetMsg );
}
GLGaeaClient.cpp
Code:
case NET_MSG_GCTRL_REQ_MONEY_FB: //Get Money by NjD
GLGaeaServerMsg.cpp
Code:
case NET_MSG_GCTRL_REQ_MONEY: //Get Money by NjD
GLChar.h
Code:
HRESULT MsgReqMoney ( NET_MSG_GENERIC* nmg ); //Get Money by NjD
GLCharMsg.cpp
Code:
inline HRESULT GLChar::MsgReqMoney ( NET_MSG_GENERIC* nmg ) //Get Money by NjD
{
// i don't think if this works...
// if ( m_dwUserLvl < USER_GM3 ) return S_FALSE;
GLMSG::SNETPC_REQ_MONEY *pNetMsg = (GLMSG::SNETPC_REQ_MONEY *) nmg;
REQ_MONEY(pNetMsg->emType, pNetMsg->dwValue);
GLMSG::SNETPC_REQ_MONEY_FB NetMsg;
NetMsg.emType = pNetMsg->emType;
NetMsg.dwValue = pNetMsg->dwValue;
GLGaeaServer::GetInstance().SENDTOCLIENT(m_dwClientID,&NetMsg);
MsgSendUpdateState();
return S_OK;
}
GLCharMsg.cpp
Code:
case NET_MSG_GCTRL_REQ_MONEY: MsgReqMoney(nmg); break; //Get Money by NjD
GLContrlPCMsg.h
Code:
struct SNETPC_REQ_MONEY //Get Money by NjD
{
NET_MSG_GENERIC nmg;
EMMONEY_TYPE emType;
DWORD dwValue;
SNETPC_REQ_MONEY () :
emType(EMMONEY_NONE),
dwValue(0)
{
nmg.dwSize = sizeof(*this);
nmg.nType = NET_MSG_GCTRL_REQ_MONEY;
}
};
struct SNETPC_REQ_MONEY_FB //Get Money by NjD
{
NET_MSG_GENERIC nmg;
EMMONEY_TYPE emType;
DWORD dwValue;
SNETPC_REQ_MONEY_FB () :
emType(EMMONEY_NONE),
dwValue(0)
{
nmg.dwSize = sizeof(*this);
nmg.nType = NET_MSG_GCTRL_REQ_MONEY_FB;
}
};
DxGlobalStage.cpp
Code:
case NET_MSG_GCTRL_REQ_MONEY_FB: //Get Money by NjD
Last
Dxincommand.cpp
Note: place this below(i think)
Code:
DWORD dwUSERLVL = GLGaeaClient::GetInstance().GetCharacter()->m_dwUserLvl;
if ( dwUSERLVL < USER_SPECIAL ) return true;
Code:
if( strCOMMAND =="/gold") //Get Money by NjD
{
if(strArray.GetSize() != 3) return true;
CString strPARAM_01 = strArray.GetAt(1);
CString strPARAM_02 = strArray.GetAt(2);
DWORD value = ( DWORD ) atoi( strPARAM_01.GetString() );
DWORD value1 = ( DWORD ) atoi( strPARAM_02.GetString() );
if ( value > 3 ) return false;
EMMONEY_TYPE emType;
CString strType;
if ( value == 1 )
{
emType = EMMONEY_GOLD;
strType = "Successfully Inserted Gold.";
}
else if ( value == 2 )
{
emType = EMMONEY_VOTEP;
strType = "Successfully Inserted Vote Points.";
}
else if ( value == 3 )
{
emType = EMMONEY_PREMP;
strType = "Successfully Inserted Premium Points.";
}
GLGaeaClient::GetInstance().GetCharacter()->ReqMoney( emType, value1 );
return true;
}
No screenshots, sorry :v
GLogicEx.h
Code:
void REQ_MONEY ( EMMONEY_TYPE emType, DWORD dwValue );
Last edited: