mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
15 lines
409 B
Lua
15 lines
409 B
Lua
local ResetIdModule = {}
|
|
|
|
ResetIdModule.cmd = "resetid"
|
|
|
|
function ResetIdModule.OnCommand(event, player, command)
|
|
if command == ResetIdModule.cmd then
|
|
if not player:IsInCombat() then
|
|
player:UnbindAllInstances()
|
|
player:SendBroadcastMessage("Your instance ID's have been reset.")
|
|
end
|
|
return false
|
|
end
|
|
end
|
|
|
|
RegisterPlayerEvent(42, ResetIdModule.OnCommand)
|