• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Bandolier Sample

Overtimer

Seasoned veteran member
Joined
May 8, 2021
RedCents
748¢
This is a working Lua Bandolier, this has 4 parts to it. This is working very well.

1) It will check if you're holding the 2h or Shield so it doesn't spam the switch.
2) Check how many mobs are in the camp to switch to shield if you have too many.
3) Will check your HP, if you are holding 2H and your health drops below the setpoint it will force you to shield. Also adds a timer before you can go back to 2H, to avoid a constant loop.
4) Now you can use the 2H if there are more than 3 mobs in camp, if they not are hitting hard.

Features that I want to add in the future, I do not know if some of these are even possible with Lua.

1) I want 1 program to have features that will check your class and use those settings, to have only one program to maintain.
2) GUI interface, also I want remote access to it from a different toon.
3) Setpoints built into the GUI.


It is a tall order for me, but I am having fun doing it.





Notes:
---------------Replace #3 with whatever the most mobs you want to handle with 2H
---------------Replace 80% the lowest you want your hp when switching to 2H
---------------Replace 30% the lowest you want your hp when In 2H, this will force Shield
---------------Make sure to name your 2-hand to (2H) & Shield to (Shield) or replace mine with your names.
---------------Change the 20s to the time limit to leave shield mode.
---------------Replace #80 with the lowest HP with the most mobs you want to handle with 2H




05/08/2022-----Added a new feature it will check if your HP is ok if more mobs in camp than you have set, (good for lower-level mobs). This allows 2H with low-hitting mobs. Great after a nasty pull.
 

Attachments

Last edited:
I have my TankBandoSwap macro but i plan on doing a really cool lua project with it in the near future

I based that on my react, hehe.

My wish list for OMG Bando swap would be, lol.

1) Its own window, with auto, and hand override.
2) Based on # of mobs on the agro list.
3) Based on Heath's %.
4) Based on a Name and no ads. (if I have a Name I would like to burn his ass down, lol)

I forgot to mention, Been using the react on my bard based when he has a lot of mezing to do.
I got him a Blood-Soaked shield, and he seems to be really tough to kill if we pull too many
 
Ok, I need some help, I cannot figure this out.
The text in bold is not working, I know I got the 2H wrong but not sure how to do it.
This is working, Kind of cool to get this far, lol. The shield should be easy to add once I get this side working 100%

local mq = require('mq')

if mq.TLO.Me.XTarget() < 3 and not mq.TLO.Me.Bandolier'2H'.Active then
mq.cmd('/bandolier activate 2H')

end
 
Parentheses. mq.TLO.Bandolier('2H'). Active ()
Thank you, but I am getting the error: attempt to call field 'Bandolier'(a nil value) stack traceback:

if mq.TLO.Me.XTarget() < 3 and not mq.TLO.Bandolier('2H'). Active () then
 
Woot, I got it, I guess I am an idiot and didn't see that Me was dropped by Mythas, lol.

Will add the rest of the code and expand from there.

if mq.TLO.Me.XTarget() < 3 and not mq.TLO.Me.Bandolier('2H'). Active () then
mq.cmd('/bandolier activate 2H')
 
Ok, I thought this part would be easy, but how do you loop the program and keep from exiting the program?
I look at other codes and can't see the pattern.

-- By Overtimer with a lot of help from real programmers.
local mq = require('mq')

if mq.TLO.Me.XTarget() < 3 and not mq.TLO.Me.Bandolier('2H'). Active () then
mq.cmd('/bandolier activate 2H')
return
end
if mq.TLO.Me.XTarget() > 2 and not mq.TLO.Me.Bandolier('Shield'). Active () then
mq.cmd('/bandolier activate Shield')
return
end
 
I got it. Now I can have fun, adding to this.
Seems like I am talking to myself, lol.
 
Ok, I need to work on some of the features I want to add.

Can Lua check for class and return its value?

Edit found it.

${Target.Class.Name.Equal[Class]}

I will convert it to Lau now.
 
Last edited:
Added a new feature it will check if your HP is ok if more mobs in camp than you have set, (good for lower-level mobs). This allows 2H with low-hitting mobs. Great after a nasty pull.

I am not 100% happy with the check. I wish I had a delayed-on.
Not sure how to do it with Lua.

if mq.TLO.Me.PctHPs() >= 80 <<<<<<<<<<<< this condition needs to stay true till for so many seconds. if not the value resets to false.
 
Sorry for not getting back. The workweek started and got busy.

Wouldn't the While Command stop the program (delay) within that loop?
I need to play with Repeat Command, not sure if that is another loop that halts things.
 
Very nice Lua, specially with the conditions. awesome:)
 
Hello, is the bandolier Lua still maintained?
I notice that I have problems when I have a bandolier with arrows and then I run out of arrows during play time. It would be cool if the Lua can pause the moment the arrows are missing.
 
Question - Bandolier Sample

Users who are viewing this thread

Back
Top
Cart