HELP Refine Success announcement

Results 1 to 6 of 6
  1. #1
    Enthusiast domukun14 is offline
    MemberRank
    Aug 2022 Join Date
    33Posts

    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


  2. #2
    Account Upgraded | Title Enabled! Frozenn is offline
    MemberRank
    Aug 2016 Join Date
    PerfLogsLocation
    273Posts
    If you have the source, try searching the string and adjust to your needs.

  3. #3
    Enthusiast domukun14 is offline
    MemberRank
    Aug 2022 Join Date
    33Posts
    What cpp file should i edit?

  4. #4
    Valued Member llenn is online now
    MemberRank
    Sep 2020 Join Date
    you mom roomLocation
    145Posts
    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);
    }
    }

  5. #5
    Enthusiast domukun14 is offline
    MemberRank
    Aug 2022 Join Date
    33Posts
    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

  6. #6
    Valued Member cyberformula is offline
    MemberRank
    Feb 2009 Join Date
    145Posts
    cGrade>=7 try recompiling and dont forget to put space cGrade >= 7



Advertisement