Leveling In 3.02

All Helbreath Server Source Discussion here.
Josh
Regular
Posts: 68
Joined: Tue May 02, 2006 1:14 am

Post by Josh »

Can someone tell me why in 3.02, you can only get 1 level at a time. Right now im lvl 23 with 10 mil exp lol. I dont like high exp server, but this is annoying for first levels. How to fix?
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Josh wrote: Can someone tell me why in 3.02, you can only get 1 level at a time. Right now im lvl 23 with 10 mil exp lol. I dont like high exp server, but this is annoying for first levels. How to fix?
are you the Josh i know?
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Josh
Regular
Posts: 68
Joined: Tue May 02, 2006 1:14 am

Post by Josh »

Depends which josh you know.

anyone know the fix instead of me? :P
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Josh wrote: Depends which josh you know.

anyone know the fix instead of me? :P
tell me a little about yourself in pm if you will. then i'll see if your the one i know
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

Josh wrote: Can someone tell me why in 3.02, you can only get 1 level at a time. Right now im lvl 23 with 10 mil exp lol. I dont like high exp server, but this is annoying for first levels. How to fix?
i got this bug too and others... gms can lvling, the monsters dont respawn
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>
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

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;
//Drajwer-  gm nie moze zdobyc lvli / gm cant lvlup
	if (m_pClientList[iClientH]->m_iAdminUserLevel > 0) return FALSE;
	if (m_pClientList[iClientH]->m_iLevel >= m_iPlayerMaxLevel)
	{
  if (m_pClientList[iClientH]->m_iExp > m_iLevelExpTable[m_iPlayerMaxLevel+1])
  {
  	m_pClientList[iClientH]->m_iExp = m_iLevelExpTable[m_iPlayerMaxLevel];
  	SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_EXP, NULL, NULL, NULL, NULL);
  	if (m_pClientList[iClientH]->m_iGizonItemUpgradeLeft < 0)
  	{
    m_pClientList[iClientH]->m_iGizonItemUpgradeLeft = 0;
  	}
  	m_pClientList[iClientH]->m_iGizonItemUpgradeLeft++;
  	SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_GIZONITEMUPGRADELEFT, m_pClientList[iClientH]->m_iGizonItemUpgradeLeft, 1, NULL, NULL, NULL);
  }
	}
	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)
  {
  	
  	m_pClientList[iClientH]->m_iLevel++;
  	m_pClientList[iClientH]->m_iLU_Pool += 3;
  	// TĚT¦T¦Tž+Ç+î T¬+ÇTŞTąT-+ŹT¬Tí T++ź+ç+Ĺ +ćT»T-T¦+äTí +ć+Ě+Ç+Ä+ćT«TŞTŽ +ü+ÁT-TíTŻ+â+ä+ĹTż+č +ç+ĹT++Ö.
  	//  	if ( (m_pClientList[iClientH]->m_cLU_Str + m_pClientList[iClientH]->m_cLU_Vit + m_pClientList[iClientH]->m_cLU_Dex +
<= DEF_TOTALLEVELUPPOINT) {
  	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);
  }
  else { return TRUE; }
	}
	bobdole = 3;
	return FALSE;
} 
majestics are working.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

That dont fix the LVL up bug i think ;) but a nice idea we will see what comes up in the future... dont worry guys they will be probably a fix.
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

Firestorm wrote: That dont fix the LVL up bug i think ;) but a nice idea we will see what comes up in the future... dont worry guys they will be probably a fix.
lol. try that code - im using it and its working 100% and gizons too.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

yeah its working sry i didnt add it into my source for a look thanks mate.
Josh
Regular
Posts: 68
Joined: Tue May 02, 2006 1:14 am

Post by Josh »

it didnt fix the lvl bug....
Ace
Regular
Posts: 68
Joined: Sat Apr 03, 2004 5:14 am

Post by Ace »

yup it still same gm can level up :(
charlie
Outpost4lyfe
Posts: 3324
Joined: Sun Apr 06, 2003 12:24 am
Location: Mt GOD
Contact:

Post by charlie »

this Josh =! charlie

clearing that up
Girlfriends are dedicated hookers.
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

Josh wrote: it didnt fix the lvl bug....
its work for me.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
laizkloom
Regular
Posts: 78
Joined: Sun Feb 27, 2005 8:41 am

Post by laizkloom »

I get few errors : /

C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(40833) : error C2143: syntax error : missing ';' before '<='
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(40833) : error C2059: syntax error : ')'
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(40833) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(40847) : error C2181: illegal else without matching if
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(40854) : error C2601: 'RequestTeleportHandler' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(41340) : error C2601: 'RequestRestartHandler' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(41410) : error C2601: 'MobGenerator' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(42504) : error C2601: 'InitPlayerData' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(42668) : error C2601: 'AutoClearMap' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(42692) : error C2601: 'SetAngelFlag1' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(42706) : error C2601: 'SetAngelFlag2' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(42720) : error C2601: 'SetAngelFlag3' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(42734) : error C2601: 'SetAngelFlag4' : local function definitions are illegal
C:\Documents and Settings\Kasutaja\Desktop\Server\HG Source\HGServer - Source\Game.cpp(42747) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

Game.obj - 14 error(s), 0 warning(s)
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

you got to put ; after every line. not only in some lines.

about function definations i dont know what you got there.
<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' />
Post Reply