• 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

Healing macro

Pugs

Member
This is a copy of afkcleric that was ported for druid use and is no i hope being ported for shaman use but there seems to be an error around lines 21 and 22 and they look ok to me so i am going to post it and see if any one can see whats is going wrong.

No such 'group' member 'PctHPs'

Rich (BB code):
#event OutOfMana "Insufficient Mana to cast this spell!" 
#event OutOfRange "Your target is out of range, get closer!" 
#event Fizzle "#*#Your spell fizzles!#*#" 


#include spell_routines.inc

Sub Main 
/declare Healpct int outer 75
/declare Groupnum int outer 
/declare i int local
/declare Delay int outer 
/declare Casting string outer 

:chkevent 
   /doevents 
   /varset Groupnum ${Group} 
   | *** AutoHeal *** 
:Healcheck 
   /for i 1 to ${Group} 
      /if (${Group[${i}].PctHps}<=${Healpct}) { 
              /if (${Group[${i}].PctHPs}<1) /goto :nextmember 
              /if (${Group[${i}].Class.Name.Equal["Warrior"]}) /goto :Tankheal 
              /if (${Group[${i}].Class.Name.Equal["Paladin"]}) /goto :Tankheal 
              /if (${Group[${i}].Class.Name.Equal["Shadow Knight"]}) /goto :Tankheal 
              /if (${Group[${i}].Class.Name.Equal["Monk"]}) /goto :Tankheal 
         /doevents 
         /goto :CasterHeal 

:Tankheal 
          	 /sit off
             /target pc ${Group[${i}].Name} 
             /g Inc Healing %T as fast as i can.
             /varset Casting Healing
             /call cast "Healing" gem6 3s
             /doevents 
             /varset Delay ${Math.Calc[${Spell[Healing].MyCastTime}*10+10]} 
             /delay ${Delay}  
             /goto :nextmember 
          

:Casterheal 
    		 /sit off
             /target pc ${Group[${i}].Name} 
             /g Incoming 'Super' quickheal on %t! 
             /varset Delay ${Math.Calc[${Spell[Healing].MyCastTime}*10+25]} 
             /varset Casting Healing
             /call cast Healing gem6 3s
             /doevents 
             /delay ${Delay} 
         } 
:nextmember 
      } 
   /next i 
   /goto :chkevent 
/return 

Sub Event_MeHit 
    /if (${Me.PctHPs}<=60 { 
                
                /target myself 
                /sit off 
                /g Quickhealing 'Super Shaman' %t! 
                /varset Casting Healing 
                /call cast "Healing" 
                /doevents 
                /varset Delay ${Math.Calc[${Spell[Healing].MyCastTime}*10+5]} 
                /delay ${Delay} 
              
          
    } else /if (${Me.PctHPs}<=40 AND ${Me.PctHPs}>25) { 
            /target myself 
            /sit off
            /g Fast Heal on %t! 
            /varset Delay ${Math.Calc[${Spell[Healing].MyCastTime}*10+25]} 
            /varset Casting Healing
            /call cast "Healing" 
            /doevents 
            /delay ${Delay} 
          
    } else { 
        /sit off 
    }    
          
        
      
/return 


Sub Event_fizzle 
/return DAMN_FIZZLE 
/if (${Macro.Return.Equal["DAMN_FIZZLE"]}) /goto :Healcheck 

Sub Event_OutOfRange 
    /g %t your OOR of the Super Shaman! 
    /delay 1s 
/return
 
Change
Rich (BB code):
/if (${Group[${i}].PctHps}<=${Healpct}) {
to this
Rich (BB code):
/if (${Group[${i}].PctHPs}<=${Healpct}) {
the "HP" in "PctHPs" should both be capitolized.
 
Group need to be Group.Member like so
Rich (BB code):
/if (${Group.Member[${i}].PctHPs}<=${Healpct}) {
I missed that first time around, and it looks like you'll need to go thru and change it for the rest of the macro as well.
 
Healing macro

Users who are viewing this thread

Back
Top
Cart