• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Healing macro (1 Viewer)

Pugs

Member
Joined
Feb 6, 2005
RedCents
644¢
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