mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 10:22:22 -04:00
Add files via upload
This commit is contained in:
29
Faction_Shared/NPCFreakout.lua
Normal file
29
Faction_Shared/NPCFreakout.lua
Normal 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, 1395, 2795, 1320, 1318, 1310, 3399, 7010, 5811, 3351, 400062, 400067 }
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user