Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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

Status
Not open for further replies.
Newbie Spellweaver
Joined
Feb 29, 2012
Messages
6
Reaction score
1
:scared::scared::scared: oh no!!!

no cp and bullet me =,=

open GLItemDef.h search text "Sceon" =,= :grr::grr:

yeah i saw that too now someone give me this file and i dont know to do this sorry sceon if this your file
 
Experienced Elementalist
Joined
Jun 15, 2006
Messages
201
Reaction score
100
How to change folder location/name

Like ran2,they have RData instead of data...This is where u do that...

Enginelib > Common > SUBPATH.cpp

Code:
	TCHAR CACHE[MAX_PATH]				= _T("\\cache\\");

	TCHAR OBJ_FILE_ROOT[MAX_PATH]		= _T("\\Data\\");
	TCHAR OBJ_FILE_EDIT[MAX_PATH]		= _T("\\Data\\Editor\\");
	TCHAR OBJ_FILE_PIECE[MAX_PATH]		= _T("\\Data\\Piece\\");
	TCHAR OBJ_FILE_PIECEEDIT[MAX_PATH]	= _T("\\Data\\Piece\\Edit\\");
	TCHAR OBJ_FILE_SKIN[MAX_PATH]		= _T("\\Data\\Skin\\");
	TCHAR OBJ_FILE_SKELETON[MAX_PATH]	= _T("\\Data\\Skeleton\\");
	TCHAR OBJ_FILE_ANIMATION[MAX_PATH]	= _T("\\Data\\Animation\\");
	TCHAR OBJ_FILE_SKINOBJECT[MAX_PATH]	= _T("\\Data\\SkinObject\\");

	TCHAR MAP_FILE[MAX_PATH]			= _T("\\Data\\Map\\");
	TCHAR GLMAP_FILE[MAX_PATH]			= _T("\\Data\\GLMap\\");
	TCHAR GLOGIC_FILE[MAX_PATH]			= _T("\\Data\\GLogic\\");
	TCHAR GLOGIC_SERVER_FILE[MAX_PATH]	= _T("\\Data\\GLogicServer\\");

	TCHAR TILE_FILE_DATA[MAX_PATH]		= _T("\\Data\\Tiles\\");
	TCHAR TILE_FILE_TEXTURE[MAX_PATH]	= _T("\\Textures\\Tiles\\");

	TCHAR OBJ_FILE_OBJECT[MAX_PATH]		= _T("\\Data\\Object\\");
	TCHAR OBJ_FILE_STATICMESH[MAX_PATH]	= _T("\\Data\\StaticMesh\\");

	TCHAR TEXTURE_FILE_ROOT[MAX_PATH]	= _T("\\Textures");
	TCHAR TEXTURE_FILE_SHADOW[MAX_PATH]	= _T("\\Textures\\Shadow\\");
	TCHAR TEXTURE_FILE_CLUB[MAX_PATH]	= _T("\\Textures\\Club\\");
	TCHAR TEXTURE_FILE_EFF[MAX_PATH]	= _T("\\Textures\\Effect\\");
	TCHAR SHADER_FILE_ROOT[MAX_PATH]	= _T("\\Shaders\\");

	TCHAR EFF_FILE_SINGLE[MAX_PATH]		= _T("\\Data\\Effect\\");
	TCHAR EFF_FILE_CHAR[MAX_PATH]		= _T("\\Data\\Effect\\Char\\");

	TCHAR GUI_FILE_ROOT[MAX_PATH]		= _T("\\Data\\GUI\\");
	TCHAR NTK_FILE_ROOT[MAX_PATH]		= _T("\\Data\\GLogic\\NPCTALK\\");
	TCHAR QST_FILE_ROOT[MAX_PATH]		= _T("\\Data\\GLogic\\Quest\\");

	TCHAR SOUND_FILE_ROOT[MAX_PATH]		= _T("\\Sounds\\Sfx\\");
	TCHAR BGM_FILE_ROOT[MAX_PATH]		= _T("\\Sounds\\BGM\\");
 
Newbie Spellweaver
Joined
Dec 23, 2011
Messages
28
Reaction score
0
server hp rate = ranclientilb - g-logic - glcharacter.cpp
float fCONFT_POINT_RATE(1.0f); <- 1.0f
if ( m_sCONFTING.IsCONFRONTING() ) fCONFT_POINT_RATE = m_sCONFTING.sOption.fHP_RATE;
 
Newbie Spellweaver
Joined
Dec 23, 2011
Messages
28
Reaction score
0
HP MAX

float fHPPercent = 0.0f;
if( pMember->m_sHP.wMax != 0 )
{
fHPPercent = float(pMember->m_sHP.wNow) / float(pMember->m_sHP.wMax);
}

pPartySlot->SetHP( fHPPercent );
}
}

minipatrywindow.cpp

where can i see this? DxPieceDefine.h

DxPieceDefine.h = Source\enginelib\Meshs
 
Newbie Spellweaver
Joined
Oct 23, 2011
Messages
94
Reaction score
1
HP MAX

float fHPPercent = 0.0f;
if( pMember->m_sHP.wMax != 0 )
{
fHPPercent = float(pMember->m_sHP.wNow) / float(pMember->m_sHP.wMax);
}

pPartySlot->SetHP( fHPPercent );
}
}

minipatrywindow.cpp



DxPieceDefine.h = Source\enginelib\Meshs

is there any specific folder to look for?

i want to make a new item type = wings :)

but im really a newbie in coding.

hope you guys have a time to teach me

thank you

EDIT :

seems coding is alot of things to learn :)

anyways is it posible for you guys to create a new item type for me?

i want wings please :( so that i wont put wings on bracelet anymore.. thank you :)
 
Last edited:
Joined
May 16, 2011
Messages
655
Reaction score
225
@All
Does anyone knows how to configure the Club War Time ?
As in to set the Club War as Everyday ?

How to increase the Day of Club War < ---- That's my Question :)
Hope who knows this can share it.
Thanks.
 
Joined
Mar 12, 2011
Messages
962
Reaction score
589
@All
Does anyone knows how to configure the Club War Time ?
As in to set the Club War as Everyday ?

How to increase the Day of Club War < ---- That's my Question :)
Hope who knows this can share it.
Thanks.

you mean add more battle time right??
so we can add more day for CW instead just 4 day right??

maybe this the way..not to sure but you can try it

Open GLGuidance.h file and change this :

Code:
class GLGuidance
{
public:
	enum { MAX_TIME = 4, };[COLOR="Red"]<--change 4 to 7 so you can add more battle time in your guid.ini[/COLOR]

hope this answer is correct..
 
Joined
May 16, 2011
Messages
655
Reaction score
225
you mean add more battle time right??
so we can add more day for CW instead just 4 day right??

maybe this the way..not to sure but you can try it

Open GLGuidance.h file and change this :

Code:
class GLGuidance
{
public:
	enum { MAX_TIME = 4, };[COLOR="Red"]<--change 4 to 7 so you can add more battle time in your guid.ini[/COLOR]

hope this answer is correct..


HOPE This will be helped ;)
BTW. Thanks for the Tip !
 
Junior Spellweaver
Joined
May 30, 2004
Messages
160
Reaction score
6
Does anyone knows how to make normal class for have 2 slot of weapon with tab for swich weapon like extream class?

I hope who knows this can share it.
Thanks you.
 
Joined
Mar 12, 2011
Messages
962
Reaction score
589
Does anyone knows how to make normal class for have 2 slot of weapon with tab for swich weapon like extream class?

I hope who knows this can share it.
Thanks you.

Edit :
this is not for beginer but i think we must grow up..so we didnt just stuck in here..

this the way to have what you want :

Open InventoryPageWearEx.cpp and find this :

Code:
void CInventoryPageWearEx::CreateSubControl ( int nClassType )
{
	CString	strInvenWearBack[GLCI_NUM_EX-GLCI_NUM] = 
	{
		"INVENTORY_PAGE_WEAR_EXTREME_M",
		"INVENTORY_PAGE_WEAR_EXTREME_W",
	};

	CreateControl ( strInvenWearBack[nClassType-GLCI_NUM].GetString () );

after that edit InventoryPageWearEx.cpp like this :

Code:
void CInventoryPageWearEx::CreateSubControl ( int nClassType )
{
	CString	strInvenWearBack[GLCI_NUM_NEWSEX] = [COLOR="Red"]<--change [GLCI_NUM_EX-GLCI_NUM] to [GLCI_NUM_NEWSEX][/COLOR] 
	{
		"INVENTORY_PAGE_WEAR_EXTREME_M",
		"INVENTORY_PAGE_WEAR_EXTREME_W",
                [COLOR="Red"]//add more class here, so other class can have this function[/COLOR]
		"INVENTORY_PAGE_WEAR_FIGHTER_M",
		"INVENTORY_PAGE_WEAR_ARMS_M",
		"INVENTORY_PAGE_WEAR_ARCHER_W",
		"INVENTORY_PAGE_WEAR_SPIRIT_W",
		"INVENTORY_PAGE_WEAR_FIGHTER_W",
		"INVENTORY_PAGE_WEAR_ARMS_W",
		"INVENTORY_PAGE_WEAR_ARCHER_M",
		"INVENTORY_PAGE_WEAR_SPIRIT_M"	};

	CreateControl ( strInvenWearBack[nClassType].GetString () );[COLOR="Red"]<--change [nClassType-GLCI_NUM] to [nClassType][/COLOR]

after that open InnerInterface.cpp find this code :

Code:
		if ( UIKeyCheck::GetInstance()->Check( DIK_TAB, DXKEY_DOWN ) )
		{
			EMCHARCLASS emClass = GLGaeaClient::GetInstance().GetCharacter()->m_emClass;

			if( emClass&GLCC_EXTREME_M || emClass&GLCC_EXTREME_W )
			{
				// ½ºÅ³ »ç¿ëÁßÀ¸·Î ½ÇÆÐÇϸé Tab Key ¿¹¾à
				if ( E_FAIL == GLGaeaClient::GetInstance().GetCharacter()->ReqSlotChange() )
					m_bTabReserve = true;
			}
				
		}

edit the code like this :

Code:
		if ( UIKeyCheck::GetInstance()->Check( DIK_TAB, DXKEY_DOWN ) )
		{
			EMCHARCLASS emClass = GLGaeaClient::GetInstance().GetCharacter()->m_emClass;

			if( emClass&GLCC_EXTREME_M || emClass&GLCC_EXTREME_W || emClass&GLCC_ARMS_M || emClass&GLCC_ARMS_W || emClass&GLCC_FIGHTER_M || emClass&GLCC_FIGHTER_W || emClass&GLCC_ARCHER_M || emClass&GLCC_ARCHER_W || emClass&GLCC_SPIRIT_M || emClass&GLCC_SPIRIT_W )[COLOR="Red"]<--add more class, so other class have this function too[/COLOR]
			{
				// ½ºÅ³ »ç¿ëÁßÀ¸·Î ½ÇÆÐÇϸé Tab Key ¿¹¾à
				if ( E_FAIL == GLGaeaClient::GetInstance().GetCharacter()->ReqSlotChange() )
					m_bTabReserve = true;
			}
				
		}

Open InnerInterfaceSimple.cpp find this code :

Code:
		if( nClassType == GLCI_EXTREME_W || nClassType == GLCI_EXTREME_M )
		{
			CWeaponDisplay* pWeaponDisplay = new CWeaponDisplay;
			pWeaponDisplay->Create ( WEAPON_DISPLAY, "WEAPON_DISPLAY" );
			pWeaponDisplay->CreateSubControl ();
			RegisterControl ( pWeaponDisplay );
			ShowGroupBottom ( WEAPON_DISPLAY );
		}

edit it like this :

Code:
		if( nClassType == GLCI_EXTREME_W || nClassType == GLCI_EXTREME_M || nClassType == GLCI_ARMS_W || nClassType == GLCI_ARMS_M || nClassType == GLCI_FIGHTER_W || nClassType == GLCI_FIGHTER_M || nClassType == GLCI_ARCHER_W || nClassType == GLCI_ARCHER_M || nClassType == GLCI_SPIRIT_W || nClassType == GLCI_SPIRIT_M ) [COLOR="Red"]<--add more class, so other class have this function too[/COLOR]
		{
			CWeaponDisplay* pWeaponDisplay = new CWeaponDisplay;
			pWeaponDisplay->Create ( WEAPON_DISPLAY, "WEAPON_DISPLAY" );
			pWeaponDisplay->CreateSubControl ();
			RegisterControl ( pWeaponDisplay );
			ShowGroupBottom ( WEAPON_DISPLAY );
		}

Open InventoryWindow.cpp and find this code :

Code:
	if( nClassType == GLCI_EXTREME_W || nClassType == GLCI_EXTREME_M )
	{
		m_pPageWearEx = new CInventoryPageWearEx;
		m_pPageWearEx->CreateSub ( this, "INVENTORY_PAGE_WEAR", UI_FLAG_DEFAULT, INVENTORY_PAGEWEAR_EX );
		m_pPageWearEx->CreateSubControl ( nClassType );
		RegisterControl ( m_pPageWearEx );
	}
	else
	{
		m_pPageWear = new CInventoryPageWear;
		m_pPageWear->CreateSub ( this, "INVENTORY_PAGE_WEAR", UI_FLAG_DEFAULT, INVENTORY_PAGEWEAR );
		m_pPageWear->CreateSubControl ( nClassType );
		RegisterControl ( m_pPageWear );
	}

Disable some code so it become like this :

Code:
	//if( nClassType == GLCI_EXTREME_W || nClassType == GLCI_EXTREME_M ) [COLOR="Red"]<--disable this with add "//"[/COLOR]
	{
		m_pPageWearEx = new CInventoryPageWearEx;
		m_pPageWearEx->CreateSub ( this, "INVENTORY_PAGE_WEAR", UI_FLAG_DEFAULT, INVENTORY_PAGEWEAR_EX );
		m_pPageWearEx->CreateSubControl ( nClassType );
		RegisterControl ( m_pPageWearEx );
	}
	//else[COLOR="Red"]<--disable this with add "//"[/COLOR]
	//{[COLOR="Red"]<--disable this with add "//"[/COLOR]
	//	m_pPageWear = new CInventoryPageWear;[COLOR="Red"]<--disable this with add "//"[/COLOR]
	//	m_pPageWear->CreateSub ( this, "INVENTORY_PAGE_WEAR", UI_FLAG_DEFAULT, INVENTORY_PAGEWEAR );[COLOR="Red"]<--disable this with add "//"[/COLOR]
	//	m_pPageWear->CreateSubControl ( nClassType );[COLOR="Red"]<--disable this with add "//"[/COLOR]
	//	RegisterControl ( m_pPageWear );[COLOR="Red"]<--disable this with add "//"[/COLOR]
	//}[COLOR="Red"]<--disable this with add "//"[/COLOR]

Compile it and you are done..
hope this help you..
 
Last edited:
Junior Spellweaver
Joined
May 30, 2004
Messages
160
Reaction score
6
oh thank you very much. you are the good man.

and one, sir geger009. i need to fix the change sex card which don't support for extream class.

can you guideline it?

thanks again.
 
Joined
Mar 12, 2011
Messages
962
Reaction score
589
are you sure??as far as i know you can set it on your item.isf to make it can use to all class..
i never make thats item so i never encounter thats problem..sorry..
 
Newbie Spellweaver
Joined
Nov 22, 2011
Messages
15
Reaction score
0
oh thank you very much. you are the good man.

and one, sir geger009. i need to fix the change sex card which don't support for extream class.

can you guideline it?

thanks again.
You can not use the change sex card in extreme class unless you edit the source.
 
Status
Not open for further replies.
Back
Top