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!

Addding stat working

Initiate Mage
Joined
May 23, 2014
Messages
86
Reaction score
0
I add new character stat for experiment but its not working is there anyone can help me?
 
Junior Spellweaver
Joined
Nov 18, 2017
Messages
125
Reaction score
64
the stats that you currently work same like adding pow dex int str etc?
if yes, to save it..
you need to explore this out..
s_COdbcGameChaSave.cpp
 
Upvote 0
Initiate Mage
Joined
May 23, 2014
Messages
86
Reaction score
0
the stats that you currently work same like adding pow dex int str etc?
if yes, to save it..
you need to explore this out..
s_COdbcGameChaSave.cpp
yes I adding new charstat like pow dex int str

I explored
s_COdbcGameChaSave.cpp
and saw this
pCharData2->m_sStats.dwSta,
pCharData2->m_sStats.dwSol, i add this one but ts not working

but this will help me in the future for adding in the database :thumbup:
 
Upvote 0
Junior Spellweaver
Joined
Nov 18, 2017
Messages
125
Reaction score
64
then your next step is in Server DB
RanGame1, ChaInfo
add new colum there..
in your case ChaSol
which is bigint NOT NULL



you need to add it to this file too..

s_COdbcGameChaCreate.cpp // when user create character ChaSol must be added
s_COdbcGameChaGet.cpp // this one is connected to GLCharDataLoad.cpp

nah maybe i forgot something else too,
but post it i will help you find it out..
 
Upvote 0
Initiate Mage
Joined
May 23, 2014
Messages
86
Reaction score
0
then your next step is in Server DB
RanGame1, ChaInfo
add new colum there..
in your case ChaSol
which is bigint NOT NULL



you need to add it to this file too..

s_COdbcGameChaCreate.cpp // when user create character ChaSol must be added
s_COdbcGameChaGet.cpp // this one is connected to GLCharDataLoad.cpp

nah maybe i forgot something else too,
but post it i will help you find it out..


I explore this GLCharDataLoad.cpp yesterday
cFILE.getflag( "sStats", 1, 6, m_sStats.dwPow ); cFILE.getflag( "sStats", 2, 6, m_sStats.dwStr ); cFILE.getflag( "sStats", 3, 6, m_sStats.dwSpi ); cFILE.getflag( "sStats", 4, 6, m_sStats.dwDex ); cFILE.getflag( "sStats", 5, 6, m_sStats.dwInt ); cFILE.getflag( "sStats", 6, 6, m_sStats.dwSta );
//add by me
cFILE.getflag( "sStats", 7, 6, m_sStats.dwSol ); cFILE.getflag( "sStats", 8, 6, m_sStats.dwThf );


even I add on charset
sStats [0 | 0] [0 | 0] [0 | 0][0 | 0]

I got error on charset



By the way Using item with stat is working now:D:
 
Upvote 0
Junior Spellweaver
Joined
Nov 18, 2017
Messages
125
Reaction score
64
you already check
GlogicData.cpp
GlogicData.h
GlogicDataLoad.cpp
?
 
Upvote 0
Initiate Mage
Joined
May 23, 2014
Messages
86
Reaction score
0
you already check
GlogicData.cpp
GlogicData.h
GlogicDataLoad.cpp
?

Yes i already checked but after add new
cFILE.getflag( "sBEGIN_STATS", 7, 6, sBEGIN_STATS.dwSol );cFILE.getflag( "sBEGIN_STATS", 8, 6, sBEGIN_STATS.dwThf );
cFILE.getflag( "sLVLUP_STATS", 7, 6, sLVLUP_STATS.fSol );cFILE.getflag( "sLVLUP_STATS", 8, 6, sLVLUP_STATS.fThf );

 
Upvote 0
Junior Spellweaver
Joined
Nov 18, 2017
Messages
125
Reaction score
64
this case.. you still missing something..
here i suggest.
as i remember..
thereis a source code that contain new stats.. AGI stats..
you can use that as your reference
 
Upvote 0
Initiate Mage
Joined
May 23, 2014
Messages
86
Reaction score
0
this case.. you still missing something..
here i suggest.
as i remember..
thereis a source code that contain new stats.. AGI stats..
you can use that as your reference


Finally its working now :thumbup:
I got missing code in
glogicExPc.cpp

Tnx for your help
 
Upvote 0
Back
Top