Changing max stats?/ searched but no luck

Posted by Wrath on Mon 12 Jul 2004 09:11 PM — 4 posts, 18,057 views.

USA #0
I'm new to coding but picking up quick. I can't seem to find where to edit the max stats. max str is 25 but since I've changed the max level and will have stronger characters I wanted to change the max stat to like 35 for all not 25. I know with bonus it will go up but i want the base stat to be able to go up to 35. Any help to the right file to look in would be great.

Thanks
Amended on Mon 12 Jul 2004 09:12 PM by Wrath
Australia Forum Administrator #1
I can't see where the limit of 25 is enforced anyway. Where do you see that? Is there an error message?

The closest I can get is in do_mset, where I see this ...


   if ( IS_NPC(victim) )
    {
        minattr = 1;
        maxattr = 25;
    }
    else
    {
        minattr = 3;
        maxattr = 18;
    }


So, if I try to mset myself to 35 I see this:


mset self str 35
Build: Nick: mset self str 35
Strength range is 3 to 18.

USA #2
Sorry I'm working with rom2.4 and smaug so Imust have gotten the two mixed up.
USA #3
pc_data &Vpc = *victim->GetPcData ();

if (ch->GetTrustLevel () < victim->GetTrustLevel () && !victim->IsNpc ()){
ch->SendText ("You can't do that!\n\r");
ch->dest_buf = NULL;
return;
}
if (lockvictim)
ch->dest_buf = victim;

if (victim->IsNpc ()) {
minattr = 20;
maxattr = 999;
} else {
minattr = 20;
maxattr = 999;
}


*********************************************
This is in character.cpp//Con attribute, rest are in there also
*********************************************
int CCharacter::GetConstitution ()
{
short max;

if (IsNpc () || ClassTable.GetAttrPrime (m_Class) == APPLY_CON) then
max = 999;
else max = 999;

return URANGE (3, perm_con + mod_con, max);





Build: God: mset self str 5000
Strength range is 20 to 999.


search for those lines (mine were already edited so I dont knwo what the origionals were but change them and itll fix your problem =)