Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DMW = DMW
- local EHFrame = CreateFrame("Frame")
- EHFrame:RegisterEvent("ENCOUNTER_START")
- EHFrame:RegisterEvent("ENCOUNTER_END")
- EHFrame:RegisterEvent("LOOT_CLOSED")
- local function EventHandler(self, event, ...)
- if GetObjectWithGUID then
- if event == "LOOT_CLOSED" then
- for bag = 0, 4, 1 do
- for slot = 1, 36, 1 do
- local name = GetContainerItemLink(bag, slot)
- if (name and string.find(name, "19 Pound Catfish"))
- or (name and string.find(name, "Raw Longjaw Mud Snapper"))
- or (name and string.find(name, "Raw Bristle Whisker Catfish"))
- or (name and string.find(name, "Raw Brilliant Smallfish"))
- or (name and string.find(name, "Raw Spotted Yellowtail"))
- or (name and string.find(name, "Zesty Clam Meat"))
- or (name and string.find(name, "Raw Glossy Mightfish"))
- or (name and string.find(name, "Raw Rockscale Cod"))
- or (name and string.find(name, "40 Pound Grouper"))
- then
- PickupContainerItem(bag, slot)
- DeleteCursorItem()
- end
- local itemID = GetContainerItemID(bag, slot)
- local container = itemID == 7973 and true or false
- if container then
- UseContainerItem(bag, slot)
- end
- end
- end
- end
- end
- end
- EHFrame:SetScript("OnEvent", EventHandler)
- SLASH_TimeToDc1 = "/TimeToDc"
- SlashCmdList["TimeToDc"] = function(msg)
- local SetTime = 7000
- print("Time " .. SetTime)
- C_Timer.After(SetTime, function()
- RunMacroText(".dc")
- end)
- end
- local function OniriPlugin()
- if DMW and DMW.Player and DMW.Player.Target and DMW.Player.Target.Dead and IsHackEnabled("follow") then SetHackEnabled("follow", false) end
- end
- DMW.Plugins.TestPlugin = OniriPlugin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement