lanevegame
Authorized
- Joined
- Jun 18, 2015
I'm looking for an addon (that most likely doesn't exist) able to announce when Blackblade of Shahram procs, something like Nightfall (Axe) Spell Vulnerability Alert. And yes I know it would be completelly useless, but it's all about SWAG!
Anyways I've found something interesting on the official WoW forum (here is the link), someone made this addon to announce when the player gains Bloodlust and some other buff:
But this addon was made for WoW 5.0 and I wasn't able to make it work for 1.12.1 client, there's probably some function not available for this client (I tried to replace the spell IDs with some other buffs but it still doesn't work). Also I'm not a programmer so I have no clue what might be wrong and if this code might be adapted to my needs.
So here is my request, is there anyone able to make such addon? Or maybe is there something I can use for this purpose?
Let me add some more details. Blackblade of Shahram has a chance to summon Shahram, he will cast a random spell out of six available, and then disappear. He can cast the following spells:
Curse of Shahram: AE Slow Enemies
Might of Shahram: AE Stun Enemies (~5 sec)
Fist of Shahram: Group Haste - 25% (~8 sec)
Blessing of Shahram: Group restore life/mana (20 sec)
Will of Shahram: Self +50 all stats (20 sec)
Flames of Shahram: Flamestrike enemies (~100-150 damage)
So every time one of these spells trigger my character should say something like "Might of Shahram has been casted!" and so on. I tried to do something by myself but since I'm not a programmer it's kinda hard for me to understand the Lua language.
I've found a nice simple basic guide, but this is all I was able to do:
But as you can see this is incomplete, from what I understand this should trigger every time my character or any mob/player around me (?) gets a new buff. I wasn't able to figure out how to make it trigger only when Will of Shahram has been casted, or any of the other Shahram spells.
That's it, so any help would be much appreciated!
Anyways I've found something interesting on the official WoW forum (here is the link), someone made this addon to announce when the player gains Bloodlust and some other buff:
Code:
-- The spells to announce.
local SPELLS = {
-- Format:
-- [spellID] = true, -- Spell Name
[2825] = true, -- Bloodlust
[32182] = true, -- Heroism
[80353] = true, -- Time Warp
[90355] = true, -- Ancient Hysteria
}
-- This is either a chatType to send a message to or "self" if it should be printed to the chat frame instead.
-- You can see a list of chatTypes here:
-- http://www.wowpedia.org/ChatTypeId
local OUTPUT_TYPE = "self"
-- This is the channel number for the "CHANNEL" chatType, the player name for the "WHISPER" chatType or nil for everything else.
local OUTPUT_CHANNEL = nil
-- The message to send. Supports the following replacement tokens:
-- %CNAME% = The name of the person who cast the spell
-- %SNAME% = The name of the spell that was cast
-- %SLINK% = The link of the spell that was cast
local MESSAGE = "%CNAME% cast %SLINK%!"
-------------------
-- END OF CONFIG --
-------------------
local SendMessage;
do
local gsubTable = {}
SendMessage = function(spellID, spellName, caster)
gsubTable.CNAME, gsubTable.SNAME = caster, spellName
gsubTable.SLINK = GetSpellLink(spellID)
local message = MESSAGE:gsub("%%(%a+)%%", gsubTable)
if OUTPUT_TYPE == "self" then
print(message)
else
SendChatMessage(message, OUTPUT_TYPE, nil, OUTPUT_CHANNEL)
end
end
end
local PlayerGUID;
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
f:SetScript("OnEvent", function(self, event, ...)
self[event](self, ...)
end)
function f:PLAYER_ENTERING_WORLD()
PlayerGUID = UnitGUID("player")
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
end
function f:COMBAT_LOG_EVENT_UNFILTERED(timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
if event ~= "SPELL_AURA_APPLIED" or destGUID ~= PlayerGUID then return end
local spellId, spellName, spellSchool, auraType, amount = ...
if SPELLS[spellId] then
SendMessage(spellId, spellName, sourceName)
end
end
But this addon was made for WoW 5.0 and I wasn't able to make it work for 1.12.1 client, there's probably some function not available for this client (I tried to replace the spell IDs with some other buffs but it still doesn't work). Also I'm not a programmer so I have no clue what might be wrong and if this code might be adapted to my needs.
So here is my request, is there anyone able to make such addon? Or maybe is there something I can use for this purpose?
Let me add some more details. Blackblade of Shahram has a chance to summon Shahram, he will cast a random spell out of six available, and then disappear. He can cast the following spells:
Curse of Shahram: AE Slow Enemies
Might of Shahram: AE Stun Enemies (~5 sec)
Fist of Shahram: Group Haste - 25% (~8 sec)
Blessing of Shahram: Group restore life/mana (20 sec)
Will of Shahram: Self +50 all stats (20 sec)
Flames of Shahram: Flamestrike enemies (~100-150 damage)
So every time one of these spells trigger my character should say something like "Might of Shahram has been casted!" and so on. I tried to do something by myself but since I'm not a programmer it's kinda hard for me to understand the Lua language.
I've found a nice simple basic guide, but this is all I was able to do:
Code:
local WillOfShahram_EventFrame = CreateFrame("Frame")
WillOfShahram_EventFrame:RegisterEvent("UNIT_AURA")
WillOfShahram_EventFrame:SetScript("OnEvent",
function(self, event, ...)
print('Will Of Shahram has been casted!')
end)
But as you can see this is incomplete, from what I understand this should trigger every time my character or any mob/player around me (?) gets a new buff. I wasn't able to figure out how to make it trigger only when Will of Shahram has been casted, or any of the other Shahram spells.
That's it, so any help would be much appreciated!
Last edited: