Files
RandomScriptsforAzerothCore/reset_instances.lua

12 lines
337 B
Lua
Raw Permalink Normal View History

2023-02-16 12:57:09 -07:00
local cmd = "resetid"
local function OnCommand(event, player, command)
if command == 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, OnCommand)