Thread Tools Display Modes
04-04-14, 04:06 PM   #1
wildnature100
A Murloc Raider
Join Date: Apr 2014
Posts: 4
Bid/Retract Macro for Suicide kings loot system

Hello Wow interface users.

I hope some macro expert can help me and my guild out

We have implemented suicide kings loot system.

In this we need to whisper our lootmaster with bid if we want an item and retract if we have made a bid but want to pass.

There we have been spending over a few hours trying to figure out how to create a macro where we can bid with a left click (send a whisper to our loot master saying bid and a right click will send a whisper to our loot master saying retract.

We have tryed varied /run commands, but had no succes.

we have also trying the
[button:1] /w loot master bid
[button:2] /w loot master retract

with no luck.

I hope someone can help us.

From wildnature100
  Reply With Quote
04-04-14, 04:32 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Macro conditionals only work with macro commands. "/w" and "/run" aren't macro commands, so you can't use macro conditionals with them.

Code:
/run SendChatMessage(IsMouseButtonDown("RightButton") and "retract" or "bid", "WHISPER", nil, "Lootmaster")
This will probably also only work if you have actions trigger on mousedown instead of mouseup in your Interface Options, since otherwise the mouse button is no longer down when the command is executed. Using a modifier key (eg. Shift) would probably work better:

Code:
/run SendChatMessage(IsShiftKeyDown() and "retract" or "bid", "WHISPER", nil, "Lootmaster")
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 04-06-14 at 03:54 AM.
  Reply With Quote
04-04-14, 04:41 PM   #3
wildnature100
A Murloc Raider
Join Date: Apr 2014
Posts: 4
Hello Again

Thanks for the fast reply.

However no success either one any of them

I changed Lootmaster to Milyaa (a friend of mine char's name)

Do anyone have an alternative?

Last edited by wildnature100 : 04-05-14 at 10:18 AM.
  Reply With Quote
04-05-14, 09:00 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
1. Can you be more specific about "no success" means?

2. Do you have "Cast action keybinds on key down" checked under Interface Options > Action Bars?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
04-06-14, 02:03 AM   #5
wildnature100
A Murloc Raider
Join Date: Apr 2014
Posts: 4
1. I mean none of the two macro's works, no chat messages was sent to the char name i entered instead of "lootmaster" example "Milyaa"

Code:
/run SendChatMessage("WHISPER", IsMouseButtonDown("RightButton") and "retract" or "bid", nil, "Milyaa")
And

Code:
/run SendChatMessage("WHISPER", IsShiftKeyDown() and "retract" or "bid", nil, "Milyaa")
Nothing happened when i clicked this new macro with those codes in them. and yes Milyaa was online. and right next to me when i tried.

2. Yes this function is marked.

Maybe i do something wrong that i do not notice

Last edited by wildnature100 : 04-06-14 at 02:07 AM.
  Reply With Quote
04-06-14, 03:56 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Oops, sorry, must have been late when I wrote those... swap the "WHISPER" to the second position, just before the nil. I updated the commands in my last post, too.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
04-06-14, 06:27 AM   #7
wildnature100
A Murloc Raider
Join Date: Apr 2014
Posts: 4
Hello Phanx

They work now Thank you very much.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Bid/Retract Macro for Suicide kings loot system

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

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