• 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

Keypress 7 with an auto heal

kindawg

New member
I am wondering how I might make it spamm keypress 7 with myself targeted when mana 10< , untill my mana 55>

For now I blocked the variables.

Thanks in advance. :)



Rich (BB code):
#Include spell_routines.inc

#Event temp "Your #${hpbuff}# spell has worn off of #${tankname}#."


Sub Main
/declare tankname string outer ${Target}
/declare healspell string outer "Soul Mending (KMRA)"
/declare hpbuff string outer "Champion of the Gods (KMRA)"
/declare selfhealpoint int outer 65
/declare tankhealpoint int outer 57
/declare healwho string outer
/Echo Shammy Heal AFK loaded.
:Mainloop
/doevents
|/if (${Me.PctMana}<=30) /call lom
/if (${Target.PctHPs}<=${tankhealpoint}) { 
/varset healwho ${tankname}
/call heal
}
/if (${Me.PctHPs}<=${selfhealpoint}) {
/varset healwho ${Me}
/call heal
}
/goto :Mainloop
/return

Sub Event_temp
/target ${tankname}
/g Im casting ${hpbuff} on <<<< ${Target} >>>>
/call cast "${hpbuff}"
/return

Sub heal
/target ${healwho}
/call Cast "Soul Mending (KMRA)"
/echo Casting "${healspell}"
/target ${tankname}
/return
----------------------
|sub lom
|/tell ${tankname} im low on mana
|/keypress 7
|:lomloop
|/if (${Me.PctMana}>50) {
|/gsay I'm at ${Me.PctMana}% mana
|/return
|}
|/goto :lomloop
|/return
|/keypress 7
|:lomloop
|/if (${Me.PctMana}>50) {
|/return
|}
|/goto :lomloop
|/return
 
might want to do a /nomodkey /keypress 7
just in case you have a different key pressed at the time the macro wants to hit the hotkey :)
 
Keypress 7 with an auto heal

Users who are viewing this thread

Back
Top
Cart