[Rule] Mounts will wear off on zone (#3865)

* [Rule] Mounts will wear off on zone

Allows server admins to toggle if they want to prevent players from retaining mounts on zone. false is default to maintain current feature set.

* Added Date for mount zoning added
This commit is contained in:
Fryguy 2024-01-07 02:08:16 -05:00 committed by GitHub
parent 70a4b6a2b1
commit d6e1c3f187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -217,6 +217,7 @@ RULE_BOOL(Character, LeaveCursorMoneyOnCorpse, false, "Enable or disable leaving
RULE_BOOL(Character, ItemExtraSkillDamageCalcAsPercent, false, "If enabled, apply Item Extra Skill Damage as Percentage-based modifiers")
RULE_BOOL(Character, UseForageCommonFood, true, "If enabled, use the common foods specified in the code.")
RULE_INT(Character, ClearXTargetDelay, 10, "Seconds between uses of the #clearxtargets command (Set to 0 to disable)")
RULE_BOOL(Character, PreventMountsFromZoning, false, "Enable to prevent mounts from zoning - Prior to December 15, 2004 this is enabled.")
RULE_CATEGORY_END()
RULE_CATEGORY(Mercs)

View File

@ -681,8 +681,11 @@ void Client::CompleteConnect()
break;
}
case SE_SummonHorse: {
SummonHorse(buffs[j1].spellid);
//hasmount = true; //this was false, is that the correct thing?
if (RuleB(Character, PreventMountsFromZoning)) {
BuffFadeByEffect(SE_SummonHorse);
} else {
SummonHorse(buffs[j1].spellid);
}
break;
}
case SE_Silence: