Majestic Points Problem

All Helbreath Client Source Discussion here.
Post Reply
tamir
Regular
Posts: 53
Joined: Wed Feb 04, 2004 8:42 am

Post by tamir »

I have a character with 5 majestic points.
When i press the "upgrade" button i can see the majestic option but i can't press it.
If i get a majestic point by leveling, i can press the option, but when i relog i get the problem again.

Another problem is that i can't drag every weapon into the majestic upgrade box, only specific ones.

Are those client bugs? or can they be fixed in the HG?
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
RageIlluminati
Outpost bitch
Posts: 559
Joined: Wed Mar 30, 2005 6:45 am

Post by RageIlluminati »

tamir wrote: I have a character with 5 majestic points.
When i press the "upgrade" button i can see the majestic option but i can't press it.
If i get a majestic point by leveling, i can press the option, but when i relog i get the problem again.

Another problem is that i can't drag every weapon into the majestic upgrade box, only specific ones.

Are those client bugs? or can they be fixed in the HG?
have you binded that DK item you want to upgrade?

can you change your stats with majestic points?
<img src='http://helbreath.pri.ee/userbars/hbest-gamemaster2.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/hbsoccer-owner.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/scorpa-rider.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/logout-master.jpg' border='0' alt='user posted image' /> <br>.<br>................................Ego sum Rage, flagellum Dei!<br><br>The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? (bash.org)
tamir
Regular
Posts: 53
Joined: Wed Feb 04, 2004 8:42 am

Post by tamir »

oh, i have to bind it? :huh:
and when i try to upgrade the weapon it always fails...
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

tamir wrote: oh, i have to bind it? :huh:
and when i try to upgrade the weapon it always fails...

Code: Select all

  	if (m_pClientList[i]->m_iLevel < 180)  {
    if (m_pClientList[i]->m_iGizonItemUpgradeLeft > 0) {
    	m_pClientList[i]->m_iGizonItemUpgradeLeft = 0;
    }
  	}
That will fix the problem of majestic point going negative numbers in your character.txt file. Now if majestic is negative it will be 0 then from there you get 1 level and you get 1 point and it will not be lost.

~Locobans
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>
tamir
Regular
Posts: 53
Joined: Wed Feb 04, 2004 8:42 am

Post by tamir »

It doesn't change negative number to 0, it changes positive, but thx.
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

tamir wrote: It doesn't change negative number to 0, it changes positive, but thx.
Actually if you check here...

if (m_pClientList->m_iGizonItemUpgradeLeft > 0) {
if player majestic points are more than 0 (negative number)

m_pClientList->m_iGizonItemUpgradeLeft = 0;
set player majestic point to 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>
tamir
Regular
Posts: 53
Joined: Wed Feb 04, 2004 8:42 am

Post by tamir »

negative = lower than 0.
positive = higher than 0.
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

tamir wrote: negative = lower than 0.
positive = higher than 0.
You win then...i just now whenever i connect to my hgserver with gizon-item-upgade-left = a negative number, i automatically get 0 points.

~Locobans, good luck :)
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>
Shadoelement
Regular
Posts: 32
Joined: Mon Mar 15, 2004 8:26 pm

Post by Shadoelement »

Would this give me the ability to gain majestic points with the max level being 300 every time you level past 300?

Code: Select all

void CGame::PlayerOrder_ExchangeEXP(int iClientH) {
int i;
int exp;
int exp2;
char buff[100];
if (m_pClientList[iClientH]->m_iLevel < 300) {
 ShowInGameMsg(iClientH," You must be level 300");
 return;
}
exp  = m_pClientList[iClientH]->m_iExp; //ile ma expa
exp2 = exp-1588868078;

if (exp2>=25000000) 
{

exp2=exp2 / 25000000; //<- exp2 = points
m_pClientList[iClientH]->m_iMajesticCount += exp2;
wsprintf(buff," You have %d master upgrade points",exp2);
ShowRepNotice(iClientH,buff);
m_pClientList[iClientH]->m_iExp = 1588868078;//(exp2 * 50000000);
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_EXP, NULL, NULL, NULL, NULL);
}

If not, could someone put me in the right direction. :/
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

Shadoelement wrote: Would this give me the ability to gain majestic points with the max level being 300 every time you level past 300?

Code: Select all

void CGame::PlayerOrder_ExchangeEXP(int iClientH) {
int i;
int exp;
int exp2;
char buff[100];
if (m_pClientList[iClientH]->m_iLevel < 300) {
 ShowInGameMsg(iClientH," You must be level 300");
 return;
}
exp  = m_pClientList[iClientH]->m_iExp; //ile ma expa
exp2 = exp-1588868078;

if (exp2>=25000000) 
{

exp2=exp2 / 25000000; //<- exp2 = points
m_pClientList[iClientH]->m_iMajesticCount += exp2;
wsprintf(buff," You have %d master upgrade points",exp2);
ShowRepNotice(iClientH,buff);
m_pClientList[iClientH]->m_iExp = 1588868078;//(exp2 * 50000000);
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_EXP, NULL, NULL, NULL, NULL);
}

If not, could someone put me in the right direction. :/
i think :

void CGame::PlayerOrder_ExchangeEXP(int iClientH) {
int i;
int exp;
int exp2;
<span style='color:red'>int exp3;</span>
char buff[100];
if (m_pClientList[iClientH]->m_iLevel < 300) {
ShowInGameMsg(iClientH," You must be level 300");
return;
}
exp  = m_pClientList[iClientH]->m_iExp; //ile ma expa
exp2 = exp-1588868078;

if (exp2>=25000000)
{

<span style='color:red'>exp3=exp2 / 25000000; //<- exp2 = points</span> <span style='color:blue'>//exp already predefined variable.</span>

m_pClientList[iClientH]->m_iMajesticCount += <span style='color:red'>exp3;</span>
wsprintf(buff," You have %d master upgrade points",<span style='color:red'>exp3</span>);
ShowRepNotice(iClientH,buff);
m_pClientList[iClientH]->m_iExp = 1588868078;//(exp2 * 50000000);
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_EXP, NULL, NULL, NULL, NULL);
}




it looks logically correct to me. i dunno about using the int variable though, maybe it cant hold that big a number and needs to be put as long variable.

and i think that <span style='color:green'>m_iMajesticCount </span>should be <span style='color:green'>m_iGizonItemUpgradeLeft </span>

also dont forget if u want ur players to stay at lvl 300, u gotta do smth about it, or else they may level beyond that.

edit : i just realised u took this from arcanian's sources. my guess is its right.
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
tamir
Regular
Posts: 53
Joined: Wed Feb 04, 2004 8:42 am

Post by tamir »

how do i bind items, so i can upgrade them?
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

tamir wrote: how do i bind items, so i can upgrade them?
character-IDnum1 = 21533
character-IDnum2 = 314
character-IDnum3 = 1
Item should be...
character-item = ChainHose(M)        1 2 21533 314 1 0 0 0 0 494 8519680
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>
Post Reply