mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
Add files via upload
This commit is contained in:
18
buff.lua
Normal file
18
buff.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user