Skip to content

Commit

Permalink
ClassicAutoSayge v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatKalle committed Jun 9, 2020
1 parent f1a3137 commit 55fbcd7
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
39 changes: 39 additions & 0 deletions ClassicAutoSayge.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-- File: ClassicAutoSayge.lua
-- Name: ClassicAutoSayge
-- Author: ThatKalle
-- Description: A minimalist Darkmoon Faire Sayge auto gossip Addon.
-- Version: 1.0.0


casFrame = CreateFrame("FRAME")

local function casRegisterEvents()
casFrame:RegisterEvent("GOSSIP_SHOW")
end

local function SkipGossip()
local void, gossipType = GetGossipOptions()
if gossipType then
if gossipType == "gossip" then
SelectGossipOption(1)
end
end
end

casRegisterEvents()

casFrame:SetScript("OnEvent", function(__, event)
if (event == "GOSSIP_SHOW") then
local npcGuid = UnitGUID("target") or nil
if npcGuid then
local void, void, void, void, void, npcID = strsplit("-", npcGuid)
if npcID then
if npcID == "14822" -- Sayge
then
SkipGossip()
return
end
end
end
end
end)
7 changes: 7 additions & 0 deletions ClassicAutoSayge.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Interface: 11304
## Title: ClassicAutoSayge
## SavedVariables: ClassicAutoSayge
## Author: ThatKalle
## Notes: A minimalist Darkmoon Faire Sayge auto gossip Addon.
## Version: 1.0.0
ClassicAutoSayge.lua
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# ClassicAutoSayge
A minimalist Darkmoon Faire Sayge auto gossip Addon

Upon interaction with [Sayge](https://classic.wowhead.com/npc=14822/sayge) in Darkmoon Faire the addon will automatically collect the 10%dmg buff, [Sayge's Dark Fortune of Damage](https://classic.wowhead.com/spell=23768/sayges-dark-fortune-of-damage).

## Installation

Make sure the folder is named `ClassicAutoSayge` in your `Interface\AddOns` folder. If you download the master branch from GitHub it will add `-master` to the folder name.

0 comments on commit 55fbcd7

Please sign in to comment.