-
Notifications
You must be signed in to change notification settings - Fork 0
/
sounds.lua
executable file
·76 lines (69 loc) · 2.31 KB
/
sounds.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
local SoundService = {};
local function incrementSound ()
CorruptedWannabeSettings.nextSound = CorruptedWannabeSettings.nextSound + 1;
if (CorruptedWannabeSettings.nextSound > 12) then
CorruptedWannabeSettings.nextSound = 1;
end
end
local ashbringerSounds = {
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_01.ogg",
["text"] = "I was pure once.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_02.ogg",
["text"] = "Fought for righteousness.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_03.ogg",
["text"] = "I was called Ashbringer.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_04.ogg",
["text"] = "Betrayed by my order.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_05.ogg",
["text"] = "Destroyed by Kel'Thuzad.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_06.ogg",
["text"] = "Suffer pain to serve.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_07.ogg",
["text"] = "My son watched me die.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_08.ogg",
["text"] = "Crusades fed his rage.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_09.ogg",
["text"] = "Truth is unknown to him.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_10.ogg",
["text"] = "Scarlet Crusade is pure no longer.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_11.ogg",
["text"] = "Balnazzar's crusade corrupted my son.",
},
{
["file"] = "Sound\\Creature\\Ashbringer\\ASH_SPEAK_12.ogg",
["text"] = "Kill them all!",
},
};
SoundService.playNextSound = function()
local ShouldPlaySound = math.random(100 / CorruptedWannabeSettings.soundProbabilityPercent);
local nextSound = CorruptedWannabeSettings.nextSound;
if (ShouldPlaySound == 1) then
PlaySoundFile(ashbringerSounds[nextSound].file);
if (CorruptedWannabeSettings.showWhispers == true) then
print("|cFFF8B0DEAn Unknown Voice whispers:", ashbringerSounds[nextSound].text);
end
incrementSound();
end
end
CorruptedWannabe.SoundService = SoundService;