-
Enthusiast
HELP Refine Success announcement
I just wanna ask how to edit the refine upgrade success anouncement bec when i upgrade +7 theres no announcement but when i upgrade +8 its fine how to edit it?
thanks in advance
-
-
Account Upgraded | Title Enabled!
If you have the source, try searching the string and adjust to your needs.
-
Enthusiast
What cpp file should i edit?
-
Valued Member
GLCharInvenMsg.cpp
//dmk14 | 9-22-16 | upgrade announce
BYTE cUpgrade = 0;
const EMGRINDING_TYPE emGRINDING = pHold->sGrindingOp.emTYPE;
switch( emGRINDING )
{
case EMGRINDING_DAMAGE: cUpgrade = pInvenItem->sItemCustom.cDAMAGE; break;
case EMGRINDING_DEFENSE: cUpgrade = pInvenItem->sItemCustom.cDEFENSE; break;
}
if( bSucceeded && cUpgrade >= 20 )
{
CString strTEXT;
strTEXT.Format ( " %s '%s' successfully upgraded into (+%d) %s.", m_szName, pItem->GetName(), cUpgrade, COMMENT::GRINDING_TYPE[ emGRINDING ].c_str() );
GLMSG::SNET_SERVER_GENERALCHAT NetMsgUps;
NetMsgUps.SETTEXT ( strTEXT.GetString() );
//NetMsgUpsbAnnounce = true;
GLGaeaServer::GetInstance().SENDTOALLCLIENT(&NetMsgUps);
}
}
-
Enthusiast
thankyou very much!
- - - Updated - - -
i already edit GLCharInvenMsg.cpp
if ( pHold->sGrindingOp.emTYPE == EMGRINDING_DAMAGE || pHold->sGrindingOp.emTYPE == EMGRINDING_DEFENSE ) { if ( bSucceeded && cGrade>=7 ) { BYTE cNewGrade = cGrade; CString strTextGen; GLMSG::SNET_SERVER_GENERALCHAT NetMsgGen; strTextGen.Format( "%s succeeded upgrading %s to +%d using %s.", m_szName, pItem->GetName(), cNewGrade, pHold->GetName() ); NetMsgGen.SETTEXT ( strTextGen.GetString() ); NetMsgGen.bNotify = true; NetMsgGen.iColor = 5; GLGaeaServer::GetInstance().SENDTOALLCLIENT( &NetMsgGen ); strTextGen = ""; } }
and compile with no errors but still +8 announce
- - - Updated - - -
done thanks <3
-
Valued Member
cGrade>=7 try recompiling and dont forget to put space cGrade >= 7