View Single Post
  #19  
Old 09-23-2008, 07:02 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

if you wanted to add a rule in for damage bonuses, all you should have to do is add:

In attack.cpp
Code:
if(RuleB(Combat, UseDamageBonus)){

}
So that it encompasses your damage bonus calculations completely.

Then, just add it to the ruletypes.h file like this:

Code:
RULE_BOOL ( Combat, UseDamageBonus, true) //default is true to enable damage bonuses
into the combat section of the file.

Then just add the optional SQL if you want to disable it. But you don't even need the SQL if you want to leave it enabled, since the default is true:

Optional SQL:
Code:
Insert into rule_values values (0, 'Combat:UseDamageBonus', true);
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote