Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 04/27/11, 3:58 PM   #46
cbrigaitis
Glass Joe
 
Goblin Death Knight
 
Mug'thol
Originally Posted by Chanter View Post
Hello, long time reader of ej, but first time poster, im looking for the help on the following macro to streamline it. When applied it changes my target , and i have to remove the target manually.

/assist [target=mouseover,help]
/cast lightning bolt


i basically want to be able to cast lightning bolt , at any mouse over target, but if it can be avoided , keep my actual target clear.
Hey, I think I understand what you are looking for, I havnt gotten a chance to test is yet but here we go.

/cast [@mouseover] Lightning Bolt

your /assist command is used for targeting, so it will infact change your target, secondly, your [help] conditional states that your macro will only work if your mouseover is a friendly target. So, im just gonna guess, that the way you had it worded, it would change your target to whatever friendly unit you were mousing over was targeting, and then cast lightning bolt.

If i had some more info about what exactly it is you are trying to do, i can go into some more detali

United States Offline
Reply With Quote
Old 04/27/11, 4:11 PM   #47
cbrigaitis
Glass Joe
 
Goblin Death Knight
 
Mug'thol
VERY IMPORTANT FOR MACROS!! This will answer many questions.

If a line in your macro uses a GCD (Global Cool Down) such as an attack or a spell, it will stop your macro! you cannot do someting like /cast Icy Touch, Plague Strike ... the first spell has a GCD, Plague Strike will not cast, this is the type of "Automation" that the Blizz Terms of Agreement Forbid. Its essentially the same as letting a Bot play the game for you.

Now, you can write a sequence line. This would be like /castsequence Icy Touch, Plague Strike. Its function would work like this, hit button first time casts Icy Touch, hit button second time, casts Plague Strike.

Note: If a spell fails in the sequence, it will remain stuck on that spell untill it is cast. a way around this is like so..
/castsequence reset=target/dead Icy Touch, Plague Strike now, if i change targets in a fight it resets, or if my target dies it resets.

United States Offline
Reply With Quote
Old 04/27/11, 6:39 PM   #48
Malefis
Don Flamenco
 
Malefis's Avatar
 
Malefis
Goblin Warlock
 
No WoW Account
Is there some way to cast a Soulstone on a mouse-over target?

Offline
Reply With Quote
Old 05/03/11, 1:44 PM   #49
Elsdragon
Glass Joe
 
Elsdragon's Avatar
 
Blood Elf Warlock
 
Misha
Originally Posted by Malefis View Post
Is there some way to cast a Soulstone on a mouse-over target?
try this one.

/cast [target=mouseover] soulstone

Offline
Reply With Quote
Old 05/07/11, 6:48 AM   #50
Strages
Glass Joe
 
Gnome Mage
 
Khadgar (EU)
I'm looking to create a set of keybinds that will work with any talent tree I change to, Instead of using an addon such as Bindpad to profile keybinds. I want to do this using macros that determine which talent specialization I have, so Fire - Frost or Arcane.

For example with fire / frost;

if spec is Fire then
/cast Blast Wave
else if spec is Frost
/petcast Freeze
end
I need this to be independent of the Dual Spec feature, anyone know how I could script this?

Edit: Progress so far, found code that calculates the current talent specialization and have managed to adapt it into a macro. But now struggling to get the script to cast the spell, as the castspell API is protected - so I do not know if its is possible.

/run local primaryTree=1 local current={} for i=1,3 do local pointsSpent=select(5, GetTalentTabInfo(i,isInspect,nil,GetActiveTalentGroup(isInspect))) current[i] = pointsSpent if (current[i] > current[primaryTree]) then primaryTree = i end end if (primaryTree == 1) then CASTSPELLHERE end
Second Edit: Decided I would just create a keybind profiling add-on for myself, hard-coded 3 sets of keybinds into the add-on that can be switched between using slash commands.

Last edited by Strages : 05/07/11 at 12:25 PM.

Offline
Reply With Quote
Old 05/21/11, 5:37 PM   #51
Yolan2207
Glass Joe
 
Yolan2207's Avatar
 
Undead Priest
 
Onyxia (EU)
Hello,

after a long long break I again started playing WoW.
I need your help for following makros:

Judging with my heal-paladin
When I target my tank, the macro should cast the judgement on the tanks target
When I target the boss in an instance, the macro should cast judgement on the boss

Casting Shadowfiend with my priest
Probably the same macro like above, i just need to replace "judgement" with "shadowfiend"

Casting Shackle Undead and i don`t want to switch my actual target when I have to re-shackle
In the past I used the following macro. When casting Shackle Undead on a mop, the macro set the target as a focus target and when it was time to reshackle, I just had click on the macro again. There was no need to leave my actual target.

#showtooltip Shackle Undead
/clearfocus [target=focus,dead]
/clearfocus [target=focus,help]
/focus [target=focus,noexists]
/clearfocus [target=focus,help
/cast [target=focus,exists] Shackle Undead

But somehow it doesn`t work anymore


Crowd Control with my warlock using Fear
The same macro like with Shackle Undead?
Or does it matter that I cannot fear undead units and macro must be adjusted a bit?


Your help qould be really great
Thanks in advance

Offline
Reply With Quote
Old 05/22/11, 4:20 AM   #52
Larwood
Glass Joe
 
Human Mage
 
Frostmourne
You can't check if your target is a tank in a macro, but otherwise your first 2 macros are possible:
#showtooltip
/cast [@targettarget,harm,nodead][]Judgement

#showtooltip
/cast [@targettarget,harm,nodead][]Shadowfiend

The shackle macro you have makes it very difficult to change shackle target, this is the macro I use. It will shackle your focus if you have one and hold ctrl, otherwise shackle your target and set it as your focus. It also clears your focus if you right click it.
#showtooltip
/clearfocus [button:2]
/stopmacro [button:2]
/cast [mod:ctrl,@focus,harm][]Shackle Undead
/focus [nomod:ctrl]

This is the same macro for lock fear, but with the pet line in to make your your pet doesn't attack your fear target.
#showtooltip
/clearfocus [button:2]
/stopmacro [button:2]
/petpassive
/cast [mod:ctrl,@focus,harm][]Fear
/focus [nomod:ctrl]

Australia Offline
Reply With Quote
Old 05/23/11, 2:56 PM   #53
Elsdragon
Glass Joe
 
Elsdragon's Avatar
 
Blood Elf Warlock
 
Misha
Originally Posted by Yolan2207 View Post
Crowd Control with my warlock using Fear
The same macro like with Shackle Undead?
Or does it matter that I cannot fear undead units and macro must be adjusted a bit?

for this case ive been using


/stopcast
/cast [target=focus,exist] fear OR Banish


for undead you could use the same system.


/stopcast
/cast [target=focus,exist] shackle undead


i liked the simple set up for these macro's they're interchangeable to any class and skill.
simply set the target to focus even with a macro. then spam it away to set the CC.

here's a focus macro.


/clear focus
/focus

Last edited by Elsdragon : 05/23/11 at 3:02 PM.

Offline
Reply With Quote
Old 05/23/11, 5:00 PM   #54
Yolan2207
Glass Joe
 
Yolan2207's Avatar
 
Undead Priest
 
Onyxia (EU)
Hi,

thx for your answers
I will check them.

Offline
Reply With Quote
Old 05/24/11, 5:49 PM   #55
Tufft
Suspiciously Confusing
 
Tufft's Avatar
 
Gnome Rogue
 
Galakrond
Hi I need some help with a shift mod macro that casts shadowbolt at my focus target whilst it's pressed and at my main target while it's not please

....Clicker since 2005....

United States Offline
Reply With Quote
Old 05/25/11, 3:29 AM   #56
Elsdragon
Glass Joe
 
Elsdragon's Avatar
 
Blood Elf Warlock
 
Misha
Originally Posted by Tufft View Post
Hi I need some help with a shift mod macro that casts shadowbolt at my focus target whilst it's pressed and at my main target while it's not please
ok after an hour of debunking it i got one working. (first time doing one also)
was great fun figuring it out also, but here it is.

/cast [nomod] shadow Bolt; [mod:shift,@focus] Shadow Bolt

Offline
Reply With Quote
Old 05/25/11, 6:11 AM   #57
Larwood
Glass Joe
 
Human Mage
 
Frostmourne
Better version:
#showtooltip
/cast [@focus,mod:shift,harm,nodead][]Shadow Bolt

Australia Offline
Reply With Quote
Old 06/15/11, 4:25 AM   #58
Xav
Bald Bull
 
Xav's Avatar
 
Human Warrior
 
Sen'jin
Hello and long time, UI forum.

My question is simple, I think.
There is an API command to create a macro, which I am quite fond of lately. An example is as follows:

CreateMacro("roar", 50, "/cancelaura Dash\n/cancelaura Darkflight\n/cast Stampeding Roar(Cat Form)")
PickupMacro("roar")
PlaceAction(73)


So, for anyone that's familiar with the functionality, you'd know the "50" there is an icon of a spell. I actually randomly chose one for that, so I don't know what it actually is, but isn't important.

We can use some scripts and commands to find the internal names of any icon we see in wow; can be explored at API GetMacroIconInfo - Wowpedia - Your wiki guide to the World of Warcraft

What I want to know, though, is if it's possible to create a macro using the actual internal name of the spell, and NOT the icon. The internal names of things are viewable if you actually load up your macros-cache files, you see a macro is labelled as something like this:
MACRO 3 "Inspect" Ability_CheapShot
/inspect
END
I would like to be able to do something like [this doesn't actually work]:

CreateMacro("roar", spell_shadow_blackplague, "/cancelaura Dash\n/cancelaura Darkflight\n/cast Stampeding Roar(Cat Form)")

The point is so that I can use different icons for abilities that I may not necessarily actually have in my spellbook, but are valid macro icons, all the while being made through the API function, and not manually added in

Any help would be greatly appreciated.

Last edited by Xav : 06/15/11 at 4:39 AM.

United States Offline
Reply With Quote
Old 06/15/11, 5:52 AM   #59
Larwood
Glass Joe
 
Human Mage
 
Frostmourne
I'm not sure where you're using that command, so I'll give 3 options. You only need to change the bolded part in each case.

To exactly answer your question, you would do this:
local iconnum
	for i=1,GetNumMacroIcons() do
	if "Internal_Name" == strsub(GetMacroIconInfo(i),17) then
		iconnum = i
	end
end
CreateMacro("macroname", m, "macrotext")
The better option, I think, would be to use the actual name of the spell:
local spell, iconnum, texture = "Spell Name"
for i=1,2000000 do
	local name, _, spelltex = GetSpellInfo(i)
	if spell == name then
		texture = spelltex
	end
end
for i=1,GetNumMacroIcons() do
	if texture == GetMacroIconInfo(i) then
		iconnum = i
	end
end
CreateMacro("macroname", iconnum, "macrotext")
However, that method is quite laggy because it does a lot of work, so if you just want a way to find the icon number to use in the CreateMacro command when you want to, you can simply use this macro, which does the same thing but will print the number in your chat:
/run local s,m,t="Spell Name" for i=1,2000000 do local n,_,p=GetSpellInfo(i) if s==n then t=p end end for i=1,GetNumMacroIcons() do if t==GetMacroIconInfo(i) then m=i end end print(m)

Last edited by Larwood : 06/15/11 at 7:40 AM.

Australia Offline
Reply With Quote
Old 06/15/11, 11:58 AM   #60
Xav
Bald Bull
 
Xav's Avatar
 
Human Warrior
 
Sen'jin
The reason I want to use the name of the spell/texture rather than the number is because whenever new patches add icons, all of the numbers change (well, most, depending on where the new icons were inserted.) Icon texture # like 450 in patch 3.0 is different from what it is right now in 4.1, so I'd have to keep updating the #'s to keep them accurate!

United States Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a Magtheridon mod/macro Biggdogg User Interface and AddOns 24 06/22/07 5:35 AM
Huhu Macro Darksaber Public Discussion 24 06/09/06 5:26 AM
Macro Fun KGBAgent185 Public Discussion 16 11/05/05 1:24 PM