Advertisement
alexdubovyck

Оригинал: набор в ги (Женя)

Jan 2nd, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.88 KB | None | 0 0
  1. local SMSG = CreateFrame("Frame")
  2. local UpDate = 0
  3. local  UpDate2 = 0
  4. local Names = {}
  5. local OficerNames = ""
  6. function SMassage(self, elapsed)
  7.  UpDate = UpDate + elapsed;    
  8.   if (UpDate > 90.0) then
  9.         SendMSG()
  10.     UpDate = 0;
  11.   end
  12. end
  13.  
  14. function SMassage2(self, elapsed)
  15.  UpDate2 = UpDate2 + elapsed;  
  16.   if (UpDate2 > 1.0) then
  17.         SendChatMessage("ПЫДР, включи голос" , "WHISPER", nil, "Ремиара")
  18.     UpDate2 = 0;
  19.   end
  20. end
  21.  
  22. function SendMSG()
  23. for i=1, GetNumGuildMembers() do
  24.     local name,_,rang,_,_,_,_,_,online=GetGuildRosterInfo(i)
  25.     if rang < 4 and online == 1 then
  26.     table.insert(Names,name)
  27.     end
  28. end
  29. local num = #Names
  30. local j = 1
  31. while j <= num do
  32.     OficerNames = (OficerNames..Names[j]..", ")
  33.     j=j+1
  34. end
  35. local msg1 = "PVE Гильдия Relaxation проводит набор игроков в свои ряды от 6к ГС PvE! Прогресс: РС(4/4ХМ),ЦЛК(12/12ХМ),ИВК(50/50),  Система лута: ДКП, Связь: РК"
  36. local msg2 = "РТ: Суб. и Воскр. 14:30, Ср. 17:00, Чт. и Пт. 16:30! По поводу вступления обращайтесь к одному из офицеров: "..OficerNames
  37. --local msg3 = "Ссылка на тему гильии (Forum WoWCircle) http://forum.wowcircle.com/showthread.php?t=431825"
  38. local index = GetChannelName("all")
  39. local g = GetGuildInfo("player")
  40. if g == "Relaxation" then
  41. if (index~=nil) and #Names > 0 then
  42.  -- SendChatMessage(msg1 , "CHANNEL", nil, index);
  43.   --SendChatMessage(msg2 , "CHANNEL", nil, index);
  44. --  SendChatMessage(msg3 , "CHANNEL", nil, index);
  45. end
  46. end
  47.  
  48. Names = {}
  49. OficerNames = ""
  50. end
  51.  
  52.  
  53.  
  54. SMSG:SetScript("OnUpdate", SMassage)
  55. ----------------------------------------------------------------------------------------------------------------------------
  56. 17.11.2017 под легион
  57. ----------------------------------------------------------------------------------------------------------------------------
  58. local SMSG = CreateFrame("Frame")
  59. local UpDate = 0
  60. local UpDate2 = 0
  61. local Names = {}
  62. local OficerNames = ""
  63. function SMassage(self, elapsed)
  64.  UpDate = UpDate + elapsed;    
  65.   if (UpDate > 190.0) then
  66.         SendMSG()
  67.         PlaySoundFile("Sound\\Spells\\AbsorbGetHitA.ogg")
  68.     UpDate = 0;
  69.   end
  70. end
  71.  
  72. function SMassage2(self, elapsed)
  73.  UpDate2 = UpDate2 + elapsed;  
  74.   if (UpDate2 > 10.0) then
  75.         print("Это тест")
  76.         -- SendChatMessage("ПЫДР, включи голос" , "WHISPER", nil, "Выносливость")
  77.     UpDate2 = 0;
  78.   end
  79. end
  80.  
  81. function SendMSG()
  82.  
  83. -- Names = {}
  84. -- OficerNames = ""
  85.  
  86. for i = 1, GetNumGuildMembers() do
  87.     -- local name, _, rang, _, _, _, _, _, online = GetGuildRosterInfo(i)
  88.     local name, rank, rankIndex, level, class, zone, note, officernote, online = GetGuildRosterInfo(i)
  89.     -- print(online)
  90.     -- print(rankIndex)
  91.     -- if rankIndex <= 7 and online == 1 then
  92.     if rankIndex <= 4 and online == true then
  93.         table.insert(Names, name)
  94.         -- print(#Names)
  95.     end
  96.     -- print(#Names)
  97. end
  98.  
  99. local num = #Names
  100. local j = 1
  101. while j <= num do
  102.     OficerNames = (OficerNames..Names[j]..", ")
  103.     j = j + 1
  104. end
  105.  
  106. local msg1 = 'Проводится набор в "Guardians of Equilibrium". У нас фарм ключей любых сложностей, походы на БГ, Требования: 110лвл, адекватность. ЦН (об, гер) 4/4 ,начали траить миф.'
  107.  
  108. local msg2 = "По поводу вступления обращайтесь к одному из офицеров: "..OficerNames
  109.  
  110. --local msg3 = "Ссылка на тему гильии (Forum WoWCircle) http://forum.wowcircle.com/showthread.php?t=431825"
  111.  
  112. -- local index = GetChannelName("all")
  113. local index = GetChannelName("Поиск Спутников") --/run print(GetChannelName("4. ПоискСпутников"))
  114. -- /join ПоискСпутников
  115. -- print(index)
  116. local g = GetGuildInfo("player")
  117.  
  118.  
  119. if g == "Guardians of Equilibrium" then
  120. -- print("Да g это Guardians of Equilibrium")
  121. if (index ~= nil) and #Names > 0 then
  122. -- if #Names > 0 then
  123. print(msg1)
  124. print(msg2)
  125.  
  126.     -- SendChatMessage(msg1 , "CHANNEL", nil, index);
  127.     -- SendChatMessage(msg2 , "CHANNEL", nil, index);
  128. --  SendChatMessage(msg3 , "CHANNEL", nil, index);
  129. end
  130. end
  131.  
  132. Names = {}
  133. OficerNames = "" --было тут
  134. end
  135. -- SMSG:SetScript("OnUpdate", SMassage2)
  136. SMSG:SetScript("OnUpdate", SMassage)
  137.  
  138. -- /run print(GetGuildInfo("player"))
  139. -- Guardians of Equilibrium Guardian 1 nil
  140.  
  141.  
  142.  
  143. -- local fullName, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile, canSoR, reputation = GetGuildRosterInfo(1)
  144.  
  145. -- 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