auto buff down raid list ?

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Shelak
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Oct 21, 2004 9:20 pm
Location: Blacksburg, Va

auto buff down raid list ?

Post by Shelak » Fri Oct 22, 2004 12:06 am

Code: Select all

${Window[RaidWindow].Child[Raid_NoteList].List[X]} ${Raid.Member[X]}
X would normally be index int or something

im trying to add to existing macro that will auto buff down raid list
using this code i oculd find somoene from each group, buts its really gheto

--or something :cool:

Shelak
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Oct 21, 2004 9:20 pm
Location: Blacksburg, Va

Post by Shelak » Fri Oct 22, 2004 12:58 am

ADD:

also is there way to tell color of text? like in the dz window LD people are Red and camped people are blue(?) -- is there any way to pick up theses colors? :?:

on seperate but simi-similar topic: how do you tell the color of your stats? like if they are green = above normal, grey = normal, red = lower

i have rtfm like 3 times, and search thru manual for color and read all the ${Widnow. stuff but none give color of text, tried BGcolor, Style -- even went so far to see if H/V Scroll bar variables changed with color -- they don't :shock:

--Or Something :P

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Post by Chill » Fri Oct 22, 2004 2:07 am

Here is an example of a macro I used to use to haste my raids:

Code: Select all

|raidhaste.mac

#include SpellRoutines.inc

Sub Main

   /declare c int outer
   /declare m int outer
   /declare members int outer 0
   /declare pets int outer 0
   /declare melee[9] string outer

   /varset melee[1] Bard
   /varset melee[2] Beastlord
   /varset melee[3] Berserker
   /varset melee[4] Monk
   /varset melee[5] Paladin
   /varset melee[6] Ranger
   /varset melee[7] Rogue
   /varset melee[8] Shadow Knight
   /varset melee[9] Warrior

   /rs Haste coming around

   /for m 1 to ${Raid.Members}

      /for c 1 to 9
         /if (${Raid.Member[${m}].Class.Name.Equal[${melee[${c}]}]}) {
            /target pc ${Raid.Member[${m}].Name}
            /delay 1
            /if (${Target.Name.Equal[${Raid.Member[${m}].Name}]}) {
               /if (${Target.Distance}<120) {
                  /call cast "Romar's Pantaloons of Visions" item
                  /varcalc members ${members}+1
               } else {
                  /echo << Skipping ${Target.Name} >> OOR
               }
            } else {
               /echo << Skipping ${Raid.Member[${m}].Name} >> NOT IN ZONE
            }
            /goto :hasted
         }
      /next c
      :hasted

      /if (${Raid.Member[${m}].Pet.ID}) {
         /target id ${Raid.Member[${m}].Pet.ID}
         /delay 1
         /if (${Target.Distance}<120) {
            /call cast "Romar's Pantaloons of Visions" item
            /varcalc pets ${pets}+1
         } else {
            /echo << Skipping ${Target.Name} >> OOR
         }
      }
   /next m

   /echo Hasted ${members} melee and ${pets} pets.

   /rs Tells for SOV if you still need

/endmacro
Not sure what you want to cast, but you can probably modify that to meet your needs.

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Post by Chill » Fri Oct 22, 2004 4:30 pm

Hehe, got to thinking about it and I cleaned this macro up a little. I put all the classes into one string and used .Find instead of .Equal. This let me cut out the array and the second loop. It worked fine before but this should be more efficient.

If you want to buff casters, or some other group of classes, you can just build a different string of classes, and compare in the same way.

Code: Select all

|raidhaste.mac 

#include SpellRoutines.inc 

Sub Main 

   /declare m int outer 
   /declare members int outer 0 
   /declare pets int outer 0 
   /declare melee string outer Bard|Beastlord|Berserker|Monk|Paladin|Ranger|Rogue|Shadow Knight|Warrior

   /for m 1 to ${Raid.Members} 

      /if (${melees.Find[${Raid.Member[${m}].Class.Name}]}) { 
         /target pc ${Raid.Member[${m}].Name} 
         /delay 1 
         /if (${Target.Name.Equal[${Raid.Member[${m}].Name}]}) { 
            /if (${Target.Distance}<120) { 
               /call cast "Romar's Pantaloons of Visions" item 
               /varcalc members ${members}+1 
            } else { 
               /echo Skipping << ${Target.Name} >> OOR 
            } 
         } else { 
            /echo Skipping << ${Raid.Member[${m}].Name} >> OOZ 
         } 
      } 

      /if (${Raid.Member[${m}].Pet.ID}) { 
         /target id ${Raid.Member[${m}].Pet.ID} 
         /delay 1 
         /if (${Target.Distance}<120) { 
            /call cast "Romar's Pantaloons of Visions" item 
            /varcalc pets ${pets}+1 
         } else { 
            /echo Skipping << ${Target.Name} >> OOR 
         } 
      } 
   /next m 

   /echo Hasted ${members} melee and ${pets} pets. 

/endmacro

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Post by Chill » Fri Oct 22, 2004 4:43 pm

Shelak wrote:is there way to tell color of text?
If you are talking about the macro level, then I think the answer is no. I am pretty sure you are stuck with /echo

If you want to get into a plugin, then you can start using WriteChatColor() to output text in whatever color you want, but plugins are a lot more complicated.

The only other thing I can suggest if you really want to change the color for all MQ macro output, is to start poking around MQ2ChatWnd. I have not even looked at what's in there, but I suspect it is responsible for the MQ2 Window on your screen, and you very well may find a chat color in there you can modify.

Shelak
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Oct 21, 2004 9:20 pm
Location: Blacksburg, Va

Post by Shelak » Sat Oct 23, 2004 11:53 am

chill, i use gropu buffs -- that macro only works for single target buffs :(

and for more clarificaiton, im trying to read colors of UI text, like the color of your stats (green/grey/red) or color of names in dz_window (yellow/red/blue) or color of Leadership AAs (green/grey/pukeyellow) -- even more so, i think it might be good way to identify which AA's you have

thanks for the ideas tho! maybe ill have the pants one day and be able to put that one macro to good use :wink:

--Or something :cool:

Shelak
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu Oct 21, 2004 9:20 pm
Location: Blacksburg, Va

Post by Shelak » Sat Oct 30, 2004 8:59 pm

bump :?:

this not possible? or am i stupid and haven't RTFM enuff? /sigh

--or something :shock: