Sort of Hacky fix:
Code:
local GetRandom
function LK_OnGossipTalkz(Unit, Event, pPlayer)
GetRandom = math.random(1,2)
if GetRandom == 1 then
pPlayer:PlaySoundToPlayer(17364)
end
if GetRandom == 2 then
pPlayer:PlaySoundToPlayer(17372)
end
Unit:GossipCreateMenu(100, pPlayer, 0)
Unit:GossipMenuAddItem(2, "Speak to me!", 299, 0) -- For some reason you can't have a one option gossip without ArcEmu crashing or not bringing up the gossip option at all
Unit:GossipMenuAddItem(0, "Do Nothing", 300, 0)
Unit:GossipSendMenu(pPlayer)
end
function LK_OnGossipSelect(Unit, Event, pPlayer, id, intid, code)
if(intid == 299) then
pPlayer:PlaySoundToPlayer(17230) -- This line can also be changed, but right now it will play another Lich King Sound
pPlayer:GossipComplete()
end
if(intid == 300) then
pPlayer:GossipComplete()
end
end
RegisterUnitGossipEvent(133729, 1, "LK_OnGossipTalkz")
RegisterUnitGossipEvent(133729, 2, "LK_OnGossipSelect")
Save as any name, but make sure it has the file ending ".lua". To do this, paste it into notepad, choose save as, you will see two bars below the big box, The top one names it, the bottom one specifies what type the file is. Change the file type from .txt to all types, and save it as something like "LichKingTalk.lua" YOU MUST INCLUDE THE ".lua" AT THE END! Then place this .lua file into your scripts folder in your ArcEmu Core, and restart the core.