Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 08:05:03 pm *

Login with username, password and session length
Pages: [1]
Print
Author Topic: Buff Version 6.5  (Read 5372 times)
Bogreaper
Jr. Member
**
Posts: 62



View Profile WWW
« on: November 17, 2017, 08:55:01 am »

** Update Nov 21st ** Buff Version 6.6

This is a small macro that goes down your spell list looking for buffs to cast on raid/group/target or you.

This was origanally written for use on EzServer, but since then has been tested and slight changes made for use on most other servers.

On to the file.

Peace



If you find any problems with it please reply here. Additionally, if you enjoy and/or have suggestions please reply here also.
I really appreciate all feedback, and love suggestions, so please feel free to let me know your thoughts.

(Note: English is not my first language, so if my write up is a little confusing and thoughts are disconnected, I apologize in advance, it's a little difficult for me to translate my Southern drawl (dialect) in to readable English)

What it does.

In Brief: runs down the character's spell list looking for buffs to cast on characters.
It checks for self buffs, single and group buffs. It checks to see if the target already has the buff on them and it still has over half the DEFAULT duration left on it and if cast now it will last longer than 5 minutes.

EzServer only: If you have a Shield of Ages, it clicks it.

If you have a Pet it will target and hail your pet, then tell it to Arm itself.
EzServer only: If you have a Pet and a Harness of soul Gem in your secondary it will click it
If you have a pet and two bandolier settings, Melee and Pet, it will swap them out and put the pet one up and try to use the secondary item, then switch back to Melee

If you have a spell list saved by the name of Zbuffs it will load that spell list before casting any buffs then it will attempt to load Zattack once it is finished buffing *changable in the files, instructions both in the macro and below in this post.

Will check to see if the character running the macro is in a Raid, if so it will cast on everyone in the raid. If not in a raid it will check to see if the character running the macro is in a group, if so it will cast on everyone in the group. If not in a Raid or Group it will cast all of the buffs on itself.
It will verify before going down the spell list that the current target (raid, group, pet, or specified character) is within 100 of it.

You can pass 2 variables to it. 1: a target's name, and / or, a recast duration.
The recast duration is there to try and speed up the buffing process. Take Rune of Denial III for example, it has a recast time of 30 seconds. If you cast that on a raid of 18 characters it going to take a Minimum of 9 minutes to cast all the buffs. I personally cast RoDIII on the tanks right before I pull, so I do not want to cast it when Re-buffing, but I do want to cast it at Initial buffing.


Example.

When I first log in and form up my Raid, or I just wiped and getting back in order I will do a.

/bcaa //macro buffv6 30

This will tell all characters (yes even the warriors, we will get to that in a minute) to buff everyone with anything that takes 30 seconds or less to recast. But if everything has been going well and an hour has passed by and I just want to refresh all the buffs that have faded, or about to fade I will do a

/bcaa //macro buffv6

This will have everyone cast any buff that has a recast time of 5 seconds or less, skipping over say RoDIII.
Or say, Warizzle wants me to buff him because he does not have an Enchanter or Druid, I will do a

/bcaa //macro buffv5 warizzle 30

and it will have all my characters cast all spells with a recast of 30 seconds or less on warizzle directly.
Or say, Warizzle is playing with me, but he is not in my raid for whatever reason, and he does not need / want RoDIII I would just

/bcaa //macro buffv6 warizzle

-----------------------------------
Settings you can change easily
-----------------------------------
There is no real reason for most people to edit the file at all, but I have made it so that you can, and I have attempted to make it as easy as possible to just change the few things that most people would find that they needed a little bit different then my defaults.

These are documented inside the macro file near the top.

Change spell list. This is a 1 for yes or 0 for no.
Having it set to 1 and not having the spell list to load does not effect the macro that much, it will just attempt to load the new one and not find it and continue one.

bufflist Zbuffs
attacklist Zattack

the Zbuffs and Zattack are your 2 spell lists. You can change them to whatever you wish, It loads the bufflist before attempting to do any buffing at all.
It loads attacklist at the very end of the macro.

minbuffduration 5

This is the default minimum duration of buffs to cast in minutes. If a beneficial spell has a duration of 5 minutes or more it will attempt to cast. Please be aware that if you change this to a low number some very short duration buffs will be cast.

----------------------------------------------------------------
Detail workings
----------------------------------------------------------------

When the macro is ran, it is first going to check and see if you told it to cast a single character, if you changed the default recast time, or both.

If you have a pet it then hails the pet and tells it to arm itself.
If changespelllist is still 1, then it loads your buff list
If you have a Shield of the Ages on your back, it clicks it.
It goes down the spell list and casts all self only buffs.
Checks if you specified to buff a single character, if so do it and skip the next three lines.
If you did not specify a specific character and in a raid, go down the raid list starting with the 1st member. Skipping the next 2 lines.
If you did not specify a specific character and not in a raid and in a group, go down the group list starting with the 1st member. Skipping the next line.
If you did not specify a specific character and not in a raid and not in a group, buff myself.

Once it knows whom to buff, it does the following checks.
Is the target within 100 of me?
if so, then it does the following checks for each spell in the spell list starting with spell 1.
Is it a beneficial spell?
Is it a single target or group spell?
Is the recast time less than the recast time specified?
Is this buff already on the target? and if it is does it have less than half of the default spell duration (before any extend is put on it)

If all of those are meet, then it waits for the spell to ready for casting, once ready it casts the spell.
It then moves on to the next spell on the list.

Once all of the spells on that character?s spell list have been checked/cast, it then moves on to the next character in the group or raid, or stops if you specified a character or if not in a raid or group.

Once all the characters have been cast on, it then checks if you have want to change spell lists, if so it loads the spell list.

It then checks your inventory for Harnessed soul gem, if it finds one in your bags, it attempts to activate the Pet bandolier, then use the secondary item (off hand) then activate the Melee bandolier. If you already have this item in your off hand and do not have the pet and melee bandoliers it will just use the item.

If the macro took longer than 60 seconds to run, it will report back in either /rsay, /gsay or /say which ever is the case, and state how long it took to run.

macro ends.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


As I said, I hope this is helpful for ya.

If you try it out, if you use it or not, please post back here and share your thoughts, good, bad or ugly. I would enjoy hearing them.
All suggestions will be explored, not saying I will make the changes, just explore them.  

Peace.

« Last Edit: November 21, 2017, 07:27:41 am by Bogreaper » Logged

Otto
Guest
« Reply #1 on: November 18, 2017, 08:50:32 am »

This one appears to require a redguides account in order to view.
Logged
Bogreaper
Jr. Member
**
Posts: 62



View Profile WWW
« Reply #2 on: November 18, 2017, 11:17:44 am »

Changed it.

Peace
Logged

Otto
Guest
« Reply #3 on: November 18, 2017, 04:13:52 pm »

Thank you, Bog! And thanks for all the macros you have shared thus far.

The new link appears to also be broken =)
« Last Edit: November 18, 2017, 04:49:58 pm by Otto » Logged
Bogreaper
Jr. Member
**
Posts: 62



View Profile WWW
« Reply #4 on: November 18, 2017, 06:38:33 pm »

I attached the file at the bottom of the post  I Please let me know if that does not work, if it does not, I will just paste the code in here.

Peace
« Last Edit: November 18, 2017, 06:40:30 pm by Bogreaper » Logged

Enmity
Newbie
*
Posts: 2


View Profile
« Reply #5 on: November 21, 2017, 01:32:39 am »

Can't seem to get the new version to work- Spells mem correctly, but I get a ton of "there are no spawns matching: 0-300 any errors in my mq2 ui
Logged
Bogreaper
Jr. Member
**
Posts: 62



View Profile WWW
« Reply #6 on: November 21, 2017, 05:22:16 am »

Updated Nov 21st to correct for a self buff spell issue.

Usage:

Default: (Will buff everyone in the Raid if in one, Group if not in a raid, or Self only if not in a raid or group) with any buff with a recast 5 seconds or less
/mac buffv6

Longer buff time: (Will buff everyone in the Raid if in one, Group if not in a raid, or Self only if not in a raid or group) with any buff with a recast 99 seconds or less
/mac buffv6 99

Quick buff of a specific target: (Again defaults to 5 second or less recast time) (good for a pull buff)
/mac buffv6 targetcharactersname

Longer buff of a specific target:
/mac buffv6 targetcharactersname 99

Peace

« Last Edit: November 21, 2017, 07:28:06 am by Bogreaper » Logged

Natedog
Master
******
Posts: 830


View Profile
« Reply #7 on: November 21, 2017, 07:10:08 am »

Line 250 has an error btw :p

Code:
/ That took ${howlong} seconds.

guessing you meant to echo?
Logged

Bogreaper
Jr. Member
**
Posts: 62



View Profile WWW
« Reply #8 on: November 21, 2017, 07:27:02 am »

Line 250 has an error btw :p

Code:
/ That took ${howlong} seconds.

guessing you meant to echo?

Yep good catch thank you.

Logged

Thebone
Sr. Member
****
Posts: 306


View Profile
« Reply #9 on: April 09, 2018, 03:30:38 pm »

Do you have a copy that works with rof2?
Logged

Pubis
Full Member
***
Posts: 119


View Profile
« Reply #10 on: February 22, 2022, 07:53:31 pm »

So is this broken? I feel like some years ago I had a working version.
Logged
Pages: [1]
Print
Jump to:  

Recent

Stats

Members
Stats
  • Total Posts: 64979
  • Total Topics: 5051
  • Online Today: 69
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 0
Guests: 63
Total: 63
TinyPortal v1.0 beta 4 © Bloc