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 » Thu Apr 22, 2004 8:47 am

Updated:
autodebuff.mac

Updated a bunch of ${String's to be more efficient.

NotHere
a lesser mummy
a lesser mummy
Posts: 40
Joined: Fri Jan 09, 2004 5:59 am

Post by NotHere » Thu Apr 22, 2004 4:15 pm

Heya.

Having some probs with it now (version 1.41, MQ2 zip from April 21 2004 14:55:47)

It doesnt seem to "discover" incoming mobs in the area by itself. Mobs can go all the way from full health to dying without it noticing.

It does trigger my events just fine, and it used to work just fine in the past (before Phase 2 and the reorganization of the .ini file).

My ini:

Code: Select all

[Settings]
Radius=300
NoSit=1
TrackNumber=30
Announce=0
AnnounceChannel=group
RetryCount=2
PauseMacro=0
PauseEvents=0
PauseHeals=1
[SelfBuff]
SelfBuffCount=0
SelfBuff1=Self Buff Spell Name
SelfBuff2=Self Buff Spell Name
SelfBuff3=Self Buff Spell Name
SelfBuff4=Self Buff Spell Name
SelfBuff5=Self Buff Spell Name
SelfBuff6=Self Buff Spell Name
SelfBuff7=Self Buff Spell Name
SelfBuff8=Self Buff Spell Name
SelfBuffDuration1=0
SelfBuffDuration2=0
SelfBuffDuration3=0
SelfBuffDuration4=0
SelfBuffDuration5=0
SelfBuffDuration6=0
SelfBuffDuration7=0
SelfBuffDuration8=0
SelfBuffAtStart1=0
SelfBuffAtStart2=0
SelfBuffAtStart3=0
SelfBuffAtStart4=0
SelfBuffAtStart5=0
SelfBuffAtStart6=0
SelfBuffAtStart7=0
SelfBuffAtStart8=0
SelfBuffIconCheck1=0
SelfBuffIconCheck2=0
SelfBuffIconCheck3=0
SelfBuffIconCheck4=0
SelfBuffIconCheck5=0
SelfBuffIconCheck6=0
SelfBuffIconCheck7=0
SelfBuffIconCheck8=0
SelfBuffIconName1=Self Buff Icon Name
SelfBuffIconName2=Self Buff Icon Name
SelfBuffIconName3=Self Buff Icon Name
SelfBuffIconName4=Self Buff Icon Name
SelfBuffIconName5=Self Buff Icon Name
SelfBuffIconName6=Self Buff Icon Name
SelfBuffIconName7=Self Buff Icon Name
SelfBuffIconName8=Self Buff Icon Name
[Debuff]
DebuffCount=3
Debuff1=Malos
Debuff2=Bane of Nife
Debuff3=Blood of Saryrn
Debuff4=Debuff Spell Name
Debuff5=Debuff Spell Name
Debuff6=Debuff Spell Name
Debuff7=Debuff Spell Name
Debuff8=Debuff Spell Name
DebuffDuration1=0
DebuffDuration2=0
DebuffDuration3=0
DebuffDuration4=99999
DebuffDuration5=99999
DebuffDuration6=99999
DebuffDuration7=99999
DebuffDuration8=99999
DebuffStartWait1=0
DebuffStartWait2=0
DebuffStartWait3=0
DebuffStartWait4=0
DebuffStartWait5=0
DebuffStartWait6=0
DebuffStartWait7=0
DebuffStartWait8=0
DebuffMinHealth1=95
DebuffMinHealth2=90
DebuffMinHealth3=85
DebuffMinHealth4=100
DebuffMinHealth5=100
DebuffMinHealth6=100
DebuffMinHealth7=100
DebuffMinHealth8=100
DebuffMinHealthNoCast1=0
DebuffMinHealthNoCast2=16
DebuffMinHealthNoCast3=16
DebuffMinHealthNoCast4=0
DebuffMinHealthNoCast5=0
DebuffMinHealthNoCast6=0
DebuffMinHealthNoCast7=0
DebuffMinHealthNoCast8=0
DebuffMinMana1=0
DebuffMinMana2=0
DebuffMinMana3=0
DebuffMinMana4=0
DebuffMinMana5=0
DebuffMinMana6=0
DebuffMinMana7=0
DebuffMinMana8=0
DebuffMinMobsInArea1=0
DebuffMinMobsInArea2=0
DebuffMinMobsInArea3=0
DebuffMinMobsInArea4=0
DebuffMinMobsInArea5=0
DebuffMinMobsInArea6=0
DebuffMinMobsInArea7=0
DebuffMinMobsInArea8=0
DebuffAnnounce1=Debuff Announcement
DebuffAnnounce2=Debuff Announcement
DebuffAnnounce3=Debuff Announcement
DebuffAnnounce4=Debuff Announcement
DebuffAnnounce5=Debuff Announcement
DebuffAnnounce6=Debuff Announcement
DebuffAnnounce7=Debuff Announcement
DebuffAnnounce8=Debuff Announcement
[Events]
EventCount=2
EventSpell1=Quiescence
EventSpell2=Cannibalize IV
EventSpell3=Event Spell Name
EventSpell4=Event Spell Name
EventSpell5=Event Spell Name
EventSpell6=Event Spell Name
EventSpell7=Event Spell Name
EventSpell8=Event Spell Name
EventMinMana1=100
EventMinMana2=80
EventMinMana3=100
EventMinMana4=100
EventMinMana5=100
EventMinMana6=100
EventMinMana7=100
EventMinMana8=100
EventMaxMana1=0
EventMaxMana2=0
EventMaxMana3=0
EventMaxMana4=0
EventMaxMana5=0
EventMaxMana6=0
EventMaxMana7=0
EventMaxMana8=0
EventMinHP1=60
EventMinHP2=100
EventMinHP3=100
EventMinHP4=100
EventMinHP5=100
EventMinHP6=100
EventMinHP7=100
EventMinHP8=100
EventMaxHP1=0
EventMaxHP2=50
EventMaxHP3=0
EventMaxHP4=0
EventMaxHP5=0
EventMaxHP6=0
EventMaxHP7=0
EventMaxHP8=0
EventDuration1=0
EventDuration2=1
EventDuration3=0
EventDuration4=0
EventDuration5=0
EventDuration6=0
EventDuration7=0
EventDuration8=0
[Heal]
HealCount=0
HealSpell1=Heal Spell Name
HealSpell2=Heal Spell Name
HealSpell3=Heal Spell Name
HealSpell4=Heal Spell Name
HealSpell5=Heal Spell Name
HealSpell6=Heal Spell Name
HealSpell7=Heal Spell Name
HealSpell8=Heal Spell Name
HealMinHP1=0
HealMinHP2=0
HealMinHP3=0
HealMinHP4=0
HealMinHP5=0
HealMinHP6=0
HealMinHP7=0
HealMinHP8=0
HealMaxHP1=100
HealMaxHP2=100
HealMaxHP3=100
HealMaxHP4=100
HealMaxHP5=100
HealMaxHP6=100
HealMaxHP7=100
HealMaxHP8=100
HealMinMana1=0
HealMinMana2=0
HealMinMana3=0
HealMinMana4=0
HealMinMana5=0
HealMinMana6=0
HealMinMana7=0
HealMinMana8=0
HealMinGroupCount1=0
HealMinGroupCount2=0
HealMinGroupCount3=0
HealMinGroupCount4=0
HealMinGroupCount5=0
HealMinGroupCount6=0
HealMinGroupCount7=0
HealMinGroupCount8=0
HealClass1=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealClass2=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealClass3=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealClass4=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealClass5=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealClass6=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealClass7=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealClass8=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
HealAnnounce1=Heal Announcement
HealAnnounce2=Heal Announcement
HealAnnounce3=Heal Announcement
HealAnnounce4=Heal Announcement
HealAnnounce5=Heal Announcement
HealAnnounce6=Heal Announcement
HealAnnounce7=Heal Announcement
HealAnnounce8=Heal Announcement
[GroupBuff]
GroupBuffCount=0
GroupBuff1=Group Buff Spell Name
GroupBuff2=Group Buff Spell Name
GroupBuff3=Group Buff Spell Name
GroupBuff4=Group Buff Spell Name
GroupBuff5=Group Buff Spell Name
GroupBuff6=Group Buff Spell Name
GroupBuff7=Group Buff Spell Name
GroupBuff8=Group Buff Spell Name
GroupBuffDuration1=99999
GroupBuffDuration2=99999
GroupBuffDuration3=99999
GroupBuffDuration4=99999
GroupBuffDuration5=99999
GroupBuffDuration6=99999
GroupBuffDuration7=99999
GroupBuffDuration8=99999
GroupBuffAtStart1=0
GroupBuffAtStart2=0
GroupBuffAtStart3=0
GroupBuffAtStart4=0
GroupBuffAtStart5=0
GroupBuffAtStart6=0
GroupBuffAtStart7=0
GroupBuffAtStart8=0
GroupBuffMinMana1=0
GroupBuffMinMana2=0
GroupBuffMinMana3=0
GroupBuffMinMana4=0
GroupBuffMinMana5=0
GroupBuffMinMana6=0
GroupBuffMinMana7=0
GroupBuffMinMana8=0
GroupBuffMinGroupCount1=0
GroupBuffMinGroupCount2=0
GroupBuffMinGroupCount3=0
GroupBuffMinGroupCount4=0
GroupBuffMinGroupCount5=0
GroupBuffMinGroupCount6=0
GroupBuffMinGroupCount7=0
GroupBuffMinGroupCount8=0
GroupBuffAnnounce1=Group Buff Announcement
GroupBuffAnnounce2=Group Buff Announcement
GroupBuffAnnounce3=Group Buff Announcement
GroupBuffAnnounce4=Group Buff Announcement
GroupBuffAnnounce5=Group Buff Announcement
GroupBuffAnnounce6=Group Buff Announcement
GroupBuffAnnounce7=Group Buff Announcement
GroupBuffAnnounce8=Group Buff Announcement
GroupBuffClass1=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
GroupBuffClass2=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
GroupBuffClass3=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
GroupBuffClass4=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
GroupBuffClass5=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
GroupBuffClass6=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
GroupBuffClass7=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
GroupBuffClass8=WAR|SHD|PAL|RNG|MNK|ROG|BRD|BST|BER|SHM|CLR|DRU|WIZ|MAG|ENC|NEC
NotHere
/afk

Wendel
a lesser mummy
a lesser mummy
Posts: 58
Joined: Wed Jul 24, 2002 1:48 am

Post by Wendel » Thu Apr 22, 2004 4:46 pm

I had the same problem.

It seems to not check for new spawns after you buff yourself.

If I press escape it starts to debuff, but so far I'd have to say something is not quite right with it.

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

Post by ml2517 » Thu Apr 22, 2004 4:50 pm

If you press escape? /boggle Sounds to me like it isn't targeting. I'll have to take a look at it when I get home tonight.

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

Post by ml2517 » Thu Apr 22, 2004 5:01 pm

For the hell of it, one of you should try replacing all instances of:

/target myself

with

/keypress targetme


I have no idea what the problem is because I am at work but that escape thing is strange. Sounds like it is getting stuck on your character.

Wendel
a lesser mummy
a lesser mummy
Posts: 58
Joined: Wed Jul 24, 2002 1:48 am

Post by Wendel » Thu Apr 22, 2004 6:45 pm

That didn't help.

My ini file has my enchanter buff herself at the start.
If I don't clear her target she will not debuff. Everything is okay as long as she doesn't target a PC it seems.

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

Post by JimJohnson » Thu Apr 22, 2004 6:49 pm

has nothign to do with what you posted NotHere but might work out better for you n the canni / heal


Code: Select all

EventCount=1
EventSpell1=Cannibalize IV 
 

HealCount=1
HealSpell1=Quiescence

HealMinHP1=40
HealMaxHP1=95
HealMinMana1=5
HealMinGroupCount1=0 
HealClass1=SHM


NotHere
a lesser mummy
a lesser mummy
Posts: 40
Joined: Fri Jan 09, 2004 5:59 am

Post by NotHere » Fri Apr 23, 2004 12:05 am

NotHere wrote:It doesnt seem to "discover" incoming mobs in the area by itself. Mobs can go all the way from full health to dying without it noticing.
Forgot to mention some of it.

IF I target a mob that is in the area and is loosing health (I do this by /assist 'ing my main char), it starts debuffing the mob as it looses health, just as its supposed to. But as soon as I switch the target away, it doesnt renew fading dots / debuffs.

EDIT: Just tried out the target clearing by pressing ESC. As soon as I clear the target it stars switching between close mobs, checking them out. However when the bot has himself targeted, he dont trigger debuff events.

I did an ugly fix to get it working. Im not proud of it, but it works for now

Code: Select all

| Check Heals. 
/if (@PauseHeals==0) /call HealCheck 

/doevents 

[color=red]/squelch  /target clear[/color]

/goto :MainLoop 
/return 
Last edited by NotHere on Fri Apr 23, 2004 1:01 am, edited 2 times in total.
NotHere
/afk

NotHere
a lesser mummy
a lesser mummy
Posts: 40
Joined: Fri Jan 09, 2004 5:59 am

Post by NotHere » Fri Apr 23, 2004 12:07 am

JimJohnson wrote:has nothign to do with what you posted NotHere but might work out better for you n the canni / heal
Yeah, been considering switching to using the heal functionality, but didnt really bother, since the "old" stuff worked out fine, and the char usually isnt grouped when running this macro (and I was not sure if it would actually work then) :D
NotHere
/afk

frabtik
a ghoul
a ghoul
Posts: 114
Joined: Sat Feb 21, 2004 10:07 am

Post by frabtik » Fri Apr 23, 2004 8:49 am

Where does the new heal stuff account for the duration on HoT spells. I am using events still for HoT also because of the duration there for casting them. Hopefully gonna go find targeting issues here in a couple mins also.

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

Post by JimJohnson » Fri Apr 23, 2004 9:56 am

try to increase the number of mobs in the array to over 30 or lower your distance of 300. if you have more mobs in the cast radius then you allow to track its bugged out before and not accounted for inc mobs.
Last edited by JimJohnson on Fri Apr 23, 2004 1:27 pm, edited 1 time in total.

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

Post by ml2517 » Fri Apr 23, 2004 10:25 am

I tried to troubleshoot it this morning but I found the ${Ini bug in the current version of MQ2 and didn't have time to go back to the old version before work.

I'll try to figure out this targeting issue when I get home tonight.

I wouldn't recommend changing your track number to anything under 10. If you doing something like AoE or something you might even want to take that up to 20.

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

Post by ml2517 » Fri Apr 23, 2004 7:58 pm

Updated:
autodebuff.mac

Took about 5 seconds to find targeting problem now that I finally got time to look at it.

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

Post by ml2517 » Sat Apr 24, 2004 10:17 am

Updated:
autodebuff.mac
autodebuff.txt

Added a new command called watch. For now the maximum number of players that can be on your watch list is 10, but I can raise it if its a real need. I doubt I'll have to touch it.

Usage:
/echo watch Johnny

or via tell (If the person telling you is on the master list.)

/tell yourname watch Johnny

This will add Johnny to the heal watch list. Every 2 seconds Johnny's health will be checked and will be healed if necessary. To remove him just issue the command again.

Johnny's health isn't included with any sort of group based heal criteria and will only be healed with single target heal spells.

One thing to be sure to do, if for some reason Johnny is on your watch list, and at some point you add him to your group... *Make sure* to do another /echo watch Johnny to remove him from your watch list. If you do not, and you are using HoT spells, you will notice that Johnny will get healed twice.

I might add something to auto-remove them if they join the group if this causes too many problems.

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

Post by ml2517 » Sat Apr 24, 2004 12:02 pm

Updated:
autodebuff.mac

I went ahead and added a routine to automatically clear a person out of your watch list if they later join your group. It will also not let you add someone to your watch list if they are already in your group.

Fixed a bug in the heal code that might kick off a heal when someone is invited in your group and they join in the middle of a health check.