diff --git a/AbilitiesOnLevelUp.lua b/AbilitiesOnLevelUp.lua index 5fd3f93..a8a9874 100644 --- a/AbilitiesOnLevelUp.lua +++ b/AbilitiesOnLevelUp.lua @@ -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 ? diff --git a/BufferNPC.lua b/BufferNPC.lua index 7880e7f..d71adcf 100644 --- a/BufferNPC.lua +++ b/BufferNPC.lua @@ -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