View Single Post
  #3  
Old 03-03-2015, 08:45 AM
utbbop
Sarnak
 
Join Date: May 2009
Location: Mentor
Posts: 58
Default

Quote:
Originally Posted by Kingly_Krab View Post
Do you have multiple rulesets, if so, is the zone you're in on the ruleset you modified?

Here's the code.
zone/attack.cpp:
Code:
if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
    max_hit = (RuleI(Combat, HitCapPre10));
else if(GetLevel() < 20 && max_hit > RuleI(Combat, HitCapPre20))
    max_hit = (RuleI(Combat, HitCapPre20));
zone/tune.cpp:
Code:
if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
    max_hit = (RuleI(Combat, HitCapPre10));
else if(GetLevel() < 20 && max_hit > RuleI(Combat, HitCapPre20))
    max_hit = (RuleI(Combat, HitCapPre20));
Yes, I have multiple rule sets.
The HitCap Rule_Value is Ruleset_ID 10 (EQEmu_Default)
I had to create a custom Ruleset_ID of 11 to control max levels in each zone.
This means my zones will never have Ruleset_ID 10 as they will all need to have a Ruleset assigned to them that controls max level.

Is there any way to have more the one ruleset per zone or any way to tie them together somehow?

I saw something about using # to make something global? Can you advise if the following would work?

<Original Values>
Table: Rule_Values
Ruleset_ID: 10
Rule_Name: Combat:HitCapPre10
Rule_Value: 20

<Proposed Values>
Table: Rule_Values
Ruleset_ID: #
Rule_Name: Combat:HitCapPre10
Rule_Value: 500

<Additional Question>
Does the use of Ruleset_ID: # require me to create a new Ruleset_ID in the Rule_Sets table?

Example:
Ruleset_ID: #
Name: Global_Rule
Reply With Quote