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

11 lines
280 B
Lua
Raw Permalink Normal View History

local UnbindCommand = {}
local MSG_UNBIND = "#unbind"
local function UnbindInstances(event, player, msg, Type, lang)
if (msg:find(MSG_UNBIND)) then
player:UnbindAllInstances()
player:SendBroadcastMessage("All instances unbound.")
end
end
RegisterPlayerEvent(18, UnbindInstances)