remove durability itens

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 12, 2008
Messages
43
Reaction score
2
I would like to know how to disable it or how players can repair the durability of the items. someone help me?
430999_297521413688665_1081341050_n - remove durability itens - RaGEZONE Forums
sry bad english
help me??
 
I don't have this system in my sources but that a way to find where it's defined in sources.

Try searching "Durabilidade" in textclient.txt.txt, then you'll find it with its ID. Search this ID in textclient.inc, and you'll find

TID_....
{
IDS_TEXTCLIENT_...
}

Search the "TID_..." in your sources using notepad++.

Then, try to disable it by commenting or anything else.
 
IDS_TEXTCLIENT_INC_000502 Durabilidade: *.txt.txt


TID_GAME_TOOLTIP_DURABILITY 0xff99cc00
{
IDS_TEXTCLIENT_INC_000502
}
how to disable? where is versioncommon?
I am now starting my server, yet not quite understand the organization of the files.
I need an example
and thank you all who are trying to help me!

i need disable function
or
job for recovery durability for 100% / 100%
puf - remove durability itens - RaGEZONE Forums
 
Last edited:
Go in your sources, in _Interface/WndManager.cpp

Search :
void CWndMgr::PutEndurance( CItemElem* pItemElem, CEditString* pEdit, int flag )

You should have :

void CWndMgr::PutEndurance( CItemElem* pItemElem, CEditString* pEdit, int flag )
{
#if __VER < 11 // __REMOVE_ENDURANCE
// ³»±¸·Â ³ª´Â ³ª¿À°Ô ÇÏ°í »óÁ¡ ÀÎÅÍÆäÀ̽º¿¡¼­´Â ¾È³ª¿À°ÔÇÔ 56Àº ³ªÀÇ Invantory °³¼ö
if(flag != APP_SHOP_ )
{ // ³»±¸·Â
if( flag != APP_QUERYEQUIP )
{
if( pItemElem->GetProp()->dwEndurance != 0xffffffff )
{
CString strTemp;
int nEndurance = int((float)pItemElem->m_nHitPoint * 100 / (float)pItemElem->GetProp()->dwEndurance );
int nMaxEndurance = int((float)(pItemElem->GetProp()->nMaxRepair - pItemElem->m_nRepair) * 100 / (float)pItemElem->GetProp()->nMaxRepair );
strTemp.Format( "%s %d%% / %d%%", prj.GetText(TID_GAME_TOOLTIP_DURABILITY), nEndurance, nMaxEndurance );
pEdit->AddString( "\n" );
if( nEndurance != 0 )
pEdit->AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwGeneral );
else
pEdit->AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwNotUse );
}
}
}
#endif // __REMOVE_ENDURANCE
}

Then, if you have this code, open Neuz/VersionCommon.h and at the 4th line :

#define __VER XX

XX : must be 12 or higher.
 
in neuz =:> #define __V6_ENDURANCE //Endurances des Armes


void CWndMgr::PutEndurance( CItemElem* pItemElem, CEditString* pEdit, int flag )
{
#ifdef __V6_ENDURANCE
// ³»±¸·Â ³ª´Â ³ª¿À°Ô ÇÏ°í »óÁ¡ ÀÎÅÍÆäÀ̽º¿¡¼­´Â ¾È³ª¿À°ÔÇÔ 56Àº ³ªÀÇ Invantory °³¼ö
if(flag != APP_SHOP_ )
{ // ³»±¸·Â
if( flag != APP_QUERYEQUIP )
{
if( pItemElem->GetProp()->dwEndurance != 0xffffffff )
{
CString strTemp;
int nEndurance = int((float)pItemElem->m_nHitPoint * 100 / (float)pItemElem->GetProp()->dwEndurance );
int nMaxEndurance = int((float)(pItemElem->GetProp()->nMaxRepair - pItemElem->m_nRepair) * 100 / (float)pItemElem->GetProp()->nMaxRepair );
strTemp.Format( "%s %d%% / %d%%", prj.GetText(TID_GAME_TOOLTIP_DURABILITY), nEndurance, nMaxEndurance );
pEdit->AddString( "\n" );
if( nEndurance != 0 )
pEdit->AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwGeneral );
else
pEdit->AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwNotUse );
}
}
}
#endif // __REMOVE_ENDURANCE
}

help me solution??


????? #define __V7_ENDURANCE //Endurances des Armes ????
 
Oh I see, you are using french files ?
From jtb1 I suppose.

Well, just add « // » before "#define __V6_ENDURANCE" in All VersionCommon.h you have (in theses folder : Account, Database, Core, Cache, Certifier, Login, World, Neuz)

Then recompile
 
Veryyy good tyyyyyyyyyyy solved!
just add « // » before "#define __V6_ENDURANCE" in worldserver and neuz!!
close topic!
 
Status
Not open for further replies.
Back