autodebuff.mac - Auto radius debuff macro - *New Parm Rdy*

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Feb 08, 2004 6:58 pm

Updated:

Changed the searchspawn parameters to exclude mobs that are outside of a zradius of 10. If for some reason it gives you problems just change the value of each zradius:10 to a slightly larger number.

This should allow you to be directly under a spawn if you are in a building or whatever and it shouldn't try to debuff the mobs above and/or below you.

mcswanbeck
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Jan 16, 2004 5:16 am

Post by mcswanbeck » Mon Feb 09, 2004 5:37 am

Mmm... I dunno if this would be too complex to make or if it's just a piece of cake, but...

... is it possible to make it use an item instead of a spell for the debuffing? Shaman's slow-staff from PoTime comes into my mind.

I don't know if I'm moving too far away from the main purpose of this script, but another thing that would be nice is to say that whenever a mob comes under i.e. 20% HP, then the debuffing bot should start chain cast root. Also here it would be nice if shaman's ornate leggings with root would work.

Just a few suggestions :)
/mcswanbeck

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Mon Feb 09, 2004 6:51 pm

Updated:

The script should now allow the use of items.

mcswanbeck:
I included an example of item casting just below the other INI examples I'd already had in the script. I also including the settings that should allow you to "chain root" when the mobs life is around 20 percent. Let me know if it works for you. BTW: The only thing I had to add was the item support, the other options were already added prior to your post.

mcswanbeck
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Jan 16, 2004 5:16 am

Post by mcswanbeck » Tue Feb 10, 2004 7:40 am

I'll test it as soon as possible after the MQ2 comes up'n'running again... I can see now that the DebuffDuration* will handle the chain-casting thing - dunno why I missed that earlier :(

Thanks again ml2517 :)
/mcswanbeck

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Sun Feb 15, 2004 9:34 pm

well just got to say damn this macro owns.


You working on doing a mana check for canni or a single buff que for this by any chance?


group had today in PoEarth i actually ran oom with Voice + bard song + horse and FT12

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Feb 15, 2004 9:54 pm

Hmm well I wanted to make this as generic as possible. Let me think of a good way to handle it and keep it generic.

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Mon Feb 16, 2004 7:01 pm

Hmm well I wanted to make this as generic as possible. Let me think of a good way to handle it and keep it generic.
dont think thats possible you left generic on the first update =P

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Mon Feb 16, 2004 10:23 pm

Updated:

Added 3 self buff slots in the INI. You can set duration and whether or not to self buff at startup for each buff.

Going to work on adding mana level based triggers tomorrow to handle the Cannablize etc.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Tue Feb 17, 2004 1:39 am

Updated:

Went ahead and expanded the 3 self buff slots to 8 slots, not that you'll use them all.

A few fixes.

Added INI file name support so that you can have multiple INI files for each character in each zone/dungeon/whatever.

If you'd like to just use the default INI file just launch the macro like this:
/macro autodebuff

If you'd like to start the macro with your INI file for say... Plane of Earth:
/macro autodebuff PoE

You'll get the idea. There are no spaces allowed in the name your provide and it tacks it on to the default INI file name for your character. The naming will be something like this:

AD_Johnny_PoE.ini

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Tue Feb 17, 2004 7:38 am

you rock

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Tue Feb 17, 2004 7:40 am

you rock

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Tue Feb 17, 2004 9:26 pm

Updated:

Added 8 slots for mana/hp events. Take a look at the top of the script for examples.

Added support for AA skill activations in debuffs, buffs and events. NOTE: you need to use the version of spellcast.inc that I posted in the snippets forum in order to use AA skill activations. See the top of the macro for examples on how to use activate.

Link to spellcast.inc (Be sure to grab the one I posted lower on the page.): http://macroquest2.com/phpBB2/viewtopic.php?t=5090

Cleaned up the code some and moved some things around.

Please let me know if the mana/hp events need any work. It might require you to think out your logic a bit when setting them because all 4 criteria (EventMinMana, EventMaxMana, EventMinHP and EventMaxHP) must be true for the event to be triggered.

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Tue Feb 17, 2004 11:41 pm

will check it out tomorow when iget a few free from raiding.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Tue Feb 17, 2004 11:51 pm

I'm probably going to add a timer component on the events as well so you can better control re-use times. It might be hard to get things to work how you want them without it.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Wed Feb 18, 2004 12:42 am

Updated:

Went ahead and added an EventDuration for each event. It gets used like the debuff and self buff durations. If you want an event to keep firing off while the hp/mana conditions are met just set its duration to 1. If its an AA skill you should set this to the number of seconds its takes that skill to refresh.

Anyways, you'll get the idea. I set up Cannabalize II on my shaman and tested it out and it seems to work well. You could also then have another event that just looks for low HP and casts torpor on yourself or whatever and have the duration on torpor set to 0 to just use the spell default.

Anyways.. have fun and let me know if there is anything that needs changing.