[Commands] Add #clearxtargets Command (#3833)

# Perl
- Add `$client->ClearXTargets()`.

# Lua
- Add `client:ClearXTargets()`.

# Notes
- Add `#clearxtargets` command for players.
- Allows operators/players to clear their XTargets if something get stuck on it.
This commit is contained in:
Alex King
2024-01-06 23:18:21 -05:00
committed by GitHub
parent 122fe398b4
commit 99d2e3a8b1
10 changed files with 95 additions and 2 deletions
+3 -2
View File
@@ -44,9 +44,10 @@ enum : int { //values for pTimerType
pTimerBeggingPickPocket = 27,
pTimerLinkedSpellReuseStart = 28,
pTimerLinkedSpellReuseEnd = 48,
pTimerClearXTarget = 50,
pTimerShieldAbility = 86,
pTimerShieldAbility = 86,
pTimerLayHands = 87, //these IDs are used by client too
pTimerHarmTouch = 89, //so dont change them
+1
View File
@@ -216,6 +216,7 @@ RULE_BOOL(Character, EnableRaidMemberEXPModifier, true, "Enable or disable the r
RULE_BOOL(Character, LeaveCursorMoneyOnCorpse, false, "Enable or disable leaving cursor money on player corpses")
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_CATEGORY_END()
RULE_CATEGORY(Mercs)