Shestak UI
Go Back   Shestak UI > Interface Forums > Russian Community > Technical Support

Technical Support Ask for help or find solutions about ShestakUI.

Advertising

 
Thread Tools
Old 17.09.2012, 10:09   #1
 Assistant User Information

Wetxius's Avatar
Question Local function

Code [Select]:
----------------------------------------------------------------------------------------
--	Disband party or raid(by Monolit)
----------------------------------------------------------------------------------------
function DisbandRaidGroup()
	if InCombatLockdown() then return end
	if UnitInRaid("player") then
		SendChatMessage(L_INFO_DISBAND, "RAID")
		for i = 1, GetNumGroupMembers() do
			local name, _, _, _, _, _, _, online = GetRaidRosterInfo(i)
			if online and name ~= T.name then
				UninviteUnit(name)
			end
		end
	else
		SendChatMessage(L_INFO_DISBAND, "PARTY")
		for i = MAX_PARTY_MEMBERS, 1, -1 do
			if GetNumGroupMembers(i) then
				UninviteUnit(UnitName("party"..i))
			end
		end
	end
	LeaveParty()
end
Тута не надо сделать local function DisbandRaidGroup()
м?
Old 17.09.2012, 10:09   #1.5 - Disable Ads

Advertise on this site

Old 17.09.2012, 10:37   #2
Shestak
 Junior Member User Information

Shestak's Avatar
Почти все равно.
Old 17.09.2012, 10:40   #3
Wetxius
 Assistant User Information

Wetxius's Avatar
Зато когда Близзы делают глобальные функции, потом 2 года таинтят глифы
Old 17.09.2012, 10:48   #4
Shestak
 Junior Member User Information

Shestak's Avatar
Эта функция тут не причем.

Добавлено через 59 секунд
Даже если будет совпадение имени функции, будет просто луа ошибка, а не таинт.

Tags
local, lua

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimap Button Function and Text Under Skill Bar? nine7114 Technical Support 1 04.12.2011 17:05


Mobile Style Русский English Deutsch Italian Chinese