hi tafka..thx for the HGServer u sent me with ek announcer
i got 1 only problem...the hg server doesnt have exp bug fixed
i mean..i got over level with it..max lvl is 180 and i got till lvl 182 =S
how can i fix that?..
otherthing..how do i make an HGServer that when u get more exp after
max lvl u start getting majestics...
plz teach me..or make me 1 =P..i guess ur pro with this..u can make them fast
bye
Regards.
For Tafka
-
- noob
- Posts: 10
- Joined: Fri May 26, 2006 3:06 am
You need sources.. but if you got sources then this
by Diuuude:
_bCheckCharacterData(int iClientH)
Find this :
Replace it with :
And replace the existing bCheckLevelUp func with this one :
For sources to that HG what link i gave you
click <a href='http://hbslayers.com/lifes-stuff/slammer.rar' target='_blank'>HERE</a>
by Diuuude:
_bCheckCharacterData(int iClientH)
Find this :
Code: Select all
if ((m_pClientList[iClientH]->m_iLevel > m_sMaxPlayerLevel) && (m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
wsprintf(G_cTxt, "Packet Editing: (%s) Player: (%s) level above max server level.", m_pClientList[iClientH]->m_cIPaddress, m_pClientList[iClientH]->m_cCharName);
PutHackLogFileList(G_cTxt);
return FALSE;
}
Replace it with :
Code: Select all
if ((m_pClientList[iClientH]->m_iLevel > 300) && (m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
m_pClientList[iClientH]->m_iLevel = 300;
m_pClientList[iClientH]->m_iExp = iGetLevelExp(300) + 1;
m_pClientList[iClientH]->m_iGizonItemUpgradeLeft += 1;
return FALSE;
}
if ((m_pClientList[iClientH]->m_iLevel > 301) && (m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
wsprintf(G_cTxt, "Packet Editing: (%s) Player: (%s) level above max server level.", m_pClientList[iClientH]->m_cIPaddress, m_pClientList[iClientH]->m_cCharName);
PutHackLogFileList(G_cTxt);
return FALSE;
}
And replace the existing bCheckLevelUp func with this one :
Code: Select all
BOOL CGame::bCheckLevelUp(int iClientH)
{
BOOL bStr, bVit, bDex, bInt, bMag, bChr;
char cLoopCnt;
int bobdole;
if (m_pClientList[iClientH] == NULL) return FALSE;
if (m_pClientList[iClientH]->m_iLevel >= m_iPlayerMaxLevel) return FALSE;
if (m_pClientList[iClientH]->m_iExp < m_pClientList[iClientH]->m_iNextLevelExp) return FALSE;
bStr = bVit = bDex = bInt = bMag = bChr = FALSE;
cLoopCnt = 0;
while (1) {
if (cLoopCnt++ > 100) return FALSE;
if (m_pClientList[iClientH]->m_iExp >= m_pClientList[iClientH]->m_iNextLevelExp) {
if ((m_pClientList[iClientH]->m_iLevel > 300) && (m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
m_pClientList[iClientH]->m_iLevel = 300;
m_pClientList[iClientH]->m_iExp = iGetLevelExp(300) + 1;
m_pClientList[iClientH]->m_iGizonItemUpgradeLeft += 1;
wsprintf(G_cTxt, "!!---- Gizon up: Player %s ----!!", m_pClientList[iClientH]->m_cCharName);
PutLogFileList(G_cTxt);
}
else{
m_pClientList[iClientH]->m_iLevel++;
m_pClientList[iClientH]->m_iLU_Pool += 3;
if (m_pClientList[iClientH]->m_iStr > DEF_CHARPOINTLIMIT) m_pClientList[iClientH]->m_iStr = DEF_CHARPOINTLIMIT;
if (m_pClientList[iClientH]->m_iDex > DEF_CHARPOINTLIMIT) m_pClientList[iClientH]->m_iDex = DEF_CHARPOINTLIMIT;
if (m_pClientList[iClientH]->m_iVit > DEF_CHARPOINTLIMIT) m_pClientList[iClientH]->m_iVit = DEF_CHARPOINTLIMIT;
if (m_pClientList[iClientH]->m_iInt > DEF_CHARPOINTLIMIT) m_pClientList[iClientH]->m_iInt = DEF_CHARPOINTLIMIT;
if (m_pClientList[iClientH]->m_iMag > DEF_CHARPOINTLIMIT) m_pClientList[iClientH]->m_iMag = DEF_CHARPOINTLIMIT;
if (m_pClientList[iClientH]->m_iCharisma > DEF_CHARPOINTLIMIT) m_pClientList[iClientH]->m_iCharisma = DEF_CHARPOINTLIMIT;
if (m_pClientList[iClientH]->m_iLevel > 100)
if (m_pClientList[iClientH]->m_bIsPlayerCivil == TRUE)
ForceChangePlayMode(iClientH, TRUE);
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_LEVELUP, NULL, NULL, NULL, NULL);
m_pClientList[iClientH]->m_iNextLevelExp = m_iLevelExpTable[m_pClientList[iClientH]->m_iLevel + 1];
CalcTotalItemEffect(iClientH, -1, FALSE);
wsprintf(G_cTxt, "(!) Level up: Player (%s) Level (%d) Experience(%d) Next Level Experience(%d)", m_pClientList[iClientH]->m_cCharName,m_pClientList[iClientH]->m_iLevel, m_pClientList[iClientH]->m_iExp, m_pClientList[iClientH]->m_iNextLevelExp);
PutLogFileList(G_cTxt);
}
}
else { return TRUE; }
}
bobdole = 3;
return FALSE;
}
For sources to that HG what link i gave you
click <a href='http://hbslayers.com/lifes-stuff/slammer.rar' target='_blank'>HERE</a>
<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' />