2boxheal.mac --- using /tells to cast spells

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

mungobungo
orc pawn
orc pawn
Posts: 12
Joined: Thu Jul 31, 2008 11:01 pm

2boxheal.mac --- using /tells to cast spells

Post by mungobungo » Mon Sep 08, 2008 3:18 am

You could easily change this for a non-healer to cast any spells you want. This is just how I use it. Macro credit is anonymous.

"/tell cleric01 h person01" = heal over time cast on the person01, etc.

Code: Select all

| 2boxHeal.mac

#Event HealL "#1# tells you, 'l #2#'" 
#Event HealR "#1# tells you, 'r #2#'"
#Event HealC "#1# tells you, 'c #2#'"
#Event HealH "#1# tells you, 'h #2#'"
#Event HealG "#1# tells you, 'g'"
#Event HealP "#1# tells you, 'p #2#'"
#Event DI "#1# tells you, 'di #2#'"

#event Fizzle "Your spell fizzles#*#" 

Sub Main
/declare FizzleSlot int outer
/declare FizzleTimer timer outer 2s
/declare LightSpell string outer "Solemn Light Rk. II"
/declare RemedySpell string outer "Solemn Remedy Rk. II"
/declare CompleteSpell string outer "Complete Heal"
/declare HoTSpell string outer "Solemn Elixir"
/declare PromiseSpell string outer "Promised Restoration"
/declare GroupSpell string outer "Word of Vivacity"
/declare DISpell string outer "Divine Intervention"
/echo 2BoxHeal Activated
:MainLoop
	/doevents    
	/goto :MainLoop
/return


Sub Event_Fizzle(Textstuff)
	/if (${FizzleTimer}>0) {
		/cast ${FizzleSlot}
		/varset FizzleTimer 2s
	}
/return 

Sub Event_HealL(Line,Teller,Who) 
   /if (${Who.NotEqual[target]}) {
      /tar pc ${Who}	
   } else {
      /assist ${Teller}
   }
   /cast ${LightSpell}
   /varset FizzleSlot ${Me.Gem[${LightSpell}]}
   /varset FizzleTimer 2s
/return

Sub Event_HealR(Line,Teller,Who) 
   /if (${Who.NotEqual[target]}) {
      /tar pc ${Who}	
   } else {
      /assist ${Teller}
   }
   /cast ${RemedySpell}
   /varset FizzleSlot ${Me.Gem[${RemedySpell}]}
   /varset FizzleTimer 2s
/return

Sub Event_HealC(Line,Teller,Who) 
   /if (${Who.NotEqual[target]}) {
      /tar pc ${Who}	
   } else {
      /assist ${Teller}
   }
   /cast ${CompleteSpell}
   /varset FizzleSlot ${Me.Gem[${CompleteSpell}]}
   /varset FizzleTimer 2s
/return

Sub Event_HealH(Line,Teller,Who) 
   /if (${Who.NotEqual[target]}) {
      /tar pc ${Who}	
   } else {
      /assist ${Teller}
   }
   /cast ${HoTSpell}
   /varset FizzleSlot ${Me.Gem[${HoTSpell}]}
   /varset FizzleTimer 2s
/return

Sub Event_HealG(Line,Teller,Who) 
   /cast ${GroupSpell}
   /varset FizzleSlot ${Me.Gem[${GroupSpell}]}
   /varset FizzleTimer 2s
/return

Sub Event_HealP(Line,Teller,Who) 
   /if (${Who.NotEqual[target]}) {
      /tar pc ${Who}
   } else {
      /assist ${Teller}
   }
   /cast ${PromiseSpell}
   /varset FizzleSlot ${Me.Gem[${PromiseSpell}]}
   /varset FizzleTimer 2s
/return

Sub Event_DI(Line,Teller,Who) 
   /if (${Who.NotEqual[target]}) {
      /tar pc ${Who}	
   } else {
      /assist ${Teller}
   }
   /cast ${DISpell}
   /varset FizzleSlot ${Me.Gem[${DISpell}]}
   /varset FizzleTimer 2s
   
/return

kuda
orc pawn
orc pawn
Posts: 22
Joined: Sat Dec 09, 2006 11:41 pm

Post by kuda » Mon Sep 08, 2008 10:28 am

Let me be the first to say, donate and get some of the better tools to handling your problem at hand (MQ2EQBC plugin for communication or MQ2IRC and then any number of a few heal bots).

Let me also recommend NOT sending tells to automate this process. GMs can certainly monitor tells.

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

Post by mekaniak » Mon Sep 08, 2008 10:36 am

Kudos to you writing a working macro, but I must agree with kuda, get yourself EQBC and handle the communication through that. Much safer and isn't monitored by GMs.
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

mungobungo
orc pawn
orc pawn
Posts: 12
Joined: Thu Jul 31, 2008 11:01 pm

Post by mungobungo » Mon Sep 08, 2008 1:57 pm

Ah I didn't know that, I'd gladly donate if I was able to spend the extra money, but I can't for a while.

drzoon
a hill giant
a hill giant
Posts: 239
Joined: Tue May 04, 2004 5:38 pm

Post by drzoon » Mon Sep 08, 2008 3:16 pm

You pay for more than 1 EQ account and can't spare $10?

kuda
orc pawn
orc pawn
Posts: 22
Joined: Sat Dec 09, 2006 11:41 pm

Post by kuda » Mon Sep 08, 2008 3:24 pm

Well, if you don't have the 10$ to donate, then I would recommend looking into making it a smart heal. Have the bot healer watch your groups (or specific target) hps.

Code: Select all

/declare iLoop int local
/for iLoop 0 to ${Group.Members}
    /if (${Group.Member[${iLoop}].PctHPs} < 65) /cast ${CompleteSpell}
/next iLoop
Remember to check for mana, your self heals, if you are invis, if you are casting or anything else that makes sense before you send your script off to healing others (I do other checks like, if I am getting hit, the type of class and what level I need to be concerned with their heals). You can get really creative, and make some pretty smart healing processes. I literally on raids do more monitoring of my script than anything.

slimjim
a ghoul
a ghoul
Posts: 94
Joined: Thu Oct 17, 2002 4:05 pm

Post by slimjim » Mon Sep 08, 2008 3:29 pm

i'd just implement this chat based system into an auto heal bot. That way you still have control over the character and he'll heal if it's needed and isn't casting.

P.S. People still play this game?

Olain
a snow griffon
a snow griffon
Posts: 477
Joined: Sun May 15, 2005 12:45 am

Post by Olain » Mon Sep 08, 2008 4:53 pm

slimjim wrote: P.S. People still play this game?
I'm paying for and playing 4 characters. Still live and well.

User avatar
gse7en
a hill giant
a hill giant
Posts: 262
Joined: Mon Oct 17, 2005 8:19 pm
Contact:

Re:

Post by gse7en » Tue Oct 26, 2010 9:51 pm

Olain wrote:
slimjim wrote: P.S. People still play this game?
I'm paying for and playing 4 characters. Still live and well.
It's 2010. I pay for 4 characters and still play. It can be argued this game is better than ever.

grumpyogre
a ghoul
a ghoul
Posts: 142
Joined: Fri Jul 07, 2006 7:18 am

Re: 2boxheal.mac --- using /tells to cast spells

Post by grumpyogre » Wed Oct 27, 2010 8:07 am

Yup with this past payday I just brought back two more characters. Next payday I will bring back number 7 (and final). Money has been too tight for me to box for a few months (wife and son both started college together this year) but we are catching up. I got lucky and picked up one extra hour a week at work, so $30x4 = free EQ and the wife don't complain! Anywho, ya, I still play this game and love it love it.