Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2013, 01:02 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Ruleset

I was curious on something in the rules_values table. You have different ruleset_id that are keyed to the rule_sets table. How do you switch to a different rule_set ? Which one is used and how can you tell? I did some searching and saw this was implemented many years ago but there does not appear to be many threads on it.
Reply With Quote
  #2  
Old 11-05-2013, 01:17 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

The Ruleset column exists in the zone table. no idea if it is used, would have to look at the code.
Reply With Quote
  #3  
Old 11-05-2013, 06:26 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Quote:
Originally Posted by sorvani View Post
The Ruleset column exists in the zone table. no idea if it is used, would have to look at the code.
It works! I found out the hard way with random zones being on different rule sets and making me losing items when I died

Its very nice to have multiple rule sets because pathing works differently in certain zones and you need different rules to keep the mobs from jumping like Jordan.
Reply With Quote
  #4  
Old 11-05-2013, 09:35 AM
causticcoder
Fire Beetle
 
Join Date: Oct 2013
Posts: 8
Default

Must not be for every rule though, like 'Bots:CreateBotCount' it appears to be on ruleset_id=1. Or maybe if no higher rule exists it goes to the lowest integer?
Reply With Quote
  #5  
Old 11-05-2013, 09:45 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

If the rule doesnt exist in the database for that ruleset I am pretty sure it uses the rules in the source. (dont quote me on that! But I think it works that way lol)

Check out common\ruletypes.h


Code:
#ifdef BOTS
RULE_CATEGORY ( Bots )
RULE_REAL ( Bots, BotManaRegen, 2.0 ) // Adjust mana regen for bots, 1 is fast and higher numbers slow it down 3 is about the same as players.
RULE_BOOL ( Bots, BotFinishBuffing, false ) // Allow for buffs to complete even if the bot caster is out of mana.  Only affects buffing out of combat.
RULE_INT ( Bots, CreateBotCount, 150 ) // Number of bots that each account can create
RULE_INT ( Bots, SpawnBotCount, 71 ) // Number of bots a character can have spawned at one time, You + 71 bots is a 12 group raid
RULE_BOOL ( Bots, BotQuest, false ) // Optional quest method to manage bot spawn limits using the quest_globals name bot_spawn_limit, see: /bazaar/Aediles_Thrall.pl
RULE_BOOL ( Bots, BotGroupBuffing, false ) // Bots will cast single target buffs as group buffs, default is false for single. Does not make single target buffs work for MGB.
RULE_BOOL ( Bots, BotSpellQuest, false ) // Anita Thrall's (Anita_Thrall.pl) Bot Spell Scriber quests.
RULE_INT ( Bots, BotAAExpansion, 8 ) // Bots get AAs through this expansion
RULE_CATEGORY_END()
#endif
Reply With Quote
  #6  
Old 11-05-2013, 10:17 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

Quote:
Originally Posted by NatedogEZ View Post
If the rule doesnt exist in the database for that ruleset I am pretty sure it uses the rules in the source. (dont quote me on that! But I think it works that way lol)
I quoted you anyway. Yes that is the way it works.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:38 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3