How to add some extra function on Source Code (Newbie Coder)

Page 3 of 22 FirstFirst 123456789101113 ... LastLast
Results 31 to 45 of 328
  1. #31
    Enthusiast sceon is offline
    MemberRank
    Oct 2011 Join Date
    44Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Share New Color

    +16 >>> +20



    DxEffCharLevel.cpp
    Code:
    //Level : 12 (+16)
    	dwColorG = D3DCOLOR_ARGB( 200,150,100,30 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 78, 50, 5 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 128,90,0 );	// ฑื ฟ 
    
    	m_OpLEVEL[12].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[12].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[12].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[12].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[12].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[12].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[12].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[12].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[12].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[12].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[12].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[12].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 13 (+17)
    	dwColorG = D3DCOLOR_ARGB( 200,150,150,150 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 50, 50, 50 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 130,130,130 );	// ฑื ฟ 
    
    	m_OpLEVEL[13].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[13].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[13].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[13].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[13].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[13].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[13].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[13].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[13].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[13].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[13].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[13].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 14 (+18)
    	dwColorG = D3DCOLOR_ARGB( 200,100,50,50 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 50, 20, 20 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 150,60,60 );	// ฑื ฟ 
    
    	m_OpLEVEL[14].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[14].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[14].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[14].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[14].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[14].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[14].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[14].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[14].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[14].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[14].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[14].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 15 (+19)
    	dwColorG = D3DCOLOR_ARGB( 200,0,100,80 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 0, 50, 10 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 0,80,50 );	// ฑื ฟ 
    
    	m_OpLEVEL[15].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[15].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[15].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[15].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[15].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[15].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[15].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[15].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[15].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[15].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[15].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[15].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 16 (+20)
    	dwColorG = D3DCOLOR_ARGB( 200,70,50,150 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 40, 30, 80 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 60,40,130 );	// ฑื ฟ 
    
    	m_OpLEVEL[16].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[16].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[16].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[16].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[16].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[16].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[16].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[16].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[16].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[16].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[16].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[16].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );
    DxEffCharLevel.h

    Code:
    	enum
    	{
    		LEVEL_LIMIT = 16,	//5,
    		LEVEL_ARRAY = 17,	//6,	// LEVEL_LIMIT+1
    	};
    
    	DXOPTION			m_OpLEVEL [ LEVEL_ARRAY ];	// ฑโบป 0 LEVEL 1~5 ฑ๎ม๖
    GlogicData.cpp
    Code:
    	float		fDAMAGE_GRADE_TOP[GRADE_LIMIT_MAX-GRADE_HIGH]	=
    	{
    		1.0f, 1.0f, 1.0f, 1.0f,	1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f // << Add
    	};
    
    	float		fDEFENSE_GRADE_TOP[GRADE_LIMIT_MAX-GRADE_HIGH]	=
    	{
    		1.0f, 1.0f, 1.0f, 1.0f,	1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f // << Add
    	};
    
    	WORD		wUSE_GRADE_NUM[GRADE_LIMIT_MAX-GRADE_HIGH]	=
    	{
    		1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
    	};
    GLogicData.h
    Code:
    	GRADE_NORMAL		= 4,
    	GRADE_HIGH			= 9,
    	GRADE_LIMIT_MAX		= 20, // change 15 to >>20
    Full Code New Color
    newcolor.rar
    Attached Thumbnails Attached Thumbnails 20.jpg  
    Last edited by sceon; 29-02-12 at 03:52 AM.

  2. #32
    Member Marckie is offline
    MemberRank
    Feb 2012 Join Date
    Visual C++Location
    96Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Here's my share good luck guys :)

    RanClientLib\G-Logic\GLFriendClient.cpp

    Online Notification
    Offline Notification

    void GLFriendClient::MsgReqFriendState ( NET_MSG_GENERIC* nmg )
    {
    GLMSG::SNETPC_REQ_FRIENDSTATE *pNetMsg = (GLMSG::SNETPC_REQ_FRIENDSTATE *) nmg;

    FRIENDMAP_ITER iter = m_mapFriend.find ( pNetMsg->szCHAR );
    if ( iter!=m_mapFriend.end() )
    {
    SFRIEND &sFRIEND = (*iter).second;
    sFRIEND.nCharFlag = pNetMsg->nChaFlag;

    sFRIEND.bONLINE = pNetMsg->bONLINE;
    sFRIEND.nCHANNEL = pNetMsg->nCHANNEL;

    if( sFRIEND.bONLINE )
    {
    CInnerInterface::GetInstance().PrintMsgText(
    NS_UITEXTCOLOR::GREENYELLOW,
    ID2GAMEINTEXT( "FRIEND_ONLINE" ),
    pNetMsg->szCHAR );
    }
    else
    {
    CInnerInterface::GetInstance().PrintMsgText(
    NS_UITEXTCOLOR::DISABLE,
    ID2GAMEINTEXT( "FRIEND_OFFLINE" ),
    pNetMsg->szCHAR );
    }

    // Note : ÀÎÅÍÆäÀ̽º¿¡ »óÅ º¯°æ ¾Ë¸².
    CInnerInterface::GetInstance().REFRESH_FRIEND_STATE();
    CInnerInterface::GetInstance().FRIEND_LIST( sFRIEND.szCharName, sFRIEND.bONLINE );
    }
    }
    Last edited by Marckie; 29-02-12 at 03:55 AM.

  3. #33
    Banned zentrixph is offline
    BannedRank
    May 2011 Join Date
    67Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Quote Originally Posted by sceon View Post
    Share New Color

    +16 >>> +20



    DxEffCharLevel.cpp
    Code:
    //Level : 12 (+16)
    	dwColorG = D3DCOLOR_ARGB( 200,150,100,30 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 78, 50, 5 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 128,90,0 );	// ฑื ฟ 
    
    	m_OpLEVEL[12].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[12].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[12].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[12].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[12].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[12].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[12].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[12].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[12].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[12].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[12].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[12].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 13 (+17)
    	dwColorG = D3DCOLOR_ARGB( 200,150,150,150 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 50, 50, 50 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 130,130,130 );	// ฑื ฟ 
    
    	m_OpLEVEL[13].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[13].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[13].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[13].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[13].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[13].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[13].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[13].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[13].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[13].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[13].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[13].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 14 (+18)
    	dwColorG = D3DCOLOR_ARGB( 200,100,50,50 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 50, 20, 20 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 150,60,60 );	// ฑื ฟ 
    
    	m_OpLEVEL[14].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[14].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[14].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[14].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[14].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[14].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[14].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[14].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[14].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[14].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[14].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[14].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 15 (+19)
    	dwColorG = D3DCOLOR_ARGB( 200,0,100,80 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 0, 50, 10 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 0,80,50 );	// ฑื ฟ 
    
    	m_OpLEVEL[15].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[15].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[15].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[15].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[15].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[15].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[15].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[15].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[15].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[15].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[15].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[15].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );	
    
    //Level : 16 (+20)
    	dwColorG = D3DCOLOR_ARGB( 200,70,50,150 );	// ฑทฮฟ์ ฟ๋
    	dwColorA = D3DCOLOR_ARGB( 255, 40, 30, 80 );	// Ambient
    	dwColorR = D3DCOLOR_ARGB( 255, 60,40,130 );	// ฑื ฟ 
    
    	m_OpLEVEL[16].m_Ambient.m_bUse			= TRUE;
    	m_OpLEVEL[16].m_Ambient.m_fBaseColor		= 0.5f;
    	m_OpLEVEL[16].m_Ambient.m_fDynamicColor	= 1.5f;
    	m_OpLEVEL[16].m_Ambient.m_cColor			= D3DXCOLOR ( dwColorA );
    
    	m_OpLEVEL[16].m_Glow.m_bUse				= TRUE;
    	m_OpLEVEL[16].m_Glow.m_cColor			= D3DXCOLOR ( dwColorG );
    
    	m_OpLEVEL[16].m_Reflect.m_bUse			= TRUE;
    	m_OpLEVEL[16].m_Reflect.m_fPower			= 14.f;
    	m_OpLEVEL[16].m_Reflect.m_dwColorOP		= D3DTOP_MODULATE2X;
    	m_OpLEVEL[16].m_Reflect.m_cColor			= D3DXCOLOR ( dwColorR );
    
    	m_OpLEVEL[16].m_Flow.m_bUse				= TRUE;
    	m_OpLEVEL[16].m_Flow.m_cColor			= D3DXCOLOR ( dwColorR );
    DxEffCharLevel.h

    Code:
    	enum
    	{
    		LEVEL_LIMIT = 16,	//5,
    		LEVEL_ARRAY = 17,	//6,	// LEVEL_LIMIT+1
    	};
    
    	DXOPTION			m_OpLEVEL [ LEVEL_ARRAY ];	// ฑโบป 0 LEVEL 1~5 ฑ๎ม๖
    GlogicData.cpp
    Code:
    	float		fDAMAGE_GRADE_TOP[GRADE_LIMIT_MAX-GRADE_HIGH]	=
    	{
    		1.0f, 1.0f, 1.0f, 1.0f,	1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f // << Add
    	};
    
    	float		fDEFENSE_GRADE_TOP[GRADE_LIMIT_MAX-GRADE_HIGH]	=
    	{
    		1.0f, 1.0f, 1.0f, 1.0f,	1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f // << Add
    	};
    
    	WORD		wUSE_GRADE_NUM[GRADE_LIMIT_MAX-GRADE_HIGH]	=
    	{
    		1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
    	};
    GLogicData.h
    Code:
    	GRADE_NORMAL		= 4,
    	GRADE_HIGH			= 9,
    	GRADE_LIMIT_MAX		= 20, // change 15 to >>20
    Full Code New Color
    newcolor.rar
    How do you know if it is a Color white or orange?

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

    Re: How to add some extra function on Source Code (Newbie Coder)

    @zentrixph
    check this section

    dwColorG = D3DCOLOR_ARGB( 200,150,100,30 ); // ฑทฮฟ์ ฟ๋
    dwColorA = D3DCOLOR_ARGB( 255, 78, 50, 5 ); // Ambient
    dwColorR = D3DCOLOR_ARGB( 255, 128,90,0 ); // ฑื ฟ
    @all
    little by little we are moving forward if this continues we can achieve what we want, everyone let's begin to make a change in this section.

  5. #35
    Apprentice SoulWeaver is offline
    MemberRank
    Feb 2012 Join Date
    6Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    here is i think ran new interface and bar cp just check this and post how it work i dont how to use it someone just give this....sory for bad english

    Download here

    i hope we share all what we know like adding new class, max hp and damage so that we will not depend on other people serverfiles.go go go ran section!!!

  6. #36
    Member Marckie is offline
    MemberRank
    Feb 2012 Join Date
    Visual C++Location
    96Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Quote Originally Posted by SoulWeaver View Post
    here is i think ran new interface and bar cp just check this and post how it work i dont how to use it someone just give this....sory for bad english

    Download here

    i hope we share all what we know like adding new class, max hp and damage so that we will not depend on other people serverfiles.go go go ran section!!!
    can you provide SS bro?

  7. #37
    be good to beat evils ramispo is offline
    MemberRank
    Mar 2008 Join Date
    Давао, PhiLocation
    1,596Posts

    Re: How to add some extra function on Source Code (Newbie Coder)


  8. #38
    Apprentice SoulWeaver is offline
    MemberRank
    Feb 2012 Join Date
    6Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    i dont know any ss cause i not know how to use it but i think it like this
    Attached Thumbnails Attached Thumbnails 387289_195100397234153_195069837237209_418076_1020508852_n.jpg  

  9. #39
    ... dmc0105 is offline
    MemberRank
    Jun 2006 Join Date
    MalaysiaLocation
    378Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Quote Originally Posted by SoulWeaver View Post
    here is i think ran new interface and bar cp just check this and post how it work i dont how to use it someone just give this....sory for bad english

    Download here

    i hope we share all what we know like adding new class, max hp and damage so that we will not depend on other people serverfiles.go go go ran section!!!
    This is not really for beginner...

    Even if u just take and paste it inside ur source,there is still too many files need to be edited on ur client side...

    No harm trying though...

    For those who want to play with text color u can check out RanClientUILib > Interface > UITextControl.h

  10. #40
    Apprentice SoulWeaver is offline
    MemberRank
    Feb 2012 Join Date
    6Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    @dmc
    yeah i dont know how to use it that's why i share it so that someone can help and the same time i also helped others i just hope someone post guide here on how to put it in source.

  11. #41
    Member Marckie is offline
    MemberRank
    Feb 2012 Join Date
    Visual C++Location
    96Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Anyone can share code QBox Imges whene you loote a box

  12. #42
    ... dmc0105 is offline
    MemberRank
    Jun 2006 Join Date
    MalaysiaLocation
    378Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Editing MOB/NPC name colour

    RanClientLib > G-Logic > Client > ClientCrow > GLCrowRenList.cpp

    Code:
    void CROWREN::SETTYPEFLAG ( GLCharacter *pMYCHAR, GLCrowClient *pCROW )
    {
    	EMCROW emCROW = pCROW->GETCROW();
    	
    	if ( emCROW == CROW_NPC )	m_dwCOLOR = NS_UITEXTCOLOR::ORANGE; <--- NPC name color
    	else
    	{
    		WORD wMY_LEVEL = pMYCHAR->GETLEVEL();
    		WORD wMOB_LEVEL = pCROW->m_pCrowData->m_wLevel;
    		float fEXP_RATE = GLCONST_CHAR::GETEXP_RATE ( wMY_LEVEL, wMOB_LEVEL );
    
    		if ( fEXP_RATE==0 )		m_dwCOLOR = CROWCOLOR::MOB_COLOR_GRAY; <--- MOB name color
    	else					m_dwCOLOR = CROWCOLOR::MOB_COLOR_RED;<--- MOB name color
    	}
    
    	// Note : À̸§Ç¥½Ã ³ôÀÌÁ¶Àý
    	m_vPOS = pCROW->GetPosBodyHeight();
    }
    Declare new color here before adding new color to above code
    U can always use UITextControl.h color list


    RanClientLib > G-Logic > Client > ClientCrow > GLCrowRenList.h

    Code:
    namespace CROWCOLOR
    {
    	const DWORD MOB_COLOR_GRAY	= D3DCOLOR_ARGB(255,184,184,184);
    	const DWORD MOB_COLOR_GREEN	= D3DCOLOR_ARGB(210,39,207,102);
    	const DWORD MOB_COLOR_RED	= D3DCOLOR_ARGB(255,255,0,0);
    };

  13. #43
    Wazup fucckerrsss the_eliter is offline
    MemberRank
    Jan 2008 Join Date
    blackest holeLocation
    936Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Quote Originally Posted by SoulWeaver View Post
    @dmc
    yeah i dont know how to use it that's why i share it so that someone can help and the same time i also helped others i just hope someone post guide here on how to put it in source.
    You almost update all the date modified of the file. we cannot see 1 by 1 :(

  14. #44
    Member Marckie is offline
    MemberRank
    Feb 2012 Join Date
    Visual C++Location
    96Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    @dmc0105

    can u share Qbox images when you loote a boxs?

  15. #45
    ... dmc0105 is offline
    MemberRank
    Jun 2006 Join Date
    MalaysiaLocation
    378Posts

    Re: How to add some extra function on Source Code (Newbie Coder)

    Quote Originally Posted by Marckie View Post
    @dmc0105

    can u share Qbox images when you loote a boxs?
    Im not developing that at the moment...

    Its not a must have feature for me...

    Priority goes for other projects... Sry...

    Really hoping someone would share the packet hack fix(or at least guide me where to edit n i'll do the rest myself)
    -----------------------------------------------------------------
    Editing Private Market Sell Price MAX = 4.2B

    RanClientUILib > Interface > PrivateMarketSellWindow.cpp

    Code:
    CUIEditBoxMan* pEditBoxMan = new CUIEditBoxMan;
    		pEditBoxMan->CreateSub ( this, "PRIVATE_MARKET_SELL_WINDOW_EDITMAN" );
    		pEditBoxMan->CreateEditBox ( PRIVATE_MARKET_SELL_WINDOW_MONEY_EDIT, "PRIVATE_MARKET_SELL_WINDOW_MONEY_EDIT", 
    									"PRIVATE_MARKET_SELL_WINDOW_CARRAT", TRUE, UINT_MAX, pFont, 9 );<--- EDIT 9 to 10
    		pEditBoxMan->CreateEditBox ( PRIVATE_MARKET_SELL_WINDOW_ITEMCOUNT_EDIT, "PRIVATE_MARKET_SELL_WINDOW_ITEMCOUNT_EDIT", 
    									"PRIVATE_MARKET_SELL_WINDOW_CARRAT", TRUE, UINT_MAX, pFont, 6 );
    Last edited by dmc0105; 29-02-12 at 05:35 AM.



Advertisement