This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
[GUIDE] How to make macros!
Post Reply
Return to board index
Post by
HighFive
1) Replace "/cast Renew" with "\/cast Renew\".
2) You're correct that "on next swing" abilities are not affected by the "!", but they can be canceled by quite a few ways. For example changing your target or "/stopcasting".
Post by
Wildhorn
Yeah I know. It can also be stopped if you run out of rage by using instant attacks before it goes off. I meant you cant stop it manually just by clicking it again.
Post by
pelf
1) "Your order example is missing a quote block."
--- I dont get it. What do you mean?
Example:
/cast Renew
This is bad because you are always a valid target for Renew, so it will always cast it on you and never check for your target.
No code/quote block around the macro text.
2) "I would use something like Heroic Strike or Maul as an example for the toggleable ability instead of Ice Block."
--- Comon, not you... people will have to get this out of their mind. HS and Maul (or any other "on next swing" spell) CANT be turned off no matter what. Once you click it, you cant stop it.
Is that right? Did they change that behavior some time, years ago, after they added the ! I
swear
I remember clicking it too many times and having the next melee swing turn into a white attack. I will have to test this.
3) "(will prevent you >from turning< off Ice Block if >it is already active.<)"
--- Thanks alot for this one... i spent a good 20 minutes trying to figure out how to say it with no success :(
Sure. I didn't want to get too English-grammar-nazi on you -- I left some of your idiosyncrasies of composition -- but some of them were a little odd and I could definitely see where they came from in the French. The gerund comment was another one of those.
Post by
mortalya
good info ty guys
Post by
Wildhorn
I finally fixed all the typos/error you pointed out pelf.
Post by
pelf
I finally fixed all the typos/error you pointed out pelf.
I'm glad you found my list-o-crap to be of worth :).
Post by
Mazera
Something I noticed with testing on the stopmacro command conditions. It will stop the macro <UNLESS> the conditions are met. It will not stop the macro if the condition(s) are met.
Example (most of the code for swapping a single 2-h Weapon with two 1-h Weapons):
/script PickupContainerItem(1,1); PickupInventoryItem(16);
/stopmacro
/script PickupContainerItem(1,2); AutoEquipCursorItem();
In this example, which follows what you said on the stopmacro command stopping if the condition was met, you would get the second item picked up when you equipped a 2-hander with the first piece of script code.
Now, when I edited the condition to "one-hand", it would properly grab the off-hand weapon when the main-hand was equipped.
While I need 1 more script command for dropping an item into an empty slot in equipment on character or empty bag slot, I felt it was a good idea to mention this correction.
EDIT: With the WoW Scripting Wiki, I found the proper script code to equip the item that is picked up by the code PickupContainerItem().
Post by
Wildhorn
stopmacro is correct.
test it with
/stopmacro
/s test
while targeting yourself
p.s. You didnt need to post all that text and macro just to point it out :P Now there gonna be people trying to improve or argue about the macro you posted >_<
Post by
HighFive
Actually that is not the issue. The macro isn't working properly, but /stopmacro does indeed only stop it when the conditions are met.
The problem is that the equipping functions are not "instant", but the execution of macros is. I.e. the "/stopmacro " is actually checked
before
the two-hander is equipped (or unequipped). I'll test a couple of alternatives for doing this and post back.
edit: A simple castsequence seems to do the trick:/castsequence Main Hander, Two-Hander
/equip Off-Hand
edit2: p.s. You didnt need to post all that text and macro just to point it out :P Now there gonna be people trying to improve or argue about the macro you posted >_<Too late :0
Post by
318018
This post was from a user who has deleted their account.
Post by
asdffdsa777
Is there a command /castself ? I need to know is there any way to cast a spell on you, without deselecting your current target?
Post by
HighFive
Is there a command /castself ? I need to know is there any way to cast a spell on you, without deselecting your current target?I suggest reading the guide.
Post by
Wildhorn
@Elverdir: Press the macro twice.
Post by
Wildhorn
I think, after some sleep, I will edit the first post to make it more beginner friendly.
Post by
435622
This post was from a user who has deleted their account.
Post by
179389
This post was from a user who has deleted their account.
Post by
124899
This post was from a user who has deleted their account.
Post by
435622
This post was from a user who has deleted their account.
Post by
janniie
On the last page of you guide you wrote:
Note: target=target is optional. Example: is the same
than
.
I'm pretty sure it should be "...is the same
as
..."
Thank you for this awesome guide Wildhorn, helped me alot :)
Post by
Wildhorn
No idea of what you are talking about, I see an "as" >.>
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.