SHOW:
|
|
- or go back to the newest paste.
| 1 | if not Looter then | |
| 2 | Looter = CreateFrame("frame")
| |
| 3 | end | |
| 4 | ||
| 5 | - | LooterLootTable = { "Azshara's Veil", "Cinderbloom", "Heartblossom", "Stormvine", "Twilight Jasmine", "Whiptail", "Embersilk Cloth", "Sealed Crate", "Volatile Fire", "Volatile Earth", "Volatile Water", "Volatile Air", "Volatile Life", "Obsidium Ore", "Heavy Savage Leather", "Elementium Ore", "Pyrite Ore", }
|
| 5 | + | LooterLootTable = { "Azshara's Veil", "Cinderbloom", "Heartblossom", "Stormvine", "Twilight Jasmine", "Whiptail", "Embersilk Cloth", "Sealed Crate", "Volatile Fire", "Volatile Earth", "Volatile Water", "Volatile Air", "Volatile Life", "Tome of Polymorph: Turtle", "Sea Turtle" }
|
| 6 | local frame = Looter | |
| 7 | frame:RegisterEvent("LOOT_OPENED")
| |
| 8 | frame:SetScript("OnEvent", function(self, event, ...)
| |
| 9 | - | LooterAutoLoot() |
| 9 | + | |
| 10 | for i = 1, GetNumLootItems() do | |
| 11 | - | end) |
| 11 | + | |
| 12 | - | Looting = { };
|
| 12 | + | |
| 13 | print(link) | |
| 14 | - | function LooterAutoLoot() |
| 14 | + | |
| 15 | - | table.wipe(Looting) |
| 15 | + | |
| 16 | - | print("Found: " ..GetNumLootItems().. " item(s)")
|
| 16 | + | |
| 17 | print("|cffff00ffLooted: |r" ..link.. " |cffff00ffAmount: |r" ..quantity)
| |
| 18 | LootSlot(i) | |
| 19 | end | |
| 20 | - | table.insert(Looting, link) |
| 20 | + | |
| 21 | end | |
| 22 | ||
| 23 | if (i == GetNumLootItems()) then | |
| 24 | - | table.remove(Looting, 1) |
| 24 | + | |
| 25 | end | |
| 26 | end | |
| 27 | - | else |
| 27 | + | end) |