MQ2Bot and medding request

Norrathian

Lifetime Member
Joined
Jun 7, 2007
Messages
238
Reaction score
52
Points
28
Location
The hills of Tennessee
I've noticed after a mob killed, if the mana or endurance are below the medat threshold, he'll sit, but his ${Me.CombatState} is not RESTING, so there's no benefit to medding yet (AFAIK). Is it possible to set it so they only med if ${Me.CombatState} IS RESTING or to add a custom MedIf check?
 
  • Like
Reactions: EQDAB
There is no such check currently to allow you to customize it, behond MedStartAt, MedStopAt, and MedToFull
 
  • Like
Reactions: EQDAB
Is it possible to just have it not med if you're not in RESTING state? If you have cooldown, sitting doesn't help (and potentially draws attention).
 
  • Like
Reactions: EQDAB
As a setting, i don't think so. But i also don't think bot makes you stand up unless it is trying to cast something or moving, so could write a simple lua for if not sitting, casting, moving, mana below 80, and combatstate.equal[resting], then sit
 
  • Like
Reactions: EQDAB
local mq = require('mq')

while true do

if not mq.TLO.Me.Sitting() and not mq.TLO.Me.Casting.ID() and not mq.TLO.Me.Moving() and mq.TLO.Me.PctMana() < 80 and mq.TLO.Me.CombatState.Equal('RESTING')() then
mq.cmd('/sit')

end
end
 
  • Love
Reactions: EQDAB