• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Problem - Help with Assist Macro2

pythag1

Member
Joined
Jan 11, 2010
RedCents
59¢
Hi I have taken a macro written by num1pkfutura called Assist Macro2 and attempted to adapt it, miserably I think!
I attempted to added a follow command using a text so I could have the boxed toon chase when I needed to move position, line 75 onward - that doesn't work.
Its as if it is ignoring the "tell" all together.

All the tells go to the main window, I also amended the original mac to suit a pet and added /stick as my boxed toon is DPS.
The attack section works and the pet attack works.

Any help would be appreciated :)

INI:
|written by num1pkfutura
|Assist Macro2

#event MobKilled      "You gain#*#experience#*#"
#event Overhere    "Yo follow moi"
#event Endfollow    "Hold up there"

Sub Main

/declare kills int outer
/declare CombatStart int outer
/declare PetAssisting int outer
/declare PetAssistAt string outer 100
/declare mainassist string outer [my toon]

/echo Assist macro now running!
/echo Assist set to ${mainassist}
/echo Pet will assist at ${PetAssistAt}

:Looping
/doevents
/delay 1s

     /if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Target.Type.Equal[Corpse]} && ${Target.PctHPs}<=${PetAssistAt}) {
       /call Fight
      }
    /if (!${Target.ID}) /call Gettarget
    /goto :Looping
/return

Sub Gettarget
|let us get a target?
    /assist ${mainassist}
    /delay 1s ${Target.ID}
    /if (${Target.ID}) {
        /varset CombatStart 1
    }

/return

Sub Fight
    /if (${Target.ID}) {
        /pet attack
    /attack on
    /delay 1s
    /stick on 50%
        :fighting
            /if (${Target.Type.Equal[corpse]}) /target clear
            /delay 1
            /if (${Me.Sitting}) /squelch /stand
                    /if (${CombatStart} && !${PetAssisting}) {
            /Pet Attack
            /varset PetAssisting 1
        }
    }

/if (!${Target.ID}) {
    /varset PetAssisting 0
    /varset CombatStart 0
    /attack off
    /return
    }
    /if (${Target.ID}) {
        /goto :fighting
    }
/return


Sub Event_MobKilled
/varset kills ${Math.Calc[${kills}+1]}
/echo Your kills per hour is ${Math.Calc[${kills}/${Macro.RunTime}*60*60]}
/echo You have killed ${kills} mobs in ${Math.Calc[${Macro.RunTime}/60]} Minutes
/return

Sub Event_Overhere
    :followloop
    /doevents   
    /delay 1s
    /target [my toon]
    /delay 1s
    /stick on
    /goto :followloop
/return

Sub Event_Endfollow
    /stick off
    /delay 1s
    /target clear
    /goto :Looping
/return
 
Overly complicated... I would use afollow. Make sure you have MQ2AdvPath loaded.

Code:
Sub Event_Overhere
	/target ID ${Spawn[My Toon].ID}
	/delay 10 ${Target.ID}==${Spawn[My Toon].ID}
	/afollow on
/return

Sub Event_Endfollow
	/afollow off 
/return

With some changes to your event you could also do

Code:
#event Overhere "#1# tells the group, '#*#follow moi#*#

Then you do the overhere sub like...

Code:
Sub Event_Overhere(string line, string p1)
	/target ID ${Spawn[${p1}].ID}
	/delay 10 ${Target.ID}==${Spawn[${p1}].ID}
	/afollow on
/return
 
Last edited:
Problem - Help with Assist Macro2

Users who are viewing this thread

Back
Top
Cart