This is my very first post, while I don't expect anyone involved in this project to be gentle I would happily take suggestions for improving this macros.
This is also my first macro that I spent more than 8 minutes on. This macro is for a cleric in their early to mid 40's (that's all that I've tested anyway)
Usage: zone into forgotten halls and let it rip.
Here's what it does, (I know you alll can read the code much better than I) however: This will target the nearest NPC, I use it the rat area, kill it. Then med to full and repeat. Every 41.667 Minutes it will rebuff the toon.
Critism welcome, if this helps you, all the best to you.
Code: Select all
| This Macro has been created for a cleric to kill things in forgotten halls
| This macro is level specific and needs to be updated when you get better spells
#turbo
#Include spell_routines.inc
Sub Main
/declare bufftimer timer outer 0
/declare session timer outer 0
/varset session 20000s
:main
/if (!${session}) /goto :dead
/if (!${bufftimer}) /goto :rebuff
/sit off
/keypress F8
/keypress 1
/goto :loop
:loop
/if (${Me.Casting.ID}) /goto :loop
/if (${Target.ID} && ${Target.Type.NotEqual[PC]}) {
/call cast "Retribution" }
/delay 5
/if (${Me.PctHPs}< 10) goto :dead
/if (${Target.ID}) /goto :loop
/goto :med2full
:med2full
/target <toon>
/if (${Me.Standing} && !${Me.Mount.ID}) /sit
/if (${Me.PctMana}< 50) /goto :med2full
/if (${Target.PctHPs}< 75) /goto :healme
/if (${Me.PctMana}> 99) /goto :main
/goto :med2full
:healme
/target <toon>
/call cast "Superior Healing"
/delay 5
/goto :med2full
:rebuff
/target <toon>
/call cast "Blessing of Faith"
/delay 20
/call cast "Armor of Faith"
/delay 20
/call cast "Resolution"
/delay 20
/call cast "Symbol of Naltron"
/varset bufftimer 2500s
/goto :med2full
:dead
/say I died
/call cast "gate"
/endmacro
I'm having trouble figuring out how to use /doevents
as I want to put in a check that if I get a tell from someone (I have no in game friends) it makes me gate and ends the macro. I'll pose that in the help section
Pantz
Edits: Clean Code not done however made changes
Added a check for target type NOT a PC as under the right circumstances I was nuking myself
Changed some logic so if HP's drop too low it attempts a gate
Changed the End of Session /goto in order to gate back to bind.
Note: This Macro decays at level 49 (this toon not twinked)
mobs were kicking my butt all over. Need to learn how to macro a skin spikes potion +)



