PDA

View Full Version : Macro to Greed and Confirm loot rolls



Zal
04-09-2010, 02:58 PM
Trying make a macro that will greed roll and then confirm the roll. Currently i'm using Jamba's Opt out of loot function, but not rolling on loot cuts out how much I make when its only 1 of my toons and a pug rolling (i'm a 4 boxer). Yes I realize that I could just manually click the button but that takes time and i'd like to speed things up a bit.

http://www.wowwiki.com/World_of_Warcraft_API

Following scripts from above link under Loot Functions you'll find

ConfirmLootRoll (http://www.dual-boxing.com/API_ConfirmLootRoll)(rollId[, roll]) - Confirm a loot roll (NEW IN 1300)
Arguments
(required)
Rollid
Number - The number increases with every roll you have in a party. Till how high it counts is currently unknown.
(Optional)
roll
Number/nil - Is the roll a pass on the item or a real roll? send nil to pass on the item, send 1 to roll. Note: Blizzard uses 0 to pass, 1 to Need an item, 2 to Greed an item, and 3 to Disenchant an item.

RollOnLoot (http://www.dual-boxing.com/API_RollOnLoot)(rollId[, roll]) - Roll or pass on a loot event started by the game engine.
RollID
Number - As passed by the event. (The number increases with every roll you have in a party)
roll
Number - Type of roll: (also passed by the event) 1 : Need roll 2 : Greed roll 3 : Disenchant roll

So why doesn't the following work?

/script RollOnLoot(1[, 2])
/script ConfirmLootRoll(1[, 2])

lacitpo
04-09-2010, 03:09 PM
Use this macro to find the name of those buttons and create a click macro for it.


/run local f = GetMouseFocus(); if f then DEFAULT_CHAT_FRAME:AddMessage(f:GetName()) end

Poyzon
04-09-2010, 04:22 PM
Take out the brackets. They are there to indicate optional parameters.


/script RollOnLoot(1, 2)
/script ConfirmLootRoll(1, 2)

Zal
04-09-2010, 04:52 PM
/click worked. Haven't tested Poyzon's idea.
Here's the macro:



/click GroupLootFrame1GreedButton
/click StaticPopup1Button1
/click GroupLootFrame2GreedButton
/click StaticPopup1Button1
/click GroupLootFrame3GreedButton
/click StaticPopup1Button1
/click GroupLootFrame4GreedButton
/click StaticPopup1Button1


Works with up to 4 roll items dropped at a time.

Tdog
04-10-2010, 05:29 AM
sweet im going to have to go try this out now.