Page 1 of 1

MoR/MoB/Heal Cleric-Macro

Posted: Thu May 19, 2005 11:37 am
by ms1089
Hi, after a bit of procrastinating I decided to have my first post here, too. Until now the only macros I made and used for myself were very small and situnational ones that - I would guess - no one else but me could use, anyway. However, I made this one from a request on the request boards (yes!), out of boredom. It's still pretty simple, but in relation, it's one of my longer macros, hehe. Reason for posting it is, that I would like to hear some advice on what I could have made better/in a different way. And maybe some people could even use it as it is, as well.
As the macro is now, it makes the cleric use MoR pants, MoB spell, and CH. But that's of course something that could be easily altered. TIA.

Code: Select all

| PL.mac by ms1089
| Usage: /mac PL <name of PL'ee> <percentage of heal>
| Example: /mac PL Bob 50

#include spellcast.inc
#event dead "#*#have been slain#*#"
#event resist "#*#Your target resisted#*#"
#event marked "#*#gleams with bright red runes#*#"
#event marked "#*#bound by the mark of the blameless#*#"


sub main
  /echo Heal&MoR PL Macro

  /declare plee string outer ${Param0}
  /declare healhps int outer ${Param1}
  /declare mobid int outer
  /declare idaq int outer
  /declare mor int outer

  /declare markspell string outer Ultor's Greaves of Faith
  /declare markspell2 string outer Mark of the Blameless
  /declare healspell string outer Complete Healing

  /if (!${Defined[Param0]}) {
   /echo You didn't name your PL'ee
   /echo Usage: /mac PL <name of PL'ee> <percentage of heal>
   /echo Ex: /mac PL Bob 50
   /endmac
  }

  /if (!${Defined[Param1]}) {
   /echo You didn't define when to heal
   /echo Usage: /mac PL <name of PL'ee> <percentage of heal>
   /echo Ex: /mac PL Bob 50
   /endmac
  }
   
  /keypress Esc

   :mainloop
      /call assist
      /call mark
      /call mark2
      /call heal
      /call checkifdead
      /doevents
   /goto :mainloop


sub assist
   :assist
   /if (${mor}==0 && ${idaq}==0) {
      /assist ${plee}
      /delay 1s
      /if (${Target.Type.Equal[NPC]}) {
         /varset mobid ${Target.ID}
         /varset mor 0
         /varset idaq 1
         /echo Target aquired.
         /goto :assist
      }
   }
   /doevents
   /return

sub mark
   :mark
   /if (${mor}==0 && ${idaq}==1) {
      /target ID ${mobid}
      /if (${Target.ID} && ${Target.PctHPs}<98 && ${Target.Distance}<80) {
         /target ID ${mobid}
         /echo Casting MoR
         /call cast "${markspell}" item
         /doevents
         /goto :mark
      }   
   }
   /doevents
   /return

sub mark2
   :mark2
   /if (${mor}==1 && ${idaq}==1) {
      /target ID ${mobid}
      /if (${Target.ID} && ${Target.PctHPs}<98 && ${Target.Distance}<80) {
         /target ID ${mobid}
         /echo Casting MoB
         /call cast "${markspell2}"
         /doevents
         /goto :mark2
      }   
   }
   /doevents
   /return

sub heal
   :heal
   /if (${mor}==2 && ${idaq}==1) {
      /target ${plee}
      /if (${Target.ID} && ${Target.PctHPs}<${healhps} && ${Target.Distance}<80) {
         /target ${plee}
         /echo Casting HEAL
         /call cast "${healspell}"
         /goto :heal
      }
   }
   /doevents
   /return

sub checkifdead
   /if (${mor}>0 && ${idaq}>0) {
      /if (!${Spawn[${mobid}].Type.Equal[NPC]}) {
         /echo Mob defeated. Waiting for next.
         /varset idaq 0
         /varset mor 0
      }
   }
   /return

sub event_dead
   /echo You have been owned. GL finding a rezz. Ending Macro.
   /endmac
     
sub event_resist
   /echo ${Target.CleanName} RESISTED
   /return

sub event_marked
   /echo ${Target.CleanName} was MARKED
   /varset mor ${Math.Calc[${mor}+1]}
   /return

Posted: Thu May 19, 2005 12:33 pm
by A_Druid_00
My only suggestion would be to add a timer for each debuff to refresh it before it wears off. I'm not sure how long cleric debuffs last though, so it might not be necessarry. As a druid, my debuffs would sometimes wear off before the mob was dead.

Posted: Fri May 20, 2005 3:33 am
by wizzyman
It s looks nice.

Only thing i would add is a check PL'ee hp in both mark sub, as it s atm it will work in low mid lvl, but once the mobs will have a decent dps or will start resisting your mark, if u dont check PL'ee hp u may be late for the first heal. But am sure you'll twink your macro to handle this when you'll face the problem. Is how you learn macroing.

Keep up the good work. I wish more would do the same.

Posted: Mon May 23, 2005 9:20 am
by pythag
This macro is great to learn from - its structured and logical and very easy to follow, thanks learnt alot from this :D

The clerics mana situation may be a usefull add to this - currently editing it myself for this, again a great starting point.

Cool Stock Investment Tool Website

Posted: Tue Jan 27, 2026 11:52 am
by FrankJScott
In response to the lady talking about free stock analysis sites, best ai stock trading software, best artificial intelligence stocks to buy, shares in artificial intelligence, best ai investments, trade ai, artificial intelligence and stock market, best tool for stock market analysis, shares in chat gpt, ai investment opportunities, I highly recommend this your input here for stock market analysis app url or chat gpt investing, ai tech stock, ai stock forecast, best artificial intelligence stocks to buy now, ai stock trading companies, best tools to predict stock market, openai buy shares, shares in ai, free stock picker, trading technical analysis, which is worth considering with this new stock prediction software url not to mention best free stock market websites, stock trading advice, ai publicly traded companies, ai and the stock market, stock market analysis and prediction, buy stock in chat gpt, best free site for stock analysis, best stock prediction app, using ai to trade stocks, free stock picks for today, not forgetting sites such as this source about stock prediction app info which is also great. Also, have a look at this helpful hints for stock prediction app url as well as artificial intelligence companies to invest in, stock trading prediction, best stock market software, companies to invest in for ai, best ai stocks for the future, best stock ai, predict stock market, stock analysis best app, best trading app for technical analysis, best publicly traded ai companies, and don't forget this website on stock prediction app info on top of top ai stock picks, best free stock trading bot, ai shares, fundamental analysis of stocks, new ai stocks, home page on not forgetting sites such as artificial intelligence stock market, publicly listed ai companies, ai trading bot stocks, ai stock portfolio, stock market investment tools, and clicking here for for good measure. Check more @ Awesome Free Casino Bet Toto Tips 5d77320

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:37 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:38 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:39 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:41 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:43 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:44 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:45 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:46 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:47 am
by xyilla

Re: MoR/MoB/Heal Cleric-Macro

Posted: Sat Feb 07, 2026 12:50 am
by xyilla