No level jump
I remember long ago was HB Xpanded
600/800, was good server until it got hacked.

<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' />
It didn't get hacked... Our hosts comp shat itself and I couldn't be fkd putting it back up....Tafka12 wrote: I remember long ago was HB Xpanded600/800, was good server until it got hacked.
I wont give you exact code, because i'd like you to try yourself first, so I'll give you some hints..
Code: Select all
CGame::iGetLevelExp(int iLevel)
The reason why there is a level jump is because after the integer max's out it just sets the next level xp to 0, so you jump 100 levels. You only jump 100 levels at a time as defined in
Code: Select all
CGame::bCheckLevelUp(int iClientH)
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
i have the the full code and some other edits, you dont have to go through the whole xp table just need to change a few codes and thats it. i have it all in a txt, maybe ill releaseOrkl wrote:It didn't get hacked... Our hosts comp shat itself and I couldn't be fkd putting it back up....Tafka12 wrote: I remember long ago was HB Xpanded600/800, was good server until it got hacked.
I wont give you exact code, because i'd like you to try yourself first, so I'll give you some hints..
Thats the function you need.. You need to change the function to an unsigned 64 bit integer, aswell as the return value. I also halved the XP table so that the integer can hold the xp values all the way up to 800..Code: Select all
CGame::iGetLevelExp(int iLevel)
The reason why there is a level jump is because after the integer max's out it just sets the next level xp to 0, so you jump 100 levels. You only jump 100 levels at a time as defined in
Code: Select all
CGame::bCheckLevelUp(int iClientH)
i dont know if this will work but try this out...
Client.h search for:
then change to:
Game.cpp search for:
replace the whole function to this:
Game.h search for:
change it to:
after search for:
and change to:
search:
change to:
i think this will work fine =)
Client.h search for:
Code: Select all
int m_iExp;
int m_iNextLevelExp;
int m_iExpStock;
Code: Select all
unsigned __int64 m_iExp;
unsigned __int64 m_iNextLevelExp;
unsigned __int64 m_iExpStock;
Code: Select all
int CGame::iGetLevelExp(int iLevel)
{
int iRet;
if (iLevel == 0) return 0;
iRet = iGetLevelExp(iLevel - 1) + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17) ) );
return iRet;
}
Code: Select all
unsigned __int64 CGame::iGetLevelExp(int iLevel)
{
unsigned __int64 iRet;
if (iLevel == 0) return 0;
iRet = iGetLevelExp(iLevel - 1) + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17) ) );
return iRet;
}
Code: Select all
int iGetLevelExp(int iLevel);
Code: Select all
unsigned __int64 iGetLevelExp(int iLevel);
Code: Select all
int m_iLimitedUserExp, m_iLevelExp20;
Code: Select all
unsigned __int64 m_iLimitedUserExp, m_iLevelExp20;
Code: Select all
int m_iLevelExpTable[3500];
Code: Select all
unsigned __int64 m_iLevelExpTable[3500];
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
I didn't do all that
but it looks like it works 
Remember to change integers in client too else they'll be inaccurate


Remember to change integers in client too else they'll be inaccurate

<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
Ja, its all you need to doCrossfade wrote:i didn't do all that either, only the igetlevelexp function i changed to 64 and i made a few changes elsewhere on the negative exp check and another placeOrkl wrote: I didn't do all thatbut it looks like it works
Remember to change integers in client too else they'll be inaccurate![]()

<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
helo i need little help with that error mayby someone can help me :> thx alot
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(-8377) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(-8374) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
Error executing cl.exe.
HGserver.exe - 2 error(s), 6 warning(s)
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(-8377) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(-8374) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
Error executing cl.exe.
HGserver.exe - 2 error(s), 6 warning(s)
(iLevel / 17) * (iLevel / 17) ) );
search this and edit to
(iLevel / 200) * (iLevel / 200) ) );
or just higher the numbers... your just making that you need lower exp for same level. so u dont have lvl jump
search this and edit to
(iLevel / 200) * (iLevel / 200) ) );
or just higher the numbers... your just making that you need lower exp for same level. so u dont have lvl jump
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
It gives you a way of fixing a error, Look at it closely.Zly wrote: helo i need little help with that error mayby someone can help me :> thx alot
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(-8377) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(-8374) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
Error executing cl.exe.
HGserver.exe - 2 error(s), 6 warning(s)
error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(-8377) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
There you go, Change your unsigned __int64 to signed __int64use signed __int64
ok i change somthing but now i have that errors:
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : error C2144: syntax error : missing ';' before type '__int64'
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : error C2501: 'use' : missing storage-class or type specifiers
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
HGserver.exe - 3 error(s), 4 warning(s)
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : error C2144: syntax error : missing ';' before type '__int64'
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : error C2501: 'use' : missing storage-class or type specifiers
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
HGserver.exe - 3 error(s), 4 warning(s)
What did you change?Zly wrote: ok i change somthing but now i have that errors:
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : error C2144: syntax error : missing ';' before type '__int64'
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : error C2501: 'use' : missing storage-class or type specifiers
C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
HGserver.exe - 3 error(s), 4 warning(s)