Add files via upload

This commit is contained in:
Dinkledork
2023-03-29 13:51:51 -06:00
committed by GitHub
parent c66e12afdd
commit 4013360da1
2 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
------------------------------------------------------------------------------------------------
-- AUTO LEARN SKILLS MOD
------------------------------------------------------------------------------------------------
-- Please note that I may have missed a few spells here and there. If so let me know but it's also a good idea to check with your trainer on occasion anyway.
local EnableModule = false -- Set to true to enable
local AnnounceModule = false -- Announce module on player login ?

View File

@@ -1,5 +1,6 @@
-- place in game with .npc add 400117
local ENABLE_BUFF_NPC = true -- Set this to true to enable BufferNPC, false to disable
local NPCID = 400117
local ANNOUNCE_MODULE = true
local BUFF_BY_LEVEL = true
@@ -135,16 +136,18 @@ for _, buff in ipairs(vecBuffs) do
player:CastSpell(player, buff, true)
end
end
creature:SendUnitSay(PickWhisper(PlayerName), 0)
creature:PerformEmote(71)
player:GossipComplete()
end
local function OnGossipHello(event, player, creature)
player:GossipMenuAddItem(0, "|TInterface\\icons\\spell_misc_emotionhappy:43:43:-33|t|cff007d45Buff me!|r", 1, 1)
player:GossipSendMenu(1, creature)
if ENABLE_BUFF_NPC then
player:GossipMenuAddItem(0, "|TInterface\\icons\\spell_misc_emotionhappy:43:43:-33|t|cff007d45Buff me!|r", 1, 1)
player:GossipSendMenu(1, creature)
else
player:SendBroadcastMessage("You must Enable BufferNPC in lua_scripts to speak with this NPC.")
end
end