Add files via upload

This commit is contained in:
Dinkledork
2023-03-06 05:52:04 -07:00
committed by GitHub
parent 22eed3ecf2
commit 9997b2b1ea
10 changed files with 168 additions and 66 deletions

26
HordeWarHerald.lua Normal file
View File

@@ -0,0 +1,26 @@
local BLESSING_SPELL_ID = 100168 -- replace with the first spell ID
local SOULSTONE_SPELL_ID = 20707 -- replace with the second spell ID
local function OnGossipHello(event, player, creature)
player:GossipMenuAddItem(9, "|TInterface\\Icons\\achievement_leader_ thrall:50:50:-23:0|tReceive the Warchief's Rage", 0, 1, false, "", 0)
player:GossipMenuAddItem(9, "|TInterface\\Icons\\inv_misc_orb_04:50:50:-23:0|tReceive a Soulstone", 0, 2, false, "", 0)
player:GossipSendMenu(1, creature)
end
local function OnGossipSelect(event, player, creature, sender, intid, code, menuid)
if intid == 1 then
player:CastSpell(player, BLESSING_SPELL_ID, true)
elseif intid == 2 then
player:CastSpell(player, SOULSTONE_SPELL_ID, true)
end
player:GossipComplete()
end
local function YellDialogue(event, creature)
creature:SendUnitYell("Adventurers, do not go unprepared! Come speak with me and I will grant you the strength you need!", 0)
end
RegisterCreatureGossipEvent(400065, 1, OnGossipHello)
RegisterCreatureGossipEvent(400065, 2, OnGossipSelect)
RegisterCreatureEvent(400065, 5, function(event, creature) YellDialogue(event, creature) end)