Making a macro topic? Check this first!
by Zuo | 13/08/2007 20:26:41![]() What is a macro?
Basic macros
2. A /script command - Note that since 2.0 we can no longer use such to calculate and cast heals by health lost, equip gear, e.g. But can still be useful, we will get to that later on. /script is basically so you can use LUA language in your macros, quite advanced for beginners but in short the game interface is build on a programming language called LUA. 3. A /console command - Not really used much, but can be used for something like changing combat log range. Note: If you enter some text like "Hello!" without any /say or /yell, the text will be said in the last channel you were active in. If you last typed in /guild then you will say "Hello!" in the guild chat. By default it would go into /say. Making your first macro
Let's make an easy macro, witch involves you going to rest, have some conjured water and you would like to inform your party about this.
2. Then I would pick a neat icon, but since I know I will be drinking I will leave the icon as a "?". 3. The macro content would be like this:
I will break down the macro a bit for you. #showtooltip Conjured Glacier Water
/use Conjured Glacier Water
/p Wait a minute, need a short mana break...
So let's make the macro a bit more advanced:
So what happened, what changed? A new line was added to the macro! /stopmacro [combat]
Macro conditionals
2. harm - If it is hostile 3. exists - If it exists 4. dead - If it's dead 5. stance:0/1/2/.../n - A stance number, when you look at the stance bar, the spell to the most left is number 1, then 2, 3, e.g. 6. stealth - Stealthed 7. modifier:shift/ctrl/alt - If the given key is been held down 8. button:1/.../5/<virtual click> - If the macro was clicked with the given mouse button 9. equipped:<item type> - If the item type is equipped. Can be inventory slot, item type or item subtype 10. channeling:<spell name> - If the spell is being channeled, or just "channeling" for any kind of channeling ability 11. actionbar:1/.../6 - If the actionbar given is active 12. pet:<pet name or type> - If the pet is summoned 13. combat - In combat 14. mounted - If mounted 15. swimming - If swimming 16. flying - If you are flying 17. flyable - If you can fly in the zone 18. indoors - If you are indoors 19. outdoors - If you are outdoors 20. party - If it is in your party 21. raid - If it is in your raid 22. group:party/raid - If it is in the group you pick, party or raid Some *tips & tricks*
#showtooltip - Can be used to drag out passive abilities, such as Reincarnation to show reagents and cooldown. /script - Can be used with LUA language (API). Check this for a list: http://www.wowwiki.com/World_of_Warcraft_API /console - Can be used for example to extend combat log range, check this: http://www.wowwiki.com/Config.wtf_defaults (Also remember to check out the "Console variables/Complete list" link!) /use and /userandom do exactly the same as /cast and /castrandom /run - Alias for /script /tar - Alias for /target /a - Alias for /assist /m - Alias for /macro /equip and /use - You can use slot id to equip or use items in certain slots, or use certain slots without being item name depended. An example is /equip 14 <trinket name> would make you equip that trinket in First Trinket Slot (and not First). Using /use 13 would make you use the First Trinket that is equipped, again in depended of a name, great if you change trinkets all the time. Macro resources, where?
I hope this could help out some people with their macros, it's not hard at all! Just look around, read a bit and you will get the hang of it! If you still need help feel free to make a topic and we in the community will try to help you out! I am aware that I couldn't supply enough information about /script and /console macros, but most of them are made by special requests, since most would use a addon to do most of the tasks many people ask a macro to do (like detecting events, e.g. making macros for such and examples.. I think that would be a bit too much for a person who would only like to know how he can cast a spell and yell something and such :P) [ Post edited by Zuo ] Vacation? http://z0r.de/?id=956 :( |
by Tharfor | 14/08/2007 09:53:22![]() This thread is a nice counterpart to the existing one. Therefore I have added this thread to the sticky (yay!): UI Sticky compilation - Updated 10/06 “Dare to be honest and fear no labor.” |
Hot: Tharfor comments on trojan alerts on popular database sites


Recent Blizzard Announcements

