• 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 --->

Targeting problem (1 Viewer)

IamBigDaddy

Member
Joined
Oct 14, 2005
RedCents
80¢
Can someone help me with a line a code to select my tank, assist the tank and if tank has npc with under 98% hp targeted?

I am using /keypress 2 (Tank always inites everyone to group) then /assist.
The main problem with this is when mob dies toon continue with last instructions but have tank targeted.

Rich (BB code):
| this macro will Auto Assist ********

#chat group
#chat tell

#Event Attack  "#*#Time to beat down#*#"
#Event Heal  "#*#Let this be a time to heal our#*#"
#Event Root_Snare  "#*#We must restrict the movement#*#"
#Event Slow_Cripple  "#*#We must slow and weaken#*#"
#Event DoT  "#*#Start providing everlasting pain to#*#"
#Event Follow  "#*#It is time to#*#"
#Event Buff  "#*#Let us buff each other#*#"
#Event Stop_sit  "#*#This is a good place to rest for awhile#*#"
#Event Run  "#*#OMG It is time to leave...#*#"
#Event Root_Off1  "#*#Earthen Roots spell has worn off#*#"
#Event Root_Off2  "#*#55555Have patience while I piss off#*#"
#Event Snare_Off1  "#*#55555Have patience while I piss off#*#"
#Event Snare_Off2  "#*#555555Have patience while I piss off#*#"
#Event Slow_Off1  "#*#55555Have patience while I piss off#*#"
#Event Slow_Off2  "#*#Hav55555e patience while I piss off#*#"
#Event Cripple_Off1  "#*#55555Have patience while I piss off#*#"
#Event Cripple_Off2  "#*#5555Have patience while I piss off#*#"
#Event DoT_Off1  "#*#55555Have patience while I piss off#*#"
#Event DoT_Off2  "#*#55555Have patience while I piss off#*#"
#Event DoT_Off3  "#*#55555Have patience while I piss off#*#"
#Event DoT_Off4  "#*#55555Have patience while I piss off#*#"



#include spell_routines2.inc 



  
#turbo 40 

Sub Main 
 
 /declare TankName string local
 /echo main  
 /varset TankName Whatever
 /echo ${TankName} is main assist.
   :Start
   
    /doevents
    
    /delay 1
  /goto :start
  /return
    
    


Sub Event_Attack

/echo Attack

|BEASTLORD

   /if (${Select[${Me.Class.ShortName},BST]}) {
      /if (${Me.PctMana}<=20) /g LOM
      /keypress f2
      /delay 2
      /Assist
      /Delay 1s
      /Pet Attack
      /delay 1s
      /Attack
      /delay 1s
      /Stick
      }
      

|Shaman

   /if (${Select[${Me.Class.ShortName},SHM]}) {
      /if (${Me.PctMana}<=20) /g LOM
      /keypress f2
      /delay 1s
      /Assist
      /Delay 1s
      /Pet Attack
      }
           

|Druid

   /if (${Select[${Me.Class.ShortName},DRU]}) {
      /if (${Me.PctMana}<=20) /g LOM
      /keypress f2
      /delay 1s
      /Assist
      /Delay 1s
      /echo Pet should attack
      /Pet Attack
      }
            

|Ranger

   /if (${Select[${Me.Class.ShortName},RNG]}) {

      /if (${Me.PctMana}<=20) /g LOM
      /keypress f2
      /delay 1s
      /Attack
      /delay 1s
      /Stick
      }
           

|Bard

   /if (${Select[${Me.Class.ShortName},BRD]}) /return

|Paladin

   /if (${Select[${Me.Class.ShortName},PAL]}) /return

|Enchanter

   /if (${Select[${Me.Class.ShortName},ENC]}) /return

|Cleric

   /if (${Select[${Me.Class.ShortName},CLR]}) /return


   /return


Sub Event_Heal
   /declare gmember int local
   /declare pmember int local

 
|BEASTLORD

   /if (${Select[${Me.Class.ShortName},BST]}) {
      /if (${Me.PctMana}<=20) /g LOM

      /for gmember 0 to ${Group.Members}
         /target id ${Group.Member[${gmember}].ID}
         /delay 4
         /if (${Group.Member[${gmember}].PctHPs}<=60) {
            /call cast "Chloroblast" gem1 4s
            /g Healing %t
            /delay 4s
            }
         /g %t does not need my heal!
         /next gmember

     /for pmember 0 to ${Group.Members}
        /if (${Group.Member[${pmember}].Pet.ID}) {
           /target id ${Group.Member[${pmember}].Pet.ID}
           /delay 4
           /if (${Group.Member[${pmember}].Pet.PctHPs}<=50) {
           /call cast "Chloroblast" gem1 4s
           /g Healing %t
           }
        /g %t Does not need my healing
        }
        /next pmember
   }


|Shaman

   /if (${Select[${Me.Class.ShortName},SHM]}) {
      /if (${Me.PctMana}<=20) /g LOM

      /for gmember 0 to ${Group.Members}
         /target id ${Group.Member[${gmember}].ID}
         /delay 4
         /if (${Group.Member[${gmember}].PctHPs}<=50) {
            /call cast "Yoppa's Mending" gem3 4s
            /g Healing %t
            /delay 4s
            }
         /g %t does not need my heal!
         /next gmember

     /for pmember 0 to ${Group.Members}
        /if (${Group.Member[${pmember}].Pet.ID}) {
           /target id ${Group.Member[${pmember}].Pet.ID}
           /if (${Group.Member[${pmember}].Pet.PctHPs}<=50) {
           /call cast "Yoppa's Mending" gem3 4s
           /g Healing %t
           }
        /g %t Does not need my healing
        }
        /next pmember
   }

|Druid

   /if (${Select[${Me.Class.ShortName},DRU]}) {
      /if (${Me.PctMana}<=20) /g LOM

      /for gmember 0 to ${Group.Members}
         /target id ${Group.Member[${gmember}].ID}
         /delay 4
         /if (${Group.Member[${gmember}].PctHPs}<=75) {
            /call cast "Karana's Renewal" gem3 10s
            /g Healing %t
            /delay 5s
            }
            /next gmember
         /g %t does not need my heal!
         /next gmember

     /for pmember 0 to ${Group.Members}
        /if (${Group.Member[${pmember}].Pet.ID}) {
           /target id ${Group.Member[${pmember}].Pet.ID}
           /delay 4
           /if (${Group.Member[${pmember}].Pet.PctHPs}<=70) {
           /call cast "Chlorotrope" gem4 7s
           /g Healing %t
           }
           /next pmember
        /g %t Does not need my healing
        }
        /next pmember
   }

|Ranger

   /if (${Select[${Me.Class.ShortName},RNG]}) /return

|Bard

   /if (${Select[${Me.Class.ShortName},BRD]}) /return

|Paladin

   /if (${Select[${Me.Class.ShortName},PAL]}) /return

|Enchanter

   /if (${Select[${Me.Class.ShortName},ENC]}) /return

|Cleric

   /if (${Select[${Me.Class.ShortName},CLR]}) /return


   /return


Sub Event_Root_Snare


|BEASTLORD

   /if (${Select[${Me.Class.ShortName},BST]}) /return
      
|Shaman

   /if (${Select[${Me.Class.ShortName},SHM]}) /return

|Druid

   /if (${Select[${Me.Class.ShortName},DRU]}) {
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Earthen Roots" gem7 2s
      /g Attempting to Root %t
      /delay 3s
      /call cast "Bonds of Tunare" gem8 2s
      /g Attempting to Snare %t
      /return
      }

|Ranger

   /if (${Select[${Me.Class.ShortName},RNG]}) {
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Earthen Roots" gem7 2s
      /g Attempting to Root %t
      /delay 3s
      /call cast "Ensnare"
      /g Attempting to Snare %t gem8 2s
      /return
      }

|Bard

   /if (${Select[${Me.Class.ShortName},BRD]}) /return

|Paladin

   /if (${Select[${Me.Class.ShortName},PAL]}) /return

|Enchanter

   /if (${Select[${Me.Class.ShortName},ENC]}) /return

|Cleric

   /if (${Select[${Me.Class.ShortName},CLR]}) /return


   /return


Sub Event_Slow_Cripple

/echo Slow_Cripple

|BEASTLORD

   /if (${Select[${Me.Class.ShortName},BST]}) {
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Sha's Revenge" gem7 4s
      /g Slowing %t
      /delay 2s
      /call cast "Incapacitate" gem8 4s
      /g Crippling %t
      /return
      }
    




/return
      
|Shaman

   /if (${Select[${Me.Class.ShortName},SHM]}) {
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Crippling Spasm" gem7 4s
      /g Crippling %t
      /delay 4s
      /call cast "Cloud of Grummus" gem8 4s
      /g Slowing %t
      /return
      }

|Druid

   /if (${Select[${Me.Class.ShortName},DRU]}) /return

|Ranger

   /if (${Select[${Me.Class.ShortName},RNG]}) /return

|Bard

   /if (${Select[${Me.Class.ShortName},BRD]}) /return

|Paladin

   /if (${Select[${Me.Class.ShortName},PAL]}) /return

|Enchanter

   /if (${Select[${Me.Class.ShortName},ENC]}) /return

|Cleric

   /if (${Select[${Me.Class.ShortName},CLR]}) /return


   /return

Sub Event_DoT

/echo DoT


|BEASTLORD

   /if (${Select[${Me.Class.ShortName},BST]}) {
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Plague" gem4 4s
      /g Plague on %t
      /delay 2s
      /call cast "Scorpion Venom" gem5 4s
      /g Poisoning %t
      }

      
|Shaman

   /if (${Select[${Me.Class.ShortName},SHM]}) {
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Breath of Wunshi" gem5 4s
      /g DoT1 %t
      /delay 4s
      /call cast "Blood of Saryrn" gem4 4s
      /g DoT2 %t
      }
      

|Druid

   /if (${Select[${Me.Class.ShortName},DRU]})  {
      
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Wasp Swarm" gem3 4s
      /g Swarm on %t
      /delay 4s
      
      }
      
|Ranger

   /if (${Select[${Me.Class.ShortName},RNG]})  {
      
      /keypress f2
      /delay 10
      /assist
      /delay 10
      /call cast "Locust Swarm" gem3 4s
      /g Swarm on %t
      /delay 4s
      
      }
|Bard

   /if (${Select[${Me.Class.ShortName},BRD]}) /return

|Paladin

   /if (${Select[${Me.Class.ShortName},PAL]}) /return

|Enchanter

   /if (${Select[${Me.Class.ShortName},ENC]}) /return

|Cleric

   /if (${Select[${Me.Class.ShortName},CLR]}) /return



/return


Sub Event_Follow

/echo Follow

|BEASTLORD

   /if (${Select[${Me.Class.ShortName},BST]}) {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }
          
     
|Shaman

   /if (${Select[${Me.Class.ShortName},SHM]}) {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }
        
|Druid

   /if (${Select[${Me.Class.ShortName},DRU]})  {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }
          

/echo Follow4
|Ranger

   /if (${Select[${Me.Class.ShortName},RNG]}) {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }
         

|Bard

   /if (${Select[${Me.Class.ShortName},BRD]}) {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }
          

|Paladin

   /if (${Select[${Me.Class.ShortName},PAL]}) {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }
          

|Enchanter

   /if (${Select[${Me.Class.ShortName},ENC]}) {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }
          

|Cleric

   /if (${Select[${Me.Class.ShortName},CLR]}) {
      /keypress f2
      /delay 10
      /follow
      
      /g Following %t
      }


/return


Sub Event_Buff

/echo Buff



/return



Sub Event_Stop_Sit

/echo Stop_Sit

    /Sit
    /Delay 1s
    /return


Sub Event_Run

/echo Run

|Druid

   /if (${Select[${Me.Class.ShortName},DRU]})  {
      /delay 10
      /call cast "Circle of Knowledge" gem9 10s
      /g Lets get out of here
      /delay 4s
      
      }
      /return

/return



Sub Event_Aggro

/echo Aggro

    /Stand
    /Delay 1s
    /return

/return

,
 

Users who are viewing this thread

Back
Top