mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
19 lines
465 B
Lua
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)
|