• 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

Need line in macro for heal

My macro needs a way to heal my tank even if it is in the middle of another sub.

How is the quickest way to:

/if (toonname.PctHPs}<=80) {
/call cast "chlorotrope" gem3 5s
/g Healing %t
/delay 5
}

If possible I would want the check to occur without losing my current target or reselecting target as soon as check/heal is finished and continueing on with sub.
 
Rich (BB code):
Sub Heal
/target Toonname
 /if (Target.PctHPs}<=80) {
/call cast "chlorotrope" gem3 5s
/g Healing %t
/delay 5
}
/return
Then have /call Heal in all of your subs.. that's a ghetto way of doing it :P



This is how my shaman is setup:
Rich (BB code):
| In submain declares
  /declare HotSpell string outer Spiritual Serenity
  /declare HealSpell string outer Yoppa's Mending

|HEAL / HOT PERCENTAGES
  /declare HealMA  int outer 80
  /declare HotMelee int outer 60
  /declare HotCaster int outer 85
  /declare HotDps  int outer 70
  /declare HotCanni int outer 45 
  /declare HealCaster  int outer 55
  /declare HealMelee int outer 50
  /declare HealDps int outer 50
  /declare HealCanni int outer 35


  |CLASS DECLARATIONS
    /declare meleeClasses   string outer "Warrior/Shadow Knight/Paladin"
    /declare casterClasses  string outer "Cleric/Druid/Enchanter/Wizard/Magician"
    /declare dpsClasses     string outer "Rogue/Monk/Beastlord/Berserker"
    /declare canniClasses   string outer "Necromancer/Shaman"

/declare gmember  int outer 0 
  
  /declare MeleeHoTTimer timer outer 0
  /declare CasterHoTTimer timer outer 0
  /declare DpsHoTTimer  timer outer 0
  /declare CanniHoTTimer timer outer 0

This is my healing sub
Rich (BB code):
Sub CheckHP
/for gmember 0 to ${Group.Members}

  /if (${casterClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HotCaster} && ${CasterHoTTimer}<=0) {
        /target ${Group.Member[${gmember}]}
           /call cast "${HotSpell}" gem5 4s
 /varset CasterHoTTimer 42s   
  }

  /if (${casterClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HealCaster}) {
         /target ${Group.Member[${gmember}]} 
          /call cast "${HealSpell}" gem6 4s
  
  }
  /if (${meleeClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HotMelee} && ${MeleeHoTTimer}<=0) {
         /target ${Group.Member[${gmember}]}
           /call cast "${HotSpell}" gem5 4s
         /varset MeleeHoTTimer 42s  
  } 
  /if (${meleeClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HealMelee}) {
         /target ${Group.Member[${gmember}]}
           /call cast "${HealSpell}" gem6 4s
  
  }  
  /if (${dpsClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HotDps} && ${DpsHoTTimer}<=0) {
          /target ${Group.Member[${gmember}]}
/if (${Target.PctHPs}<=${Math.Calc[${HotDps}-5]}) /return
           /call cast "${HotSpell}" gem5 4s
            /varset DpsHoTTimer 42s
  } 
  /if (${dpsClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HealDps}) {
          /target ${Group.Member[${gmember}]}
           /call cast "${HealSpell}" gem6 4s
   
  } 
  /if (${canniClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HotCanni} && ${CanniHoTTimer}<=0) {
          /target ${Group.Member[${gmember}]}
           /call cast "${HotSpell}" gem5 4s
           /varset CanniHoTTimer 42s
  } 
  /if (${canniClasses.Find[${Group.Member[${gmember}].Class.Name}]} && ${Group.Member[${gmember}].PctHPs}<=${HealCanni}) {
         /target ${Group.Member[${gmember}]}
           /call cast "${HealSpell}" gem6 4s
           
  } 
/next gmember


/return

That's for keeping everyone in group healed... Then in my :mainloop I have this:
Rich (BB code):
/target ${MA}
  /if (${Target.CleanName.Equal[${MA}]} && ${Target.PctHPs}<=${HealMA}) {
    /call cast "${HealSpell}" 
     /if (${Target.PctHPs}==100) /stopcast
    }
That's for keeping the MT up
 
Need line in macro for heal

Users who are viewing this thread

Back
Top
Cart