View Full Version : Need help shortening macro
nogbog
08-01-2008, 03:03 AM
I've got a ton of macros like this, i get this feeling like it could get shortened a fair bit, can someone with a bit more experience with macros help me out please?
This one in particular does
1. Cast drain life on hostile target i am targeting, if i'm not already casting drain life
Cast drain life on hostile target the focus is targeting, if i'm not already casting drain life
2. Alt modifier - Cast drain mana regardless of whether or not i'm channelling
3. Ctrl modifier - Cast drain soul (rank 1) regardless of whether or not i'm channelling
#showtooltip
/cast [target=player-target,nomod,harm,nochanneling: Drain Life][target=focus-target,nomod,nochanneling: Drain Life] Drain Life; [target=player-target,mod:alt,harm][target=focus-target,mod:alt] Drain Mana; [target=player-target,mod:ctrl,harm][target=focus-target,mod:ctrl] Drain Soul(Rank 1)
Šeceased
08-01-2008, 05:18 AM
Hmm looks to me like you don't need the "target=player-target", target=target should suffice (i hope). Not even sure if you need it at all for the fist condition.
#showtooltip
/cast [nomod,harm,nochanneling: Drain Life][target=focus-target,nomod,nochanneling: Drain Life] Drain Life; [mod:alt,harm][target=focus-target,mod:alt] Drain Mana; [mod:ctrl,harm][target=focus-target,mod:ctrl] Drain Soul(Rank 1)
with target=target just in case
#showtooltip
/cast [target=target,nomod,harm,nochanneling: Drain Life][target=focus-target,nomod,nochanneling: Drain Life] Drain Life; [target=target,mod:alt,harm][target=focus-target,mod:alt] Drain Mana; [target=target,mod:ctrl,harm][target=focus-target,mod:ctrl] Drain Soul(Rank 1)
otherwise it doesn't look like one could remove any more
olipcs
08-01-2008, 05:44 AM
hi,
I'think you doesn't ned target=target at all, cause its the default option and can thereby left out.
Aonother think you could do is eliminate spaces, by doing so, I end up with:
#showtooltip
/cast [nomod,harm,nochanneling:Drain Life][target=focus-target,nomod,nochanneling:Drain Life]Drain Life;[mod:alt,harm][target=focus-target,mod:alt]Drain Mana; [target=target,mod:ctrl,harm][target=focus-target,mod:ctrl]Drain Soul(Rank 1)
which is only 248 chars long...
(another ponit could be replacing focus-target with focustarget, but i'm not shure if thats work)
EDIT: argh, sry Šeceased u allready mentioned the target=target :(
If need be, you can also just remove #showtooltip as it only adds a visual aid.
Šeceased
08-01-2008, 08:55 AM
hi,
I'think you doesn't ned target=target at all, cause its the default option and can thereby left out.
Aonother think you could do is eliminate spaces, by doing so, I end up with:
#showtooltip
/cast [nomod,harm,nochanneling:Drain Life][target=focus-target,nomod,nochanneling:Drain Life]Drain Life;[mod:alt,harm][target=focus-target,mod:alt]Drain Mana; [target=target,mod:ctrl,harm][target=focus-target,mod:ctrl]Drain Soul(Rank 1)
which is only 248 chars long...
(another ponit could be replacing focus-target with focustarget, but i'm not shure if thats work)
EDIT: argh, sry Šeceased u allready mentioned the target=target :(
np m8y :)
ur right about the focus. one should be able to use target=focustarget.. the dash seems to only play a roll when targeting a specific players/characters target etc
blast3r
08-01-2008, 09:47 AM
i hate how short macros have to be when using with multiboxing. does anyone know if they ever plan on increasing the limit? I have been using 3 charachters in my new toon's names to make things as short as possible.
Šeceased
08-01-2008, 09:51 AM
nah no announcements as such :S although they did say they are increasing the number of macros to 36
Old Dirty Bathtub
08-01-2008, 11:47 AM
If you use Trinity Bars you can write macros up to 1023 characters long. And you can write an unlimited number of them.
Binaryzero
08-01-2008, 11:40 PM
until the release of WOTLK... macros are going server side...
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.