WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   Macro Help (http://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   simple rollonloot (http://www.wowinterface.com/forums/showthread.php?t=44694)

ssbattousai 10-08-12 10:17 PM

simple rollonloot
 
Problem

/run rollonloot(rollID,1|2|3);

doesn't work, does anyone have a working macro that 'needs on the loot' rather than clicking on it.

Please no addons and no redirection to sites.

Then also a /run ConfirmLootRoll(rollID, 1|2|3); to complete the macro

Any ideas would be greatly appreciated.

Thank you all!

Phanx 10-08-12 10:19 PM

Is that your actual macro? Lua (the programming language WoW's interface uses) is case-sensitive, so "rollonloot" is not the same as "RollOnLoot".

ssbattousai 10-08-12 10:29 PM

Quote:

Originally Posted by Phanx (Post 266286)
Is that your actual macro? Lua (the programming language WoW's interface uses) is case-sensitive, so "rollonloot" is not the same as "RollOnLoot".

Yep, sorry I was writing it off the top of my head, here is the correct question

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

I want that to work, any ideas?

Torhal 10-08-12 11:56 PM

You can't make that work in a macro. Macros execute in order, without any wait between commands. You would need to have an AddOn which listens for the CONFIRM_LOOT_ROLL event, at which point your ConFirmLootRoll(id) would be executed.

Sharparam 10-09-12 10:07 AM

Might be a possible with a macro such as this:
lua Code:
  1. /run local f=CreateFrame"Frame"f:SetScript("OnEvent",function(s,e,i,r)ConfirmLootRoll(i,r)s:UnregisterEvent(e)s:SetScript("OnEvent",nil)end)f:RegisterEvent"CONFIRM_LOOT_ROLL"RollOnLoot(1,2)

This could have unintended side-effects though since the script confirms the first CONFIRM_LOOT_ROLL event, which *should* be the RollOnLoot executed right after frame creation, but it *might* not be.

Then I'm not sure about performance of creating a new frame every time the macro is called.

SDPhantom 10-09-12 10:35 AM

You can modify the code to store the frame in a global and check for the global before trying to create the frame. something like the following.
Lua Code:
  1. /run local f=CRF or CreateFrame("Frame","CRF")f:SetScript("OnEvent",function(s,e,i,r)ConfirmLootRoll(i,r)s:UnregisterEvent(e)s:SetScript("OnEvent",nil)end)f:RegisterEvent"CONFIRM_LOOT_ROLL"RollOnLoot(1,2)

ssbattousai 10-09-12 01:57 PM

Hmm doesn't really seem to work, any auto need/greed/disenchant and auto confirmloot addons that's easy to use then?

The problem is I have to reinstall the addons on 3-4 different computers, even with curse client.

Sharparam 10-09-12 03:15 PM

Quote:

Originally Posted by ssbattousai (Post 266358)
Hmm doesn't really seem to work, any auto need/greed/disenchant and auto confirmloot addons that's easy to use then?

The problem is I have to reinstall the addons on 3-4 different computers, even with curse client.

There probably are, but what exactly do you want it to do? Roll need/greed/DE every time, or a different roll type depending on the item?

The former could easily be achieved, the second would need some more work.

ssbattousai 10-09-12 05:07 PM

Quote:

Originally Posted by F16Gaming (Post 266366)
There probably are, but what exactly do you want it to do? Roll need/greed/DE every time, or a different roll type depending on the item?

The former could easily be achieved, the second would need some more work.

Yes, Every time, like a crazy needy greedy person :)

Dridzt 10-09-12 09:56 PM

Most addons of the kind take care to turn the auto-roll functionality off while in a group or offer specific rules for when to roll on what.

Rolling need on everything that can be needed looks like a very good way to ruin the reputation of any addon.
(I'm guessing you don't care about yours or you wouldn't request this)

Phanx 10-09-12 10:34 PM

The Confirm Loot Roll addon may be of interest. It will automatically confirm whatever kind of roll you do. You would still need to click need/greed/disenchant, or use a macro to run RollOnLoot with the appropriate values.

If you want something that will roll automatically on certain item types, you could try PassLoot, but you would need to set it up to roll how you want.

If you want something that will unconditionally roll Need on everything, you could probably configure PassLoot to do that, but I don't think anyone here (myself included) will help you configure it, or write any code to do this for you, since this is not the kind of behavior anyone appreciates in a group.


All times are GMT -6. The time now is 07:38 AM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC