Files
RandomScriptsforAzerothCore/buff.lua
2023-02-04 03:28:42 -07:00

19 lines
465 B
Lua

local cmd = "buff"
local auras = { 71954 }
local function OnCommand(event, player, command)
if command == cmd then
if not player:IsInCombat() then
for i = 2, #auras, 1 do
player:AddAura(auras[i], player)
end
player:CastSpell(player, auras[1], true)
else
player:SendNotification("You're on combat!")
end
return false
end
end
RegisterPlayerEvent(42, OnCommand)