Display Real Damage Instead Of Critical!
Make it show the real damage is easy, but make it show dmg above 255 will require extra work as the variable that holds the damage is 1 byte size.
====<span style='color:red'><br>Aryes</span><br>====<br><br>HB United: www.hbuonline.net:<br><br><img src="http://hbtop50.com/button.php?u=hbkhispano" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=dcom" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=tinchocba" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=rafha_bernn" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=HB-Tere" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=Kiruku" alt="Helbreath Top 50 - Helbreath Silver" border="0" />
-
- Loyal fan
- Posts: 216
- Joined: Wed Apr 19, 2006 12:19 am
that's the kind of server im making. 180 200Firestorm wrote: Dam faking max lvl 3090000 and exp 6000000 servers! Come back to reality the only real HB is 180lvl and 200 stats! with x6 - x8 EXP!
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Yeah thats client side.
But don't say 6000000000 lvl
already 250 lvl shows critical as good damage.
And also, think if there would be 20 180/200 servers
Booring eh?
But don't say 6000000000 lvl
already 250 lvl shows critical as good damage.
And also, think if there would be 20 180/200 servers
Booring eh?
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Well, i think damages client side are in a signed short, one byte size, so its range is from -128 to 127.
If damage is <=127 and >= 1, it'll be displayed like -45Pts over the head of the player. If it's greater than 127 (so it goes negative), "Critical!" is displayed.
If you change the code in client
with something like
I think you'll have the real damages displayed...
If damage is <=127 and >= 1, it'll be displayed like -45Pts over the head of the player. If it's greater than 127 (so it goes negative), "Critical!" is displayed.
If you change the code in client
Code: Select all
if (damage < 0){
//display Critical
}
Code: Select all
if (damage < 0){
damage += 256
//display damages
}
I think you'll have the real damages displayed...
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
-
- Loyal fan
- Posts: 216
- Joined: Wed Apr 19, 2006 12:19 am
don't know if this will help anyone but i'll post it anyhow
Code: Select all
for (i = 1; i < DEF_MAXCHATMSGS; i++)
if (m_pChatMsgList[i] == NULL) {
ZeroMemory(cTxt, sizeof(cTxt));
if (m_sDamageMoveAmount > 0)
wsprintf(cTxt, "-%dPts", m_sDamageMoveAmount); //pts
else strcpy(cTxt, "Critical!");
int iFontType;
if ((m_sDamageMoveAmount >= 0) && (m_sDamageMoveAmount < 12)) iFontType = 21;
else if ((m_sDamageMoveAmount >= 12) && (m_sDamageMoveAmount < 40)) iFontType = 22;
else if ((m_sDamageMoveAmount >= 40) || (m_sDamageMoveAmount < 0)) iFontType = 23;
m_pChatMsgList[i] = new class CMsg(iFontType, cTxt, m_dwCurTime);
m_pChatMsgList[i]->m_iObjectID = m_sPlayerObjectID;
if (m_pMapData->bSetChatMsgOwner(m_sPlayerObjectID, -10, -10, i) == FALSE) {
delete m_pChatMsgList[i];
m_pChatMsgList[i] = NULL;
}
break;
}
m_sDamageMove = 0;
}
Code: Select all
case DEF_OBJECTDYING:
_RemoveChatMsgListByObjectID(wObjectID - 30000);
for (i = 1; i < DEF_MAXCHATMSGS; i++)
if (m_pChatMsgList[i] == NULL) {
ZeroMemory(cTxt, sizeof(cTxt));
if (sV1 > 0)
wsprintf(cTxt, "-%dPts!", sV1); //pts
else strcpy(cTxt, "Critical!");
int iFontType;
if ((sV1 >= 0) && (sV1 < 12)) iFontType = 21;
else if ((sV1 >= 12) && (sV1 < 40)) iFontType = 22;
else if ((sV1 >= 40) || (sV1 < 0)) iFontType = 23;
m_pChatMsgList[i] = new class CMsg(iFontType, cTxt, m_dwCurTime);
m_pChatMsgList[i]->m_iObjectID = wObjectID - 30000;
if (m_pMapData->bSetChatMsgOwner(wObjectID - 30000, -10, -10, i) == FALSE) {
delete m_pChatMsgList[i];
m_pChatMsgList[i] = NULL;
}
return;
}
break;
Code: Select all
case DEF_OBJECTDAMAGE:
// Ç÷¹À̾ ij½ºÆÃ Áß¿¡ ¸Â¾Ò´Ù¸é Ãë¼Ò´Ù.
if (memcmp(cName, m_cPlayerName, 10) == 0) {
m_bIsGetPointingMode = FALSE;
m_iPointCommandType = -1; // v2.15 NULL -> -1
// v1.41 Ä¿¼ ¸ð¾ç º¯°æ
m_stMCursor.sCursorFrame = 0;
// »ç¿ëÁßÀ̾ú´ø ½ºÅ³À» Á¦°Å
ClearSkillUsingStatus();
}
// Ÿ°Ý ¹ÞÀº ¸Þ½ÃÁö¸¦
_RemoveChatMsgListByObjectID(wObjectID - 30000);
for (i = 1; i < DEF_MAXCHATMSGS; i++)
if (m_pChatMsgList[i] == NULL) {
ZeroMemory(cTxt, sizeof(cTxt));
if (sV1 != 0) {
if (sV1 > 0)
wsprintf(cTxt, "-%dPts", sV1); //pts
else strcpy(cTxt, "Critical!");
int iFontType;
if ((sV1 >= 0) && (sV1 < 12)) iFontType = 21;
else if ((sV1 >= 12) && (sV1 < 40)) iFontType = 22;
else if ((sV1 >= 40) || (sV1 < 0)) iFontType = 23;
m_pChatMsgList[i] = new class CMsg(iFontType, cTxt, m_dwCurTime);
}
else {
strcpy(cTxt, " * Failed! *");
m_pChatMsgList[i] = new class CMsg(22, cTxt, m_dwCurTime);
PlaySound('C', 17, 0);
}
m_pChatMsgList[i]->m_iObjectID = wObjectID - 30000;
if (m_pMapData->bSetChatMsgOwner(wObjectID - 30000, -10, -10, i) == FALSE) {
delete m_pChatMsgList[i];
m_pChatMsgList[i] = NULL;
}
return;
}
break;
}
}
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Quick question, sorry for bothering you, and anyone can awnser this...
That means all I have to do is change it by adding that little line in order for the "Critical!" message to appear when the damage exceeds 200?
Or, was that an example, and not something you could actually use?
Code: Select all
if (damage < 0){
damage += 200
//display damages
}
Or, was that an example, and not something you could actually use?