В аддоне Lunij_Interrupted помогите настроить, хочу чтобы вместо слова interrupted писало то слово, которое я хочу, помогите пожалуйста найти ту строку.
Скрытый текст
print("Lunij|cff69ccf0Interrupted|r -- type /int for more")
local addon = CreateFrame("Frame")
local function OnEvent(self, event, ...) local dispatch = self[event]
function addon:ADDON_LOADED(...) self:UnregisterEvent("ADDON_LOADED") if not InterruptedDB then InterruptedDB = { toggle = 1, mode = 'auto' } end end
function addon:PARTY_MEMBERS_CHANGED(...) local nPlayers = GetNumPartyMembers() --print(nPlayers) end
function addon:COMBAT_LOG_EVENT_UNFILTERED(...) local inParty = GetNumPartyMembers() >= 1 local inRaid = GetNumRaidMembers() >= 5 local aEvent = select(2, ...) local aUser = select(4, ...) local spellID = select(12, ...)
if InterruptedDB.toggle == 1 then if inParty then xxx = "PARTY" end if inRaid then xxx = "RAID" end if aEvent == "SPELL_INTERRUPT" then
if InterruptedDB.mode == 'self' then print(saymsg) elseif InterruptedDB.mode == 'say' then SendChatMessage(saymsg, "YELL") elseif InterruptedDB.mode == 'auto' then if (not inParty) and (not inRaid) then print(saymsg) else SendChatMessage(saymsg, xxx) end end end end end
function toggleon() if InterruptedDB.toggle == 1 then InterruptedDB.toggle = 0 print("Lunij|cff69ccf0Interrupted|r is now |c00ff3434off|r.") else InterruptedDB.toggle = 1 print("Lunij|cff69ccf0Interrupted|r is now |c0034ff51on|r.") end end
SLASH_INT1 = "/int" SlashCmdList["INT"] = function(msg) local a1 = gsub(msg, "%s*([^%s]+).*", "%1"); local a2 = gsub(msg, "%s*([^%s]+)%s*(.*)", "%2"); local list = "Lunij|cff69ccf0Interrupted:|r info | toggle | say | self | auto" local output = "Lunij|cff69ccf0Interrupted|r output is:"
--print("a1: "..a1.." a2: "..a2)
if (a1 == "") then print(list) end if (a1 == "info") then print(list) if InterruptedDB.toggle ~= 1 then print("Lunij|cff69ccf0Interrupted|r is off.") else print(output, InterruptedDB.mode) end end if (a1 == "toggle") then toggleon() end if (a1 == "say") then InterruptedDB.mode = 'say' print(output, InterruptedDB.mode) elseif (a1 == "self") then InterruptedDB.mode = 'self' print(output, InterruptedDB.mode) elseif (a1 == "auto") then InterruptedDB.mode = 'auto' print(output, InterruptedDB.mode) end end
18 фев 2011, 01:26
Могидо
0
Re: Lunij_Interrupted
я неуверен но вроде вот : saymsg = ("" ..GetSpellLink(spellID).. " interrupted")
18 фев 2011, 02:23
Nazarko
0
Re: Lunij_Interrupted
нет, аддон не работает тогда.
Добавлено спустя 45 секунд: а может и да, только может нужно еще чето поменять, вопрос тем кто уже себе так зделал
18 фев 2011, 02:41
Mortimer
0
Re: Lunij_Interrupted
petr ?
18 фев 2011, 03:11
Cespenar
[1.1]
0
Re: Lunij_Interrupted
Меняй везде, где слово interrupted находится в кавычках, даже если оно такое: "Lunij|cff69ccf0Interrupted".
На сайте использованы материалы, принадлежащие Blizzard Entertainment. Копирование материалов возможно только c разрешения портала. В противном случае это будет называться уже другим словом.