Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation

Reply
 
Thread Tools Display Modes
Old 12-05-2007, 05:59 PM   #1
justalookin
WoW: IncGamers Member
 
Join Date: Mar 2007
Posts: 34
Announce a bandaging

I would like to use two buttons which activate 2 respective macros (bandage either myself or a part member, and announce this fact in the party chat).

Code:
## macro on button 1: bandage selected player and announce to party chat
/use [button:2,target=player] Heavy Silk Bandage
/script SendChatMessage("BANDAGING %T", "party" ); 

## macro on button 2: bandage myself and announce to party chat
/use [button:2,target=MyOwnPlayerName] Heavy Silk Bandage
/script SendChatMessage("BANDAGING self", "party" );
I haven't had a chance to test button 1 yet, but button 2's only action is to output the message to party chat - it doesn't bandage me.

I'm very new to WOW macros, so am still learning. If anyone has any clues about what I'm doing wrong (cobbled together from net examples and the API) they would be very welcome.
justalookin is offline   Reply With Quote
Old 12-05-2007, 06:39 PM   #2
UnKnOwN sOuL
WorldofWar.Net Member
 
Join Date: Jan 2007
Posts: 23
Code:
## macro on button 1: bandage selected player and announce to party chat
/use [target=target] Heavy Silk Bandage
/script SendChatMessage("BANDAGING %T", "party" ); 

## macro on button 2: bandage myself and announce to party chat
/use [target=player] Heavy Silk Bandage
/script SendChatMessage("BANDAGING self", "party" );
you can also combine them

Code:
/use [button:2,target=player] Heavy Silk Bandage; [help] Heavy Silk Bandage
/script SendChatMessage("BANDAGING %T", "party" );
UnKnOwN sOuL is offline   Reply With Quote
Old 13-05-2007, 12:24 AM   #3
Tunga
WorldofWar.Net Member
 
Tunga's Avatar
 
Join Date: Jul 2005
Location: London
Posts: 3,902
Code:
/use [button:2,target=MyOwnPlayerName] Heavy Silk Bandage
As US did above, instead of MyOwnPlayerName, just put the word player. That should fix it.
Tunga is offline   Reply With Quote
Old 13-05-2007, 01:45 PM   #4
justalookin
WoW: IncGamers Member
 
Join Date: Mar 2007
Posts: 34
Brilliant, working like a charm :) Many thanks.
justalookin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden