Join Helbreath
Would you like to react to this message? Create an account in a few clicks or log in to continue.


This is a website run by veteran Helbreath players with the aim of sharing discussions and content exclusively related to the development of a server and its gameplay.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in

We depend on Ads revenue to keep our site running. Please consider disabling your Ad Blocker so that we can continue to create the content you come to enjoy.
Thank you for your continued cooperation and understanding.

 

 [CODE] Screenshots cuando matas

Go down 
AuthorMessage
KenZoB
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
KenZoB

Posts : 49
Since : 2014-11-05

[CODE] Screenshots cuando matas Empty
PostSubject: [CODE] Screenshots cuando matas   [CODE] Screenshots cuando matas 9991011/14/2014, 12:56 am

ClientSources:
Game.cpp buscar:

Code:
void CGame::NotifyMsg_EnemyKillReward(char *pData)
{
 DWORD * dwp;
 short * sp, sGuildRank;
 char  * cp, cName[12], cGuildName[24], cTxt[120];
 int  iExp, iEnemyKillCount, iWarContribution;

   ZeroMemory(cName, sizeof(cName));
   ZeroMemory(cGuildName, sizeof(cGuildName));

   cp = (char *)(pData + DEF_INDEX2_MSGTYPE + 2);
   dwp  = (DWORD *)cp;
   iExp = *dwp;
   cp += 4;
   dwp  = (DWORD *)cp;
   iEnemyKillCount = *dwp;
   cp += 4;
   memcpy(cName, cp, 10);
   cp += 10;
   memcpy(cGuildName, cp, 20);
   cp += 20;
   sp  = (short *)cp;
   sGuildRank = *sp;
   cp += 2;
   sp  = (short *)cp;
   iWarContribution = *sp;
   cp += 2;

   if (iWarContribution > m_iWarContribution)
   {   wsprintf(G_cTxt, "%s +%d!", m_pGameMsgList[21]->m_pMsg, iWarContribution - m_iWarContribution);
      SetTopMsg(G_cTxt, 5);
   }else if (iWarContribution < m_iWarContribution)
   {}
   m_iWarContribution = iWarContribution;

   if (sGuildRank == -1)
   {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD1, cName);
      AddEventList(cTxt, 10);
   }else
   {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD2, cName, cGuildName); // Fixed by Snoopy
      AddEventList(cTxt, 10);
   }

/*   if( m_iExp != iExp ) // removed by snoopy because too much msg hide victim's name
   {   if (m_iExp > iExp) wsprintf(cTxt, EXP_DECREASED,m_iExp - iExp);
      else wsprintf(cTxt, EXP_INCREASED,iExp - m_iExp);
      AddEventList(cTxt, 10);
   }*/

   if (m_iEnemyKillCount != iEnemyKillCount)
   {   if (m_iEnemyKillCount > iEnemyKillCount)
      {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD5,m_iEnemyKillCount - iEnemyKillCount);
         AddEventList(cTxt, 10);
      }else
      {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD6, iEnemyKillCount - m_iEnemyKillCount);
         AddEventList(cTxt, 10);
      }
   }

   if( iExp >= 0 ) m_iExp = iExp;
   if( iEnemyKillCount >= 0 ) m_iEnemyKillCount = iEnemyKillCount;
   PlaySound('E', 23, 0);
}

y abajo del todo (abajo de PlaySound('E', 23, 0); )

Agregan:

Code:
CreateScreenShot();

Quedaría así:

Code:
void CGame::NotifyMsg_EnemyKillReward(char *pData)
{
 DWORD * dwp;
 short * sp, sGuildRank;
 char  * cp, cName[12], cGuildName[24], cTxt[120];
 int  iExp, iEnemyKillCount, iWarContribution;

   ZeroMemory(cName, sizeof(cName));
   ZeroMemory(cGuildName, sizeof(cGuildName));

   cp = (char *)(pData + DEF_INDEX2_MSGTYPE + 2);
   dwp  = (DWORD *)cp;
   iExp = *dwp;
   cp += 4;
   dwp  = (DWORD *)cp;
   iEnemyKillCount = *dwp;
   cp += 4;
   memcpy(cName, cp, 10);
   cp += 10;
   memcpy(cGuildName, cp, 20);
   cp += 20;
   sp  = (short *)cp;
   sGuildRank = *sp;
   cp += 2;
   sp  = (short *)cp;
   iWarContribution = *sp;
   cp += 2;

   if (iWarContribution > m_iWarContribution)
   {   wsprintf(G_cTxt, "%s +%d!", m_pGameMsgList[21]->m_pMsg, iWarContribution - m_iWarContribution);
      SetTopMsg(G_cTxt, 5);
   }else if (iWarContribution < m_iWarContribution)
   {}
   m_iWarContribution = iWarContribution;

   if (sGuildRank == -1)
   {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD1, cName);
      AddEventList(cTxt, 10);
   }else
   {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD2, cName, cGuildName); // Fixed by Snoopy
      AddEventList(cTxt, 10);
   }

/*   if( m_iExp != iExp ) // removed by snoopy because too much msg hide victim's name
   {   if (m_iExp > iExp) wsprintf(cTxt, EXP_DECREASED,m_iExp - iExp);
      else wsprintf(cTxt, EXP_INCREASED,iExp - m_iExp);
      AddEventList(cTxt, 10);
   }*/

   if (m_iEnemyKillCount != iEnemyKillCount)
   {   if (m_iEnemyKillCount > iEnemyKillCount)
      {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD5,m_iEnemyKillCount - iEnemyKillCount);
         AddEventList(cTxt, 10);
      }else
      {   wsprintf(cTxt, NOTIFYMSG_ENEMYKILL_REWARD6, iEnemyKillCount - m_iEnemyKillCount);
         AddEventList(cTxt, 10);
      }
   }

   if( iExp >= 0 ) m_iExp = iExp;
   if( iEnemyKillCount >= 0 ) m_iEnemyKillCount = iEnemyKillCount;
   PlaySound('E', 23, 0);
        CreateScreenShot();
}
Back to top Go down
 
[CODE] Screenshots cuando matas
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Open Source / Development Corner :: C++-
Jump to: