Add files via upload

This commit is contained in:
Dinkledork
2023-02-15 15:04:02 -07:00
committed by GitHub
parent 20cf067590
commit cc5afc7c6c
15 changed files with 430 additions and 23 deletions

29
NPCFreakout.lua Normal file
View File

@@ -0,0 +1,29 @@
local FREAKOUT_NPC = { 30217, 4981, 483, 5193, 1402, 70021, 1257, 1286, 1285, 3520, 3513, 1432, 1402, 1444, 7917, 1212, 6173, 5489, 4982, 5484, 14500, 14450, 14496, 14497, 6579, 5519, 6007, 29152, 9977 }
function OnEnterCombat(event, creature, target)
creature:CastSpell(creature, 31358, true) -- fear spell
local yellOptions = {
"Aaahhh! Somebody help!",
"I can't believe this is happening, why is this happening?!",
"I don't know what to do, I don't know what to do!",
"No! Stay away from me!",
"Please, please let this be a nightmare!",
"I can't handle this, I can't handle this!",
"No, no, no!",
"This can't be happening!",
"I'm not ready for this!",
"This is insane, how did we get here?!",
"Why is this happening to me?!",
"I don't want to die!",
"I'm not prepared for this, I'm not prepared for this at all!",
"Please, someone help me!",
"There's no way this is happening!"
}
local randomIndex = math.random(1, 15)
local selectedYell = yellOptions[randomIndex]
creature:SendUnitYell(selectedYell, 0)
end
for i, id in ipairs(FREAKOUT_NPC) do
RegisterCreatureEvent(id, 1, OnEnterCombat)
end