No level jump

All Helbreath Server Source Discussion here.
ccineks
just visiting
Posts: 7
Joined: Fri Sep 01, 2006 9:04 pm

Post by ccineks »

On hb Xpandent max lev is 800 and no level jump .Where this created plz help me.
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

ccineks wrote: On hb Xpandent max lev is 800 and no level jump .Where this created plz help me.
it's in source
Tafka12
<3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

I remember long ago was HB Xpanded :P 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' />
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

Tafka12 wrote: I remember long ago was HB Xpanded :P 600/800, was good server until it got hacked.
It didn't get hacked... Our hosts comp shat itself and I couldn't be fkd putting it back up....

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)
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..

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-->
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Orkl wrote:
Tafka12 wrote: I remember long ago was HB Xpanded :P 600/800, was good server until it got hacked.
It didn't get hacked... Our hosts comp shat itself and I couldn't be fkd putting it back up....

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)
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..

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 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 release
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

i dont know if this will work but try this out...

Client.h search for:

Code: Select all

int m_iExp;
int m_iNextLevelExp;
int m_iExpStock;
then change to:

Code: Select all

unsigned __int64 m_iExp;
unsigned __int64 m_iNextLevelExp;
unsigned __int64 m_iExpStock;
Game.cpp search for:

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;
}
replace the whole function to this:

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;
}
Game.h search for:

Code: Select all

int iGetLevelExp(int iLevel);
change it to:

Code: Select all

unsigned __int64 iGetLevelExp(int iLevel);
after search for:

Code: Select all

int  m_iLimitedUserExp, m_iLevelExp20;
and change to:

Code: Select all

unsigned __int64 m_iLimitedUserExp, m_iLevelExp20;
search:

Code: Select all

int m_iLevelExpTable[3500];
change to:

Code: Select all

unsigned __int64 m_iLevelExpTable[3500];
i think this will work fine =)
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>
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

I didn't do all that :x but it looks like it works :D

Remember to change integers in client too else they'll be inaccurate :D
<!--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-->
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Orkl wrote: I didn't do all that :x but it looks like it works :D

Remember to change integers in client too else they'll be inaccurate :D
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 place
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

Crossfade wrote:
Orkl wrote: I didn't do all that :x but it looks like it works :D

Remember to change integers in client too else they'll be inaccurate :D
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 place
Ja, its all you need to do :)

<!--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-->
Zly
Regular
Posts: 36
Joined: Tue Dec 28, 2004 9:08 am

Post by Zly »

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)
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

(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
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

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)
It gives you a way of fixing a error, Look at it closely.
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
error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64
use signed __int64
There you go, Change your unsigned __int64 to signed __int64
Zly
Regular
Posts: 36
Joined: Tue Dec 28, 2004 9:08 am

Post by Zly »

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)

1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

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)
What did you change?
Zly
Regular
Posts: 36
Joined: Tue Dec 28, 2004 9:08 am

Post by Zly »

C:\Documents and Settings\blk\Pulpit\2.24d_server_sources\Game.cpp(24363) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.

HGserver.exe - 1 error(s), 4 warning(s)


Now this is my problem :)
Post Reply