Pages:<< prev 1 next >>
#1 Oct 27, 2011 8:21 pm
Magician
GroupMembers
Posts239
JoinedJun 13, 2008
Poking about even more, I've noticed that do_rpconvert doesn't check to see if the class you've selected is already at max level.
Example:
I have 30 out of 30 combat levels, I spend rpp via rpconvert to increase combat by 1. It takes my rpp, but won't set me to combat level 31 as that is beyond the defined max level.
ayuri
Example:
I have 30 out of 30 combat levels, I spend rpp via rpconvert to increase combat by 1. It takes my rpp, but won't set me to combat level 31 as that is beyond the defined max level.
ayuri
#2 Oct 27, 2011 10:59 pm
Magician
GroupMembers
Posts189
JoinedSep 5, 2010
in do_rpconvert, towards the top, but below the other sanity checks, add a check to see if you're already at max level. if you are, return out of function. This stops the process and saves the rpp...you can also send a message to the player about why it didn't work at the same time.
#3 Oct 27, 2011 11:30 pm
Last edited Oct 28, 2011 12:43 am by ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008
You got it, just haven't set up a fix yet as I found it at work while I was adding in more bonuses. Wanted to at least get it posted. :D
**EDIT my quick and dirty method to just dump it out is this:
In misc.c do_rpconvert
find:
And change it to:
Granted you could clean it up, but it gets the point across
ayuri
**EDIT my quick and dirty method to just dump it out is this:
In misc.c do_rpconvert
find:
if( UPPER( argument[0] ) == UPPER( ability_name[iClass][0] ) && !str_prefix( argument, ability_name[iClass] ) && str_prefix( argument, "force" ))
And change it to:
if( UPPER( argument[0] ) == UPPER( ability_name[iClass][0] ) && !str_prefix( argument, ability_name[iClass] ) && str_prefix( argument, "force" ) && (max_level(ch, iClass) < 30) )
Granted you could clean it up, but it gets the point across
ayuri
Pages:<< prev 1 next >>