Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SMSG = CreateFrame("Frame")
- local UpDate = 0
- local UpDate2 = 0
- local Names = {}
- local OficerNames = ""
- function SMassage(self, elapsed)
- UpDate = UpDate + elapsed;
- if (UpDate > 90.0) then
- SendMSG()
- UpDate = 0;
- end
- end
- function SMassage2(self, elapsed)
- UpDate2 = UpDate2 + elapsed;
- if (UpDate2 > 1.0) then
- SendChatMessage("ПЫДР, включи голос" , "WHISPER", nil, "Ремиара")
- UpDate2 = 0;
- end
- end
- function SendMSG()
- for i=1, GetNumGuildMembers() do
- local name,_,rang,_,_,_,_,_,online=GetGuildRosterInfo(i)
- if rang < 4 and online == 1 then
- table.insert(Names,name)
- end
- end
- local num = #Names
- local j = 1
- while j <= num do
- OficerNames = (OficerNames..Names[j]..", ")
- j=j+1
- end
- local msg1 = "PVE Гильдия Relaxation проводит набор игроков в свои ряды от 6к ГС PvE! Прогресс: РС(4/4ХМ),ЦЛК(12/12ХМ),ИВК(50/50), Система лута: ДКП, Связь: РК"
- local msg2 = "РТ: Суб. и Воскр. 14:30, Ср. 17:00, Чт. и Пт. 16:30! По поводу вступления обращайтесь к одному из офицеров: "..OficerNames
- --local msg3 = "Ссылка на тему гильии (Forum WoWCircle) http://forum.wowcircle.com/showthread.php?t=431825"
- local index = GetChannelName("all")
- local g = GetGuildInfo("player")
- if g == "Relaxation" then
- if (index~=nil) and #Names > 0 then
- -- SendChatMessage(msg1 , "CHANNEL", nil, index);
- --SendChatMessage(msg2 , "CHANNEL", nil, index);
- -- SendChatMessage(msg3 , "CHANNEL", nil, index);
- end
- end
- Names = {}
- OficerNames = ""
- end
- SMSG:SetScript("OnUpdate", SMassage)
- ----------------------------------------------------------------------------------------------------------------------------
- 17.11.2017 под легион
- ----------------------------------------------------------------------------------------------------------------------------
- local SMSG = CreateFrame("Frame")
- local UpDate = 0
- local UpDate2 = 0
- local Names = {}
- local OficerNames = ""
- function SMassage(self, elapsed)
- UpDate = UpDate + elapsed;
- if (UpDate > 190.0) then
- SendMSG()
- PlaySoundFile("Sound\\Spells\\AbsorbGetHitA.ogg")
- UpDate = 0;
- end
- end
- function SMassage2(self, elapsed)
- UpDate2 = UpDate2 + elapsed;
- if (UpDate2 > 10.0) then
- print("Это тест")
- -- SendChatMessage("ПЫДР, включи голос" , "WHISPER", nil, "Выносливость")
- UpDate2 = 0;
- end
- end
- function SendMSG()
- -- Names = {}
- -- OficerNames = ""
- for i = 1, GetNumGuildMembers() do
- -- local name, _, rang, _, _, _, _, _, online = GetGuildRosterInfo(i)
- local name, rank, rankIndex, level, class, zone, note, officernote, online = GetGuildRosterInfo(i)
- -- print(online)
- -- print(rankIndex)
- -- if rankIndex <= 7 and online == 1 then
- if rankIndex <= 4 and online == true then
- table.insert(Names, name)
- -- print(#Names)
- end
- -- print(#Names)
- end
- local num = #Names
- local j = 1
- while j <= num do
- OficerNames = (OficerNames..Names[j]..", ")
- j = j + 1
- end
- local msg1 = 'Проводится набор в "Guardians of Equilibrium". У нас фарм ключей любых сложностей, походы на БГ, Требования: 110лвл, адекватность. ЦН (об, гер) 4/4 ,начали траить миф.'
- local msg2 = "По поводу вступления обращайтесь к одному из офицеров: "..OficerNames
- --local msg3 = "Ссылка на тему гильии (Forum WoWCircle) http://forum.wowcircle.com/showthread.php?t=431825"
- -- local index = GetChannelName("all")
- local index = GetChannelName("Поиск Спутников") --/run print(GetChannelName("4. ПоискСпутников"))
- -- /join ПоискСпутников
- -- print(index)
- local g = GetGuildInfo("player")
- if g == "Guardians of Equilibrium" then
- -- print("Да g это Guardians of Equilibrium")
- if (index ~= nil) and #Names > 0 then
- -- if #Names > 0 then
- print(msg1)
- print(msg2)
- -- SendChatMessage(msg1 , "CHANNEL", nil, index);
- -- SendChatMessage(msg2 , "CHANNEL", nil, index);
- -- SendChatMessage(msg3 , "CHANNEL", nil, index);
- end
- end
- Names = {}
- OficerNames = "" --было тут
- end
- -- SMSG:SetScript("OnUpdate", SMassage2)
- SMSG:SetScript("OnUpdate", SMassage)
- -- /run print(GetGuildInfo("player"))
- -- Guardians of Equilibrium Guardian 1 nil
- -- local fullName, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile, canSoR, reputation = GetGuildRosterInfo(1)
- -- print(fullName, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile, canSoR, reputation)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement