Feel free to add your own hooks and claim your edits.
Currently Features:
OnLogon
OnCast (when you equip the item...)
--[[
______ __ __
/ ____/____ ____________ ______ / /____ ____/ /
/ / / __ \/ ___/ ___/ / / / __ \/ __/ _ \/ __ /
/ /___ / /_/ / / / / / /_/ / /_/ / /_/ __/ /_/ /
\____/ \____/_/ /_/ \__,_/ .___/\__/\___/\__,_/
/_/
___ __ __ _
/ | _____/ /_ / /_ _____(_)____ ____ ____ _____
/ /| | / ___/ __ \/ __ \/ ___/ // __ \/ __ `/ _ \/ ___/
/ ___ |(__ ) / / / /_/ / / / // / / / /_/ / __/ /
/_/ |_/____/_/ /_/_.___/_/ /_//_/ /_/\__, /\___/_/
/____/
SmashnCrash
1 "I... was... pure... once."
2 "Fought... for... righteousness."
3 "I... was... once... called... Ashbringer."
4 "Betrayed... by... my... order."
5 "Destroyed... by... Kel'Thuzad."
6 "Made... to serve."
7 "My... son... watched... me... die."
8 "Crusades... fed his rage."
9 "Truth... is... unknown... to him."
10 "Scarlet... Crusade ... is pure... no longer."
11 "Balnazzar's... crusade... corrupted... my son."
12 "Kill... them... all!"
_______________
1 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_01.wav")
2 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_02.wav")
3 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_03.wav")
4 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_04.wav")
5 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_05.wav")
6 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_06.wav")
7 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_07.wav")
8 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_08.wav")
9 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_09.wav")
10 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_10.wav")
11 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_11.wav")
12 /script PlaySoundFile("Sound\\Creature\\Ashbringer\\ASH_SPEAK_12.wav")
]]--
AB = {}
local ABid = 0 --your Corrupted Ashbringer's id
function AB.SpellTrigger(event, player, spell) --OnCast...OnEquip for us.
if spell == 28282 then --the equip effect
if AB[tostring(player)] = nil then
AB[tostring(player)] = {}
AB[tostring(player)].effected = true
player:CreateLuaEvent(function() AB.PlaySound(player) end, 1000*60*45, 0) -- 45min timer
end
end
end
RegisterServerEvent(10, "AB.SpellTrigger")
function AB.OnLogon(event, player)
if player:GetEquippedItemBySlot(16):GetEntryId() == ABid or player:GetEquippedItemBySlot(15):GetEntryId() == ABid then
if AB[tostring(player)] = nil then
AB[tostring(player)] = {}
AB[tostring(player)].effected = true
player:CreateLuaEvent(function() AB.PlaySound(player) end, 1000*60*45, 0) -- 45min timer
end
end
end
RegisterServerHook(4, "AB.OnLogon")
function AB.PlaySound(player)
local sound = {8906, 8907, 8908, 8920, 8921, 8922, 8923, 8924, 8925, 8926, 8927, 8928} -- sounds 1 to 12.
if player ~= nil and AB[tostring(player)].effected == true then
if player:GetEquippedItemBySlot(16):GetEntryId() == ABid or player:GetEquippedItemBySlot(15):GetEntryId() == ABid then
player:PlaySoundToPlayer(sound[math.random(1,12)])
end
end
end














