Get Gold / Vote P / Premium P Command

Results 1 to 12 of 12
  1. #1
    The Descendant janmaru5555 is offline
    MemberRank
    Jun 2011 Join Date
    MarketPlaceLocation
    264Posts

    Get Gold / Vote P / Premium P Command

    I know i tried this ingame, leave a comment if this works :) Thanks...

    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) O.o
    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 by janmaru5555; 08-06-15 at 02:08 PM. Reason: Adding incomplete codes


  2. #2
    Enthusiast zirk is offline
    MemberRank
    Mar 2013 Join Date
    39Posts

    Re: Get Gold / Vote P / Premium P Command

    Nice Share.. One Question Is This Only For GM Command? Thanks

  3. #3
    Account Upgraded | Title Enabled! tobets2000 is offline
    MemberRank
    Sep 2007 Join Date
    East BlueLocation
    256Posts

    Re: Get Gold / Vote P / Premium P Command

    Quote Originally Posted by zirk View Post
    Nice Share.. One Question Is This Only For GM Command? Thanks
    if ( dwUSERLVL < USER_SPECIAL ) return true;

    this answers your question.

  4. #4
    The Descendant janmaru5555 is offline
    MemberRank
    Jun 2011 Join Date
    MarketPlaceLocation
    264Posts

    Re: Get Gold / Vote P / Premium P Command

    It's already in GLCharMsg.cpp i dont know if that will work :)

  5. #5
    Valued Member ashaya101 is offline
    MemberRank
    May 2013 Join Date
    Phoenix CampusLocation
    108Posts

    Re: Get Gold / Vote P / Premium P Command

    any feedback on this? too lazy to try sarry :3

  6. #6
    Ainsworth Quiirex is offline
    MemberRank
    Dec 2011 Join Date
    127.0.0.1Location
    485Posts

    Re: Get Gold / Vote P / Premium P Command

    Hmm , this is working.. Just seing the codes , nice share TS .. /gold 2,9999 = This gives WP/VP , then /gold 3,999 = this gives PP

  7. #7
    Apprentice RanGrap is offline
    MemberRank
    May 2015 Join Date
    20Posts

    Re: Get Gold / Vote P / Premium P Command

    help me !!
    aae.png
    Attached Thumbnails Attached Thumbnails aae.png  

  8. #8
    The Descendant janmaru5555 is offline
    MemberRank
    Jun 2011 Join Date
    MarketPlaceLocation
    264Posts

    Re: Get Gold / Vote P / Premium P Command

    Quote Originally Posted by RanGrap View Post
    help me !!
    aae.png
    first post updated sir try it

  9. #9
    Kayo na! ANg galing nyo e chumleader is offline
    MemberRank
    May 2014 Join Date
    wwwLocation
    353Posts

    Re: Get Gold / Vote P / Premium P Command

    Cant make this work
    I built this Successfully but the command doesnt WOrk
    what i experience is...
    like im typing a non-existent command
    it doesnt show anything
    even an error message
    .
    this is all the command i tried
    /gold 1 9999
    /gold 1,9999 <- like Quiirex COmmented
    .
    I hope this thread will be updated

  10. #10
    Apprentice RanGrap is offline
    MemberRank
    May 2015 Join Date
    20Posts

    Re: Get Gold / Vote P / Premium P Command

    /gold 1,999 gold
    /gold 2,999 war point
    /gold 3,999 pre point

  11. #11
    Kayo na! ANg galing nyo e chumleader is offline
    MemberRank
    May 2014 Join Date
    wwwLocation
    353Posts

    Re: Get Gold / Vote P / Premium P Command

    Still nothing happens

  12. #12
    Novice xywiz is offline
    MemberRank
    Nov 2019 Join Date
    1Posts

    Re: Get Gold / Vote P / Premium P Command

    all this is shitss



Advertisement