eluna-scripts-ornfelt/lua/RandomScriptsforAzerothCore/repair.lua
2024-09-23 07:59:23 +02:00

12 lines
No EOL
345 B
Lua

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)