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!

Required Stat

Newbie Spellweaver
Joined
May 23, 2014
Messages
86
Reaction score
0
Where ca I find required stat on source code?
 
Newbie Spellweaver
Joined
May 23, 2014
Messages
86
Reaction score
0
Use ItemEditor will see it
I add some new char stat for experiment and it working

but the problem is new added required stat is not showing in the game
 
Upvote 0
Junior Spellweaver
Joined
Nov 18, 2017
Messages
125
Reaction score
64
I add some new char stat for experiment and it working

but the problem is new added required stat is not showing in the game

UIItemInfoLoader.cpp
 
Upvote 0
Junior Spellweaver
Joined
Nov 18, 2017
Messages
125
Reaction score
64
tnx bro it finally showed


now I am working on required link because it still white not red

all text color is in UITextControl.h

this is example code of UIItemInfoLoader.cpp

void AddInfoItemAddon ( int nBasic, int nAddon, CString strFormat )
{
CString Text;
if ( nAddon )
{
Text.Format ( "%s:%d%s", strFormat, nBasic, GetNumberWithSign ( nAddon ) );
AddTextNoSplit ( Text, NS_UITEXTCOLOR::pRIVATE ); // change this PRIVATE to color code according to UITextControl.h
}
else if ( nBasic )
{
Text.Format ( "%s:%d", strFormat, nBasic );
AddTextNoSplit ( Text, NS_UITEXTCOLOR::DEFAULT );
}
}
 
Upvote 0
Newbie Spellweaver
Joined
May 23, 2014
Messages
86
Reaction score
0
all text color is in UITextControl.h

this is example code of UIItemInfoLoader.cpp

void AddInfoItemAddon ( int nBasic, int nAddon, CString strFormat )
{
CString Text;
if ( nAddon )
{
Text.Format ( "%s:%d%s", strFormat, nBasic, GetNumberWithSign ( nAddon ) );
AddTextNoSplit ( Text, NS_UITEXTCOLOR::pRIVATE ); // change this PRIVATE to color code according to UITextControl.h
}
else if ( nBasic )
{
Text.Format ( "%s:%d", strFormat, nBasic );
AddTextNoSplit ( Text, NS_UITEXTCOLOR::DEFAULT );
}
}
its working now
its not working earlier because I just put greater than instead of less than

rItemStats.dwSol <= rCharStats.dwSol
 
Upvote 0
Newbie Spellweaver
Joined
May 23, 2014
Messages
86
Reaction score
0
all text color is in UITextControl.h

this is example code of UIItemInfoLoader.cpp

void AddInfoItemAddon ( int nBasic, int nAddon, CString strFormat )
{
CString Text;
if ( nAddon )
{
Text.Format ( "%s:%d%s", strFormat, nBasic, GetNumberWithSign ( nAddon ) );
AddTextNoSplit ( Text, NS_UITEXTCOLOR::pRIVATE ); // change this PRIVATE to color code according to UITextControl.h
}
else if ( nBasic )
{
Text.Format ( "%s:%d", strFormat, nBasic );
AddTextNoSplit ( Text, NS_UITEXTCOLOR::DEFAULT );
}
}

Bro did you now how to align center the text?
 
Upvote 0
Back
Top