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