Skip to content

Commit

Permalink
- Added some more fine grained FD options
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 19, 2024
1 parent c5119ff commit 52191e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions utils/rgmercs_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Config.DefaultConfig = {
['ModRodManaPct'] = { DisplayName = "Mod Rod Mana %", Category = "Utilities", Tooltip = "What Mana % to hit before using a rod.", Default = 30, Min = 1, Max = 99, ConfigType = "Advanced", },
['ClarityPotion'] = { DisplayName = "Clarity Potion", Category = "Utilities", Tooltip = "Name of your Clarity Pot", Default = "Distillate of Clarity", ConfigType = "Advanced", },
['RunMovePaused'] = { DisplayName = "Run Movement on Pause", Category = "Utilities", Tooltip = "Runs the Movement/Chase module even if the Main loop is paused", Default = false, ConfigType = "Advanced", },
['StandFailedFD'] = { DisplayName = "Stand on Failed FD", Category = "Utilities", Tooltip = "Auto stands you up if you fall to the ground.", Default = true, ConfigType = "Normal", },

-- [ CLICKIES ] --
['UseClickies'] = { DisplayName = "Use Clickies", Category = "Clickies", Tooltip = "Use Clicky Items", Default = true, ConfigType = "Normal", },
Expand Down Expand Up @@ -171,6 +172,7 @@ Config.DefaultConfig = {
['DoMelee'] = { DisplayName = "Enable Melee Combat", Category = "Combat", Tooltip = "Melee targets.", Default = Config.Constants.RGMelee:contains(Config.Globals.CurLoadedClass), ConfigType = "Normal", },
['ManaToNuke'] = { DisplayName = "Mana to Nuke", Category = "Combat", Tooltip = "Minimum % Mana in order to continue to cast nukes.", Default = 30, Min = 1, Max = 100, ConfigType = "Advanced", },
['MovebackWhenTank'] = { DisplayName = "Moveback as Tank", Category = "Combat", Tooltip = "Adds 'moveback' to stick command when tanking. Helpful to keep mobs from getting behind you.", Default = false, ConfigType = "Advanced", },
['AutoStandFD'] = { DisplayName = "Stand from FD in Combat", Category = "Combat", Tooltip = "Auto stands you up from FD if combat starts.", Default = true, ConfigType = "Normal", },

-- [ Wards ] --
['WardsPlease'] = { DisplayName = "Enable Wards", Category = "Wards", Tooltip = "Enable Ward Type Spells", Default = true, ConfigType = "Normal", },
Expand Down
12 changes: 11 additions & 1 deletion utils/rgmercs_events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,18 @@ end)

-- [ GAME EVENT HANDLERS ] --

mq.event('Camping', "It will take you about #1# seconds to prepare your camp.", function(seconds)
mq.event('Camping', "It will take you about #1# seconds to prepare your camp.", function(_, seconds)
RGMercConfig.Globals.PauseMain = true
end)

-- [ END GAME EVENT HANDLERS ] --

-- [ FD EVENT HANDLERS ] --

mq.event('FallToGround', "#1# has fallen to the ground#*#", function(_, who)
if who == mq.TLO.Me.DisplayName() and RGMercUtils.GetSetting('StandFailedFD') then
mq.cmd("/stand")
end
end)

-- [ END FD EVENT HANDLERS ] --
2 changes: 1 addition & 1 deletion utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ function Utils.EngageTarget(autoTargetId, preEngageRoutine)

local target = mq.TLO.Target

if mq.TLO.Me.State():lower() == "feign" and not Utils.MyClassIs("mnk") then
if mq.TLO.Me.State():lower() == "feign" and not Utils.MyClassIs("mnk") and Utils.GetSetting('AutoStandFD') then
mq.TLO.Me.Stand()
end

Expand Down

0 comments on commit 52191e1

Please sign in to comment.