Fix Magestic Point [problem]

All Helbreath Server Source Discussion here.
Post Reply
maku
Regular
Posts: 42
Joined: Sat Dec 11, 2004 5:10 am

Post by maku »

Hi..in my sources add:
Under BOOL CGame::bCheckLevelUp(int iClientH)
you will se a line like this:

Code: Select all

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; 
Change it to:

Code: Select all

if (m_pClientList[iClientH] == NULL) 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++; 
  if (m_pClientList[iClientH]->m_iGizonItemUpgradeLeft > 50) { 
   m_pClientList[iClientH]->m_iGizonItemUpgradeLeft = 50; 
  } 
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_GIZONITEMUPGRADELEFT, m_pClientList[iClientH]->m_iGizonItemUpgradeLeft, 1, NULL, NULL, NULL); 
 } 
} 
This will work like Original Majestic Upgrade.. you just need to code the weapons upgrade...

Guide by slammer.

well..This code not work for me..see it

Code: Select all

reserved-fightzone-id = 0 0 0 
special-ability-time = 0 
locked-map-name = NONE 
locked-map-time = 0 
crusade-job = 0 
crusade-GUID = 0 
construct-point = 0 
dead-penalty-time = 0 
party-id = 0 
gizon-item-upgade-left = -842150451
negative gizon item upgrade left..how fix it?


srry my english is bad..i speak only spanish..Thx :huh:
morbid
Regular
Posts: 69
Joined: Fri Jul 30, 2004 4:28 pm

Post by morbid »

it works for me... this dont works if you Edit your char.. try get it manualy :D
maku
Regular
Posts: 42
Joined: Sat Dec 11, 2004 5:10 am

Post by maku »

I edit my char..I need code for weapon upgrade?? or sources 2.24b have it?
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Code: Select all

  	if (m_pClientList[i]->m_iLevel < 180)  {
    if (m_pClientList[i]->m_iGizonItemUpgradeLeft > 0) {
    	m_pClientList[i]->m_iGizonItemUpgradeLeft = 0;
    }
  	}
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
maku
Regular
Posts: 42
Joined: Sat Dec 11, 2004 5:10 am

Post by maku »

Locobans no entiendo como hacer eso..que tengo que reemplazar o agregar esa linea?, todavia me faltaria el code de los magestic upgrade..osea de los items?, no? :ph34r:
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Esa linea cambia los majestic en el character.txt siempre y cuando entre un jugador al HGserver con los majestic en numberos negativos ejemplo: -8151651 se los pone en 0 y asi al agregar su proximo punto, se convierte en +1 y no en

-8151651 + 1 = -8151650 B)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Audioslave
noob
Posts: 24
Joined: Sat Dec 25, 2004 2:40 pm

Post by Audioslave »

Anda a Client.cpp y agrega esto:

Code: Select all

m_iGizonItemUpgradeLeft  = 0;
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

locobans wrote:

Code: Select all

  	if (m_pClientList[i]->m_iLevel < 180)  {
    if (m_pClientList[i]->m_iGizonItemUpgradeLeft > 0) {
    	m_pClientList[i]->m_iGizonItemUpgradeLeft = 0;
    }
  	}

Code: Select all

  	if (m_pClientList[i]->m_iLevel < 180)  {
    	m_pClientList[i]->m_iGizonItemUpgradeLeft = 0;
  	}
How can a lvl 180- get GIZON...... zzzzzzz
You're coding like siementech... Adding useless checks.
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Post Reply