Spell And Skill Rule for Above MaxLevel Players
This code is something that might not be considered for being added to the Official Source, but I wanted to post it in case any custom servers wanted to use the code.
This new rule is for setting an Extra Level Cap above the "MaxLevel" rule setting to correct some issues for players who are above "MaxLevel". My server MaxLevel is set to 70, so that is the highest level people can attain via normal experience. But, I also use quests for players to level from 70 to 75. Without this rule in place, all level 71+ player spells will be removed from their spell book every time they zone. They also won't be able to train any skills once they are level 71+. By setting this rule, it corrects the issues with spells being removed from the spell book for level 71+ players and also fixes issues with training skills from Class GMs. If the rule is not needed, it can simply be set to match whatever the MaxLevel rule is currently set to. If it is needed, you just need to set it to whatever the highest level attainable is on the server. common/ruletypes.h - Add to the Character Section Code:
RULE_INT ( Character, MaxExpLevel, 0 ) //Sets the Max Level attainable via Experience Remove this line: Code:
int8 maxlevel = RuleI(Character, MaxLevel) + 1; Code:
int8 maxlevel = RuleI(Character, MaxExpLevel) + 1; Code:
if(GetLevel() == RuleI(Character, MaxLevel)){ Code:
if(GetLevel() == maxlevel - 1){ Code:
Insert into rule_values values (0, 'Character:MaxExpLevel', 0); I would love to find a fix for player skills not being shown properly on the client for level 71+ as well as AC and Attack being calculated incorrectly on the client, but I am pretty sure that is a limit of the client since Titanium was only made for players up to level 70. Even though my skills do always show up properly when I am in GM mode no matter what level I am. So, maybe I can find a way for GM properties to be used for players so that they always see accurate skill numbers even when over level 70. As of right now, once you hit level 71+, all skills other than Languages and Tradeskills get rolled to 0 and are marked in RED. This is only a graphical display issue on the client, so the server still has all of the skills and AC/Attack calculated as they should be. But, I would love to get this display issue fixed if it is possible. For now, at least this rule fixes the issues with the Spellbook and Skills, which were both fairly annoying issues on my server. |
All times are GMT -4. The time now is 03:09 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.