• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Bard heal mac addition

letmein

New member
Was wondering if anyone had any idea how to code the following.

I currently Include Wind of Marr in my /twist when I play to counter act the maulings I get. Problem is, when I'm at 100% health, I'm losing valuable DPS because I keep recasting Marr.

What would I have to include in my macro to only cast Marr when Below 90% health?

And would it mess up my /twist? Or just include it as part of the twist or what?

Thanks again!
 
(add this at the end of your delcares in the macro)
Rich (BB code):
/declare turnedon outer FALSE
(add this somewhere in the main loop)
Rich (BB code):
/call CheckHPs
(add this to the end)
Rich (BB code):
Sub CheckHPs
  /if (${Me.PctHPs}<90 && !${turnedon}) {
    /twist <gem> <gem> <gem> <gem> <gem>
    /varset turnedon TRUE
  } else {
    /if (${turnedon}) {
      /twist <gem> <gem> <gem> <gem>
      /varset turnedon FALSE
    }
  }
/return

Put each peice where it says in the macro. Replace <gem> with the corresponding #'s of your song gems you are using. The extra variable is there to check and see if /twist has switched so it doesn't constantly reset your twist when the sub is called. This isn't tested and I'm well known for leaving out brackets and ( all the time :D It should work though.

**EDIT**
Already had to fix a bug :mad:
Also make sure there isn't already a Sub named CheckHPs if there is rename the one here to something else and make sure to change the /call CheckHPs to whatever you renamed Sub CheckHPs to.
 
Last edited:
Does not work. Anyone else?

I got the following error

/varset failed, variable 'turnedon' not found

macname.mac@39(checkhps):/varset turnedon true
macname.mac@15(main):/call checkhps
 
Yes.



#turbo
#Event Zoned "#*#You have entered#*#"


Sub Main
/declare turnedon FALSE


:loopstart
/doevents
/call GMcheck
/call CheckHPs
/if (${Target.Level}>67) /tar npc next
/if (${Target.Distance}>220) /keypress esc
/if (${Target.ID}==FALSE) /tar NPC radius 220
/delay 10
/goto :loopstart
/return

Sub GMcheck
/if (${Spawn[gm].ID}) {
/echo Gm detected
/beep
/beep
/beep
/keypress 9
/endmac
/unload
/q
}
/return

Sub CheckHPs
/if (${Me.PctHPs}<90 && !${turnedon}) {
/twist 1 2 3 4 5
/varset turnedon TRUE
} else {
/if (${turnedon}) {
/twist 1 2 3 4 5 6
/varset turnedon FALSE
}
}
/return

Sub event_camp
/sit
/camp desk
/return

sub event_zoned
/delay 5s
/sit
/camp desk
/endmac
/return
 
whoops that's my bad im pretty sure.

/declare turnedon outer FALSE

>< change the declare and you should be good to go. Edited in reply above as well.
 
This fixed it to some extent.

No errors anymore. However when I am below 90% health all it does it tries to twist 1 2 3 4 5 6, (the twist with regen like it is supposed to) and the twist 1 2 3 4 5 back and forth back and forth over and over in a loop. It is not even casting Selo's once, it is switching back between the two over and over and over again.

It needs to just play 6 <regen> as /twist 1 2 3 4 5 6 until I am above 90% health again then switch back to doing just DPS /twist 1 2 3 4 5

Almost there...
 
Rich (BB code):
Sub CheckHPs
  /if (${Me.PctHPs}<90 && !${turnedon}) {
    /twist <gem> <gem> <gem> <gem> <gem>
    /varset turnedon TRUE
  } else {
    /if (${turnedon} && ${Me.PctHPs}>90) {
      /twist <gem> <gem> <gem> <gem>
      /varset turnedon FALSE
    }
  }
/return

Give this a try. Added a HP check to the else so it shouldn't switch it back unless the twist has change AND you are over 90%
 
Bard heal mac addition

Users who are viewing this thread

Back
Top
Cart