-
Notifications
You must be signed in to change notification settings - Fork 12
/
HordeShout.lua
24 lines (21 loc) · 982 Bytes
/
HordeShout.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
local WolfRider = {};
local dialogues = {
"For the Horde!",
"Victory for the Horde!",
"Our enemies will tremble before the might of the Horde!",
"Lok'tar ogar!",
"Let the winds of war carry us to glory!",
"The Horde will claim what is rightfully ours!",
"We will show the Lich King the power of the Horde!",
"For the glory of the Warchief!",
"None shall stand against the Horde!",
"Our enemies will rue the day they crossed the Horde!",
"With the strength of the Horde, we will triumph!",
"Let us show the Scourge the might of the Horde!",
"We will prove the might of the Horde!",
}
local function OnSpawn(event, creature)
local randomDialogue = dialogues[math.random(#dialogues)] -- Selects a random dialogue from the "dialogues" table
creature:SendUnitYell(randomDialogue,0) -- Makes the creature yell the selected dialogue
end
RegisterCreatureEvent(400045, 5, OnSpawn) -- Registers the "OnSpawn" function as a spawn event for the creature with ID 400014