eluna-scripts-ornfelt/lua/RandomScriptsforAzerothCore/repair.lua

12 lines
345 B
Lua
Raw Permalink Normal View History

local cmd = "repairall"
local function OnCommand(event, player, command)
if command == cmd then
if not player:IsInCombat() then
player:DurabilityRepairAll( false )
player:SendBroadcastMessage("Your equipment has been repaired.")
end
return false
end
end
RegisterPlayerEvent(42, OnCommand)