mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
Add files via upload
This commit is contained in:
23
NPCBrave.lua
Normal file
23
NPCBrave.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
local BRAVE_IDS = {5412, 5511, 5512, 957, 7798, 11026, 5518, 5510, 5509, 1416, 5514, 29016, 29019}
|
||||
local BRAVERY_DIALOGUE = {
|
||||
"I fear no enemy!",
|
||||
"I will fight to the bitter end!",
|
||||
"This battle is mine!",
|
||||
"This is MY city!",
|
||||
"My courage will never falter!",
|
||||
"I'll show you what true bravery is!",
|
||||
"I am unbreakable!",
|
||||
"This fight is mine to win!",
|
||||
"I'll fight until my last breath!",
|
||||
"Pfft, you think you can scare the likes of me!?"
|
||||
}
|
||||
|
||||
local function OnCombat(event, creature, target)
|
||||
if math.random() < 0.5 then -- 50% chance to trigger dialogue
|
||||
creature:SendUnitSay(BRAVERY_DIALOGUE[math.random(#BRAVERY_DIALOGUE)], 0)
|
||||
end
|
||||
end
|
||||
|
||||
for i, id in ipairs(BRAVE_IDS) do
|
||||
RegisterCreatureEvent(id, 1, OnCombat)
|
||||
end
|
||||
Reference in New Issue
Block a user