Im lookin for macro that keeps track of the cleric mercs mana while afk exp grinding so it stops pulling when the cleric is to low to heal can anyone point me in the right direction looked up cleric mana check and im only seeing cleric scripts.


/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./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./lua run
Im lookin for macro that keeps track of the cleric mercs mana while afk exp grinding so it stops pulling when the cleric is to low to heal can anyone point me in the right direction looked up cleric mana check and im only seeing cleric scripts.
|------------------------------------------------------------
| Group Healer Name, Mana check to stop and resume pulling
|------------------------------------------------------------
/declare Do_Healer_Check int outer 1
/declare Healer_Name string outer healer_name_here
/declare Healer_Mana_Pause int outer 20
/declare Healer_Mana_Resume int outer 90
/declare waiting_spam int outer 1
/if (${Do_Healer_Check}) /call Check_Healer_Mana
|--------------------------------------------------------------------------------
| SUB: Check_Healer_Mana
|--------------------------------------------------------------------------------
Sub Check_Healer_Mana
/if (${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}>${Healer_Mana_Pause}) /return
:wait_for_healer
/if (${waiting_spam}) {
/echo Waiting for healer to med up. ${Healer_Name} has ${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}% mana
/varset waiting_spam 0
/timed 600 /varset waiting_spam 1
}
/if (${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}<${Healer_Mana_Resume}) /goto :wait_for_healer
/return
|------------------------------------------------------------
/declare Do_Healer_Check int outer 1
/declare Healer_Name string outer merc name
/declare Healer_Mana_Pause int outer 35
/declare Healer_Mana_Resume int outer 90
/declare waiting_spam int outer 1
This where my actual code starts
Sub Main
:AquireTarget
/echo camp one loaded
/makecamp return
/target npc worg los radius 300
/face fast
/alt activate 199
/killthis
/stick
/delay 90
/if (${Me.CombatState.Equal[combat]}) /goto :AquireTarget
}
/if (${Me.CombatState.Equal[Standing]}) /macro bardpull
/if (${Do_Healer_Check}) /call Check_Healer_Mana
(broken at this point of the macro)
Sub Check_Healer_Mana
/if (${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}>${Healer_Mana_Pause}) /return
:wait_for_healer
/if (${waiting_spam}) {
/makecamp return
/twist off
/target clear
/alt activate 212
/echo Waiting for healer to med up. ${Healer_Name} has ${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}% mana
/varset waiting_spam 0
/timed 600 /varset waiting_spam 1
}
/if (${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}<${Healer_Mana_Resume}) /goto :AquireTarget
The second macro is the pull script
Sub Main
:pull
/alt activate 3704
/echo pulling now
/target npc worg
/moveto id (is there a way to set a range feature on move to id i want him to pull from range character is walking up to mobs )
/alt activate 199
/if (${Me.CombatState.Equal[combat]}) /goto :Targetaquired
}
/if (${Me.CombatState.Equal[Standing]}) /goto :pull
}
:TargetAquired
/makecamp loc -1941 1144 (this places you right at the front of the worg camp)
/makecamp return
/delay 20s
/face fast
/macro worgcamp1
[code=rich] My Macro [/code]
My Macro
maybe pm'ing him with the fixes so he can edit it is better then a public example.| - Worg.mac v. 1.0 by macromanic
| - Revised by Maskoi 9/172010
| - Requires your toon is a Bard, MQ2Melee and MQ2MoveUtils
| This macro made for www.Redguides.com/www.NotAddicted.com
| Don't steal it or we'll punch your fase!
Sub Main
/declare Do_Healer_Check int outer 1
/declare Healer_Name string outer healer_name_here
/declare Healer_Mana_Pause int outer 35
/declare Healer_Mana_Resume int outer 90
/declare waiting_spam int outer 1
| - this places you right at the front of the worg camp
/makecamp loc -1941 1144
:mainloop
|- Zone Check end macro if any where else than loping plains or not a bard
/if (${Zone.ID}!=443 || ${Me.Class.Name.NotEqual[Bard]}) /end
/if (${MakeCamp.CampDist}>=10) /makecamp return
| - check healers mana so I have heals on pulls
/if (${Do_Healer_Check}) /call Check_Healer_Mana
:AquireTarget
/target clear
/if (!${Target.ID}) {
/echo Aquiring Target
/target npc worg los radius 300
}
/delay 10
/if (!${Target.ID}) /goto :AquireTarget
:Pull
/if (${Target.ID} && ${Target.Type.Equal[NPC]}) {
/if (${Me.Class.Name.Equal[Bard]} && !${Me.Buff[Selo's Sonata].ID}) /alt activate 3704
/face fast
/if (${Target.ID}) /echo Pulling ${Target.CleanName} now
:movetotarget
/moveto id
/delay 10
/if (${Target.Distance}>=51) /goto :movetotarget
/if (${Target.Distance}<=50) /moveto off
/if (${Target.Distance}<=50 && ${Target.LineOfSight} && ${Me.Class.Name.Equal[Bard]} && ${Me.AltAbilityReady[Boastful Bellow]}) /alt activate 199
/if (${Target.ID} && ${Me.CombatState.Equal[COMBAT]}) /goto :TargetAquired
/if (!${Target.ID}) /goto :AquireTarget
}
:TargetAquired
/if (${MakeCamp.CampDist}>=10) {
:returntocamp
/makecamp return
/delay 10
/if (${MakeCamp.CampDist}>=10) /goto :returntocamp
}
:WaitforMob
/face fast
/if (${Target.Distance}>=20) /goto :WaitforMob
:killtarget
/face fast
/killthis
/stick
/delay 90
/if (${Target.ID}) /goto :killtarget
/echo Target dead
/target clear
/goto :mainloop
/return
Sub Check_Healer_Mana
/if (${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}>${Healer_Mana_Pause}) /return
/if (${MakeCamp.CampDist}>=10) /makecamp return
/twist off
/target clear
/alt activate 212
:wait_for_healer
/if (${waiting_spam}) {
/echo Waiting for healer to med up. ${Healer_Name} has ${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}% mana
/varset waiting_spam 0
/timed 600 /varset waiting_spam 1
}
/if (${Group.Member[${Group.Member[${Healer_Name}]}].PctMana}<${Healer_Mana_Resume}) /goto :wait_for_healer
/return
vars set waiting spam not found error
ok i never used declares before do i need to set the name up of the cleric merc in the macro itself or is there a /declare function command i need to set in game?
Your rock man this worked awesome.
Thanks so much theres some slight gooberishness when it gets back to camp and it does this wierd jig there for a bit and it doent seem to pick up right away if theres a 2nd mob in camp but the code you wrote is awesome and im gonna tweek it a little or try to.
I cant thank you enough I learned a lot reading and going over your code compared to my hatchet job.
All this needs is a 20 count kill tracker and a go get task script ... not that im asking one to be made im gonna try and put one together ... wish me luck
|-------------------------------------------------------------------------------------
| Group Main Assist & Healer Mana/Endurance check to stop and resume pulling
|-------------------------------------------------------------------------------------
/declare MainAssist string Tank_Name
/declare DoMACheck int 1
/declare DoHealerCheck int 1
/declare HealerName string Healer_Name
/declare Debug int 0
/call DoWePause
|-------------------------------------------------------------------------------------
| SUB: DoWePause
|-------------------------------------------------------------------------------------
Sub DoWePause
/if (${Debug}) /echo DoWePause
/call CheckStats ${DoMACheck} "${MainAssist}" "${MAClass}" Endurance 20 90
/call CheckStats ${DoHealerCheck} "${HealerName}" "${HealerClass}" Mana 20 90
/if (${Debug}) /echo leave DoWePause
/return
|-------------------------------------------------------------------------------------
| SUB: CheckStats
|-------------------------------------------------------------------------------------
Sub CheckStats(int statcheck, charname, ckclass, stat, int pause,int resume)
/if (${Debug}) /echo statcheck ${statcheck} charname ${charname} ckclass ${ckclass} stat ${stat} pause ${pause} resume ${resume}
/if (!${statcheck} || !${Spawn[${ckclass} ${charname}].ID} || ${Group.Member[${Group.Member[${Spawn[Group ${ckclass} ${charname}]}]}].Current${stat}}>${pause}) /return
/echo Waiting for ${charname} to med up to ${resume}% ${stat}.
:wait_for_resume
/if (${Group.Member[${Group.Member[${Spawn[Group ${ckclass} ${charname}]}]}].Current${stat}}<${resume}) /goto :wait_for_resume
/echo ${charname} is now above ${resume}% ${stat} resuming activity.
/if (${Debug}) /echo leaving CheckStats
/return