EQEmu/Server — pull request #177 by clucksoft (2014-08-12 22:52:46+00:00)
Title: Implemented Raid OOC Regen

By request of Bobaski, this implements the raid target out of combat regen timer.

This adds a 'raid_target' column to npc_types, to specify whether a mob should be considered a raid target. 0 = not raid target, 1 = raid target.
If rest regen is enabled, it uses the new Character:RestRegenRaidTimeToActivate rule to set the timer.
The mechanics have been verified on live. If you kill a raid target and then engage a non raid target, the timer pauses for the duration of aggro, then resumes. The default timer is 5 minutes.

This does NOT work for bots/mercs at this time. Their rest timers are implemented very differently, not relying on hatelist interaction. If this feature is desired, someone more familiar with bot/merc code will probably need to do it.

Required SQL:
```ALTER TABLE `npc_types` ADD `raid_target` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `fixed`;```

Not sure if these are required:
```INSERT INTO `rule_values` (`ruleset_id`, `rule_name`, `rule_value`, `notes`) VALUES```
```(1, 'Character:RestRegenRaidTimeToActivate', 300, 'Time in seconds for rest state regen to kick in with a raid target.'),```
```(2, 'Character:RestRegenRaidTimeToActivate', 300, 'Time in seconds for rest state regen to kick in with a raid target.'),```
```(4, 'Character:RestRegenRaidTimeToActivate', 300, 'Time in seconds for rest state regen to kick in with a raid target.'),```
```(10, 'Character:RestRegenRaidTimeToActivate', 300, 'Time in seconds for rest state regen to kick in with a raid target.');```

The raid_target column can also be used for con messages: 'This creature looks like it would take an army to defeat!'. I haven't looked at adding that yet.