Advertisement
Xzempt

Untitled

Apr 9th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.63 KB | None | 0 0
  1. menuframe = CreateFrame("FRAME");
  2. Gcontrol = { };
  3. function Gcontrol:initDropdowns(player)
  4. UnitPopupButtons["GD_CONTROLS"] = {text = "|cFF00FFFFGuild Controls", dist = 0, nested = 1, tooltipText = "|cFF00FFFFShows options for inviting, kicking, promoting and demoting players within the guild.." };
  5. UnitPopupButtons["GKICK"] = {text = "|cFF00FFFFKick from guild?", dist = 0, nested = 1, checkable = nil};
  6. UnitPopupButtons["GPROMOTE"] = {text = "|cFF00FFFFPromote player?", dist = 0, nested = 1, checkable = nil};
  7. UnitPopupButtons["GDEMOTE"] = {text = "|cFF00FFFFDemote Player?", dist = 0, nested = 1, checkable = nil};
  8. UnitPopupButtons["GINVITE"] = {text = "|cFF00FFFFGuild invite player?", dist = 0, nested = 1, checkable = nil};
  9. UnitPopupButtons["GCANCEL"] = {text = "|cFF00FFFFCancel", dist = 0, nested = 1, notCheckable = nil};
  10. tinsert(UnitPopupMenus["FRIEND"], #UnitPopupMenus["FRIEND"] - 1, "GD_CONTROLS");
  11. --[[tinsert(UnitPopupMenus["FRIEND"], #UnitPopupMenus["FRIEND"] - 1, "GKICK");
  12. tinsert(UnitPopupMenus["FRIEND"], #UnitPopupMenus["FRIEND"] - 1, "GINVITE");
  13. tinsert(UnitPopupMenus["FRIEND"], #UnitPopupMenus["FRIEND"] - 1, "GPROMOTE");
  14. tinsert(UnitPopupMenus["FRIEND"], #UnitPopupMenus["FRIEND"] - 1, "GDEMOTE");
  15. tinsert(UnitPopupMenus["FRIEND"], #UnitPopupMenus["FRIEND"] - 1, "GCANCEL");]]--
  16. UnitPopupMenus["GD_CONTROLS"] = {"GKICK", "GPROMOTE", "GDEMOTE", "GINVITE", "GCANCEL"};
  17. hooksecurefunc("UnitPopup_OnClick", function(...) Gcontrol:UnitPopup_OnClick(...); end);
  18. end
  19.  
  20. function Gcontrol:UnitPopup_OnClick(self)
  21. local name = UIDROPDOWNMENU_INIT_MENU.name
  22. button = self.value
  23. if(button == "GKICK") then
  24. print(name)
  25. GuildUninvite(name)
  26. elseif (button == "GPROMOTE") then
  27. GuildPromote(name)
  28. elseif (button == "GDEMOTE") then
  29. GuildDemote(name)
  30. elseif (button == "GINVITE") then
  31. GuildInvite(name)
  32. end
  33. end
  34. Gcontrol:initDropdowns();
  35. function ShowACMinimap()
  36. GameTooltip:SetOwner(MinimapButton, "ANCHOR_LEFT");
  37. GameTooltip:AddLine( "|cFFcc33ffArena Point Calculator|r" );
  38. GameTooltip:AddLine( "|cFF00FFCCLeft click to show/hide|r" );
  39. GameTooltip:AddLine( "|cFFFF0000Right click to drag this|r" );
  40. GameTooltip:Show();
  41. end
  42. local frame = CreateFrame("CheckButton", "FarmModeCheckButton", ArenaCalculator, "UICheckButtonTemplate")
  43. frame:ClearAllPoints()
  44. frame:SetPoint("LEFT", 15, 20)
  45. _G[frame:GetName() .. "Text"]:SetText("Enable Farm Mode")
  46.  
  47. local frame = CreateFrame("Button", "ACcloseButton", ArenaCalculator, "UIPanelCloseButton")
  48. frame:ClearAllPoints()
  49. frame:SetPoint("TOPRIGHT", 0, 0)
  50.  
  51.  
  52. local frame = CreateFrame("Button", "ACcancel", ArenaCalculator, "UIPanelButtonTemplate")
  53. frame:ClearAllPoints()
  54. frame:SetPoint("BOTTOMRIGHT",-15,15)
  55. frame:SetWidth(80)
  56. frame:SetHeight(22)
  57. frame:SetText("Cancel")
  58. frame:RegisterForClicks(AnyUp)
  59. frame:SetScript("OnMouseUp", function(self, button)
  60. ArenaCalculator:Hide()
  61. end)
  62.  
  63. local frame = CreateFrame("Button", "ACsave", ArenaCalculator, "UIPanelButtonTemplate")
  64. frame:ClearAllPoints()
  65. frame:SetPoint("BOTTOMRIGHT",-100,15)
  66. frame:SetWidth(80)
  67. frame:SetHeight(22)
  68. frame:SetText("Save")
  69. frame:RegisterForClicks(AnyUp)
  70. frame:SetScript("OnMouseUp", function(self, button)
  71. if FarmModeCheckButton:GetChecked() then
  72. FarmMode = true
  73. ArenaCalculator:Hide()
  74. print("|cff00ccffFarm Mode:|r |cffcc33ffOn.|r")
  75. else
  76. FarmMode = false
  77. ArenaCalculator:Hide()
  78. print("|cff00ccffFarm Mode:|r |cffcc33ffOff.|r")
  79. end
  80. end)
  81. --[[arenapoints = {}
  82. function arenatest(twos, threes, fives)
  83.  
  84.  
  85. arena = 1
  86. while (arena <= 3) do
  87. teamName, teamSize, teamRating, teamPlayed, teamWins, seasonTeamPlayed, seasonTeamWins, playerPlayed, seasonPlayerPlayed, teamRank, playerRating = GetArenaTeam(arena)
  88. if (teamSize == 2) then
  89. rating = teamRating - playerRating
  90. if (teamRating > 1500) and (rating < 150) then
  91. fivespoints = math.floor(1511.26/(1+1639.28*math.pow(2.71828, -0.00412*teamRating)))
  92. total = math.ceil(fivespoints*0.76)
  93. twos = teamRating
  94. table.insert(arenapoints, total)
  95. elseif (teamRating > 1500) and (rating > 150) then
  96. fivespoints = math.floor(0.22*playerRating+14)
  97. total = math.floor(fivespoints*0.76)
  98. twos = playerRating
  99. table.insert(arenapoints, total)
  100. elseif (teamRating < 1500) then
  101. fivespoints = math.floor(0.22*teamRating+14)
  102. total = math.ceil(fivespoints*0.76)
  103. twos = teamRating
  104. table.insert(arenapoints, total)
  105. end
  106. arena = arena + arena
  107. end
  108. if (teamSize == 3) then
  109. rating = teamRating - playerRating
  110. if (teamRating > 1500) and (rating < 150) then
  111. fivespoints = math.floor(1511.26/(1+1639.28*math.pow(2.71828, -0.00412*teamRating)))
  112. total = math.ceil(fivespoints*0.88)
  113. threes = teamRating
  114. table.insert(arenapoints, total)
  115. elseif (teamRating > 1500) and (rating > 150) then
  116. fivespoints = math.floor(0.22*playerRating+14)
  117. total = math.floor(fivespoints*0.88)
  118. threes = playerRating
  119. table.insert(arenapoints, total)
  120. elseif (teamRating < 1500) then
  121. fivespoints = math.floor(0.22*teamRating+14)
  122. total = math.ceil(fivespoints*0.88)
  123. threes = teamRating
  124. table.insert(arenapoints, total)
  125. end
  126. arena = arena + 1
  127. end
  128. if (teamSize == 5) then
  129. rating = teamRating - playerRating
  130. if (teamRating > 1500) and (rating < 150) then
  131. total = math.floor(1511.26/(1+1639.28*math.pow(2.71828, -0.00412*teamRating)))
  132. fives = teamRating
  133. table.insert(arenapoints, total)
  134. elseif (teamRating > 1500) and (rating > 150) then
  135. total = math.floor(0.22*playerRating+14)
  136. fives = playerRating
  137. table.insert(arenapoints, total)
  138. elseif (teamRating < 1500) then
  139. total = math.floor(0.22*teamRating+14)
  140. fives = teamRating
  141. table.insert(arenapoints, total)
  142. end
  143. arena = arena + 1
  144. end
  145. if (teamSize == 0) then
  146. arena = arena + arena
  147. end
  148. end
  149. Totalpoints(twos, threes, fives)
  150. end
  151. function GetInfo(twos, threes, fives)
  152. print("Gathering Data...")
  153. if (twos) then
  154. ArenaCalculator.twos:SetText("|cffcc33ff " ..twos.."|r")
  155. end
  156. if (threes) then
  157. ArenaCalculator.threes:SetText("|cffcc33ff " ..threes.. "|r")
  158. end
  159. if (fives) then
  160. ArenaCalculator.fives:SetText("|cffcc33ff" ..fives.."|r")
  161. end
  162. if not twos then
  163. ArenaCalculator.twos:SetText("|cffcc33ffNo Team|r")
  164. end
  165. if not threes then
  166. ArenaCalculator.threes:SetText("|cffcc33ffNo Team|r")
  167. end
  168. if not fives then
  169. ArenaCalculator.fives:SetText("|cffcc33ffNo Team|r")
  170. end
  171. if (#arenapoints ~= 0) then
  172. ArenaCalculator.arenapoints:SetText("|cffcc33ff " ..arenapoints[#arenapoints].. "|r")
  173. end
  174. if (#arenapoints == 0) then
  175. ArenaCalculator.arenapoints:SetText("|cffcc33ff0|r")
  176. end
  177. ArenaCalculator:Show()
  178. end]]--
  179. --[[local fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  180. fontstring:SetHeight(50)
  181. fontstring:SetPoint("Left",100,50)
  182. fontstring:SetText("|cff00ccffArena Points:|r")
  183. ArenaCalculator.APHeader = fontstring]]--
  184.  
  185. fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  186. fontstring:SetHeight(50)
  187. fontstring:SetPoint("Left",15,50)
  188. fontstring:SetText("|cff00ccffFarm Mode:|r")
  189. ArenaCalculator.ratings = fontstring
  190.  
  191. --[[fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  192. fontstring:SetHeight(50)
  193. fontstring:SetPoint("LEFT",15,20)
  194. fontstring:SetText("|cff00ccff2vs2:|r")
  195. ArenaCalculator.header2v2 = fontstring
  196. twos = nil;
  197. fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  198. fontstring:SetHeight(50)
  199. fontstring:SetPoint("LEFT",50,20)
  200. ArenaCalculator.twos = fontstring
  201.  
  202. threes = nil;
  203. fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  204. fontstring:SetHeight(50)
  205. fontstring:SetPoint("LEFT",50,-10)
  206. ArenaCalculator.threes = fontstring
  207.  
  208. fives = nil;
  209. fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  210. fontstring:SetHeight(50)
  211. fontstring:SetPoint("LEFT",50,-40)
  212. ArenaCalculator.fives = fontstring
  213.  
  214. fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  215. fontstring:SetHeight(50)
  216. fontstring:SetPoint("LEFT",185,50)
  217. ArenaCalculator.arenapoints = fontstring
  218.  
  219. fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  220. fontstring:SetHeight(50)
  221. fontstring:SetPoint("LEFT",15,-10)
  222. fontstring:SetText("|cff00ccff3vs3:|r")
  223. ArenaCalculator.header3v3 = fontstring
  224.  
  225. fontstring = ArenaCalculator:CreateFontString(nil, "OVERLAY", "GameTooltipText")
  226. fontstring:SetHeight(50)
  227. fontstring:SetPoint("LEFT",15,-40)
  228. fontstring:SetText("|cff00ccff5vs5:|r")
  229. ArenaCalculator.header5v5 = fontstring]]--
  230. if not Looter then
  231. Looter = CreateFrame("frame")
  232. end
  233.  
  234. local frame = Looter
  235. frame:RegisterEvent("ADDON_LOADED")
  236. frame:RegisterEvent("PLAYER_LOGOUT")
  237. frame:RegisterEvent("LOOT_OPENED")
  238. frame:RegisterEvent("GMRESPONSE_RECEIVED")
  239. frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  240. frame:RegisterEvent("UNIT_AURA")
  241. frame:SetScript("OnEvent", function(self, event, ...)
  242. local scm = SendChatMessage
  243. if (event == "GMRESPONSE_RECEIVED") then
  244. --SendChatMessage("Waaaaaaaat", "WHISPER", nil, "Xolitude")
  245. end
  246. if event == "COMBAT_LOG_EVENT_UNFILTERED" then
  247. local arg = { ... }
  248. for i,v in ipairs(arg) do
  249. if (arg[2] == "SPELL_AURA_APPLIED") then
  250. local me = UnitName("player")
  251. if (string.find(arg[i], "(.*)Raw(.*)Fury(.*)")) then
  252. local start, duration, enable = GetItemCooldown(59461)
  253. local auraName,_,_,auraCount = UnitBuff("player", "Raw Fury");
  254. if (auraCount == 5) and (duration == 0) then
  255. RaidNotice_AddMessage(RaidBossEmoteFrame,"Raw Fury has stacked to 5! Use the trinket now! " ..UnitName("player"), ChatTypeInfo["RAID_WARNING"]);
  256. PlaySoundFile("Sound\\interface\\RaidWarning.wav");
  257. end
  258. end
  259. end
  260. end
  261. end
  262. if event == "ADDON_LOADED" and FarmMode == nil then
  263. if (FarmMode == "off" or FarmMode == nil) then
  264. FarmModeCheckButton:SetChecked(FarmMode)
  265. else
  266. FarmModeCheckButton:SetChecked(FarmMode)
  267. end
  268. end
  269. end)
  270.  
  271. --[[if (string.find(arg[i], "(.*)Grounding(.*)Totem(.*)")) then
  272. if (arg[2] == "SWING_DAMAGE") then
  273. scm(arg[7].. " was killed.")
  274. end
  275. if (arg[2] == "SPELL_DAMAGE") then
  276. local spell = GetSpellLink(arg[10])
  277. if spell then
  278. scm("|cff00ccff" ..arg[4].. "|r hits |cff00ccff" ..arg[7].. "|r for |cff00ccff" ..arg[12] - arg[13].. " (" ..arg[13].. " Overkill) with |cff00ccff" ..spell)
  279. end
  280. end
  281. if (arg[2] == "RANGE_DAMAGE") then
  282. local spell = GetSpellLink(arg[9])
  283. scm("|cff00ccff" ..arg[4].. "|r hits |cff00ccff" ..arg[7].. "|r for |cff00ccff" ..arg[12] - arg[13].. " (" ..arg[13].. " Overkill) with |cff00ccff" ..spell, "SAY")
  284. end
  285. if (arg[2] == "SPELL_CAST_SUCCESS") then
  286. local spell = GetSpellLink(arg[10])
  287. if spell then
  288. scm(spell.. " was absorbed by " ..arg[7], "SAY")
  289. end
  290.  
  291. end
  292. end
  293. end
  294. end]]--
  295.  
  296. function Totalpoints(twos, threes, fives)
  297. --table.sort(arenapoints)
  298. --GetInfo(twos, threes, fives)
  299. end
  300. function toggleaddon(self)
  301. if (ArenaCalculator:IsShown() == 1) then
  302. FarmModeCheckButton:SetChecked(FarmMode)
  303. ArenaCalculator:Hide()
  304. else
  305. FarmModeCheckButton:SetChecked(FarmMode)
  306. ArenaCalculator:Show()
  307. --arenatest()
  308. end
  309. end
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318. LooterLootTable = { "(.*)cloth", "(.*)Cloth", "Tiny Treasure Chest", "Azshara's Veil", "Cinderbloom", "Heartblossom", "Stormvine", "Twilight Jasmine", "Whiptail", "Embersilk Cloth", "Sealed Crate", "Volatile Fire", "Volatile Earth", "Volatile Water", "Volatile Air", "Volatile Life", "Obsidium Ore", "Heavy Savage Leather", "Elementium Ore", "Pyrite Ore", "Alicite", "Jasper", "Hessonite", "Zephyrite", "Carnelian", "Nightstone", "Amberjewel", "Ocean Sapphire", "Dream Emerald", "Demonseye", "Ember Topaz", "Inferno Ruby", "Shadowspirit Diamond", "Chimera's Eye", "Sticky Silk Gland", "Barrel of Southsea Rum", "Rustberg Seabass", "Stack of Cannonballs", "Siege Engine Scrap", "Cursed Femur", "Shipyard Lumber" }
  319. local frame = Looter
  320. frame:RegisterEvent("LOOT_OPENED")
  321. frame:SetScript("OnEvent", function(self, event, ...)
  322.  
  323. FishingLooterAutoLoot(FarmMode)
  324.  
  325. end)
  326. Looting = { };
  327.  
  328. function FishingLooterAutoLoot(FarmMode)
  329. if (FarmMode == true) then
  330. table.wipe(Looting)
  331. if (GetNumLootItems() == 0) then
  332. CloseLoot()
  333. end
  334. for i = 1, GetNumLootItems() do
  335. link = GetLootSlotLink(i)
  336. texture, item, quantity, quality, locked, isquestitem, questID, isActive = GetLootSlotInfo(i)
  337. table.insert(Looting, link)
  338. if (LootSlotIsCoin(i) == 1) then LootSlot(i) end
  339. if (quality >= 2) and (locked ~= 1) then
  340. name, _, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(link)
  341. if (iLevel > 358) then LootSlot(i) end
  342. end
  343. if (isquestitem == true) then
  344. table.remove(Looting);
  345. print("|cffff00ffLooted: |r" ..link.. " |cffff00ffAmount: |r" ..quantity)
  346. discarded = false;
  347. LootSlot(i)
  348. end
  349. if (link) and (item) then
  350. for u,v in ipairs(LooterLootTable) do
  351. if (string.find(item, LooterLootTable[u])) then
  352. table.remove(Looting)
  353. LootSlot(i)
  354. print("|cffff00ffLooted: |r" ..link.. " |cffff00ffAmount: |r" ..quantity)
  355. end
  356. end
  357. end
  358. if (i == GetNumLootItems()) then
  359. discarded = table.concat(Looting, ", ")
  360. if (discarded ~= "") then
  361. print("|cff00ccffThe following item(s) were not looted: |r" ..discarded)
  362. end
  363. CloseLoot()
  364. end
  365. end
  366. end
  367. end
  368.  
  369.  
  370. if not Chat_Msg_Loot then
  371. Chat_Msg_Loot = CreateFrame("frame")
  372. end
  373.  
  374. --[[local frame = Chat_Msg_Loot
  375. frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  376. frame:SetScript("OnEvent", function(self, event, ...)
  377. if (arg2 == "UNIT_DIED") then
  378. local name = Xzempt
  379. SendChatMessage(arg4.. " just killed me.", "WHISPER", nil, name)
  380. end
  381. end)]]--
  382.  
  383.  
  384. function GetAlts(msg, msg1)
  385. local total = GetNumGuildMembers()
  386. local count = 0
  387. guild = { }
  388. local x = 1
  389. local yearsOffline, monthsOffline, daysOffline, hoursOffline = GetGuildRosterLastOnline(x);
  390. local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile = GetGuildRosterInfo(x)
  391. SetGuildRosterShowOffline(true)
  392. if msg1 and name then
  393. table.wipe(guild)
  394. for x = 1, total do
  395. local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile = GetGuildRosterInfo(x)
  396. if (string.match(string.lower(note), msg1)) then
  397. table.insert(guild, name)
  398. --SendChatMessage("Character Name: |cffff00ff" ..name.. "|r Rank: |cffff00ff" ..rank.. "|r Note: |cffff00ff" ..note.. "|r", "OFFICER")
  399. count = count + 1
  400. end
  401. if (count > 1) and (x == total) then
  402. local found = table.concat(guild, ", ")
  403. SendChatMessage("Found: " ..#guild.. " entries for \"" ..msg.. "\". Listing...", "OFFICER")
  404. SendChatMessage("|cffff00ff" ..found.. " |r", "OFFICER")
  405. end
  406. if (count == 0) and (x == total) then
  407. SendChatMessage("Nothing Found.", "OFFICER")
  408. end
  409. end
  410.  
  411. end
  412. end
  413. --[[if (msg == "clean") then
  414. for x = 1, total do
  415. local yearsOffline, monthsOffline, daysOffline, hoursOffline = GetGuildRosterLastOnline(x);
  416. local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile = GetGuildRosterInfo(x)
  417. if (daysOffline >= 15) or (monthsOffline >= 1) or (yearsOffline >= 1) and (x ~= total) then
  418. count = 1
  419. GuildUninvite(name)
  420. end
  421. if (count == 0) and (x == total) then
  422. print("Nothing Found...")
  423. end
  424. end
  425. end
  426. if (msg == "resetnotes") then
  427. for x = 1, total do
  428. local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile = GetGuildRosterInfo(x)
  429. table.insert(guild, name)
  430. if (x == total) then
  431. print("Found: " ..#guild.. " entries")
  432. for x = 1, total do
  433. GuildRosterSetPublicNote(index, name)
  434. GuildRosterSetOfficerNote(index, name)
  435. end
  436. end
  437. end
  438. end]]--
  439.  
  440.  
  441. local timer = CreateFrame("Frame")
  442. timer:RegisterEvent("OnUpdate")
  443. function delay(delay, func)
  444. timer.func = func
  445. timer.delay = delay
  446. timer:Show()
  447. end
  448. timer:SetScript("OnUpdate", function(self, elapsed, msg)
  449. if running == true then
  450. timer.delay = timer.delay - elapsed
  451. if timer.delay <= 0 then
  452. timer:Hide()
  453. timer.func(msg1)
  454. end
  455. end
  456. end)
  457.  
  458. local total = GetNumGuildMembers()
  459. function GatherData(msg1)
  460. local guildtotal = GetNumGuildMembers()
  461. if not index then index = 1 else index = index + 1 end
  462. if (index == guildtotal) then
  463. print("Script Completed Successfully.")
  464. running = false
  465. index = 0
  466. else
  467. --local index = index + 1
  468. local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile = GetGuildRosterInfo(index)
  469. if (name) then
  470. if (msg1 == "resetnotes") then
  471. print(name) --GuildRosterSetPublicNote(index, name)
  472. print(name) --GuildRosterSetOfficerNote(index, name)
  473. delay(1, GatherData)
  474. end
  475. if (msg1 == "clean") then
  476. local yearsOffline, monthsOffline, daysOffline, hoursOffline = GetGuildRosterLastOnline(index);
  477. if (daysOffline == nil) and (monthsOffline == nil) and (yearsOffline == nil) and (hoursOffline == nil) then
  478. print(name.. " is online now!")
  479. delay(1, GatherData)
  480. --end
  481. elseif (daysOffline >= 15) or (monthsOffline >= 1) or (yearsOffline >= 1) then
  482. count = 1
  483. print("Uninviting " ..name)
  484. delay(1, GatherData)
  485. else
  486. print(name.. " has been online recently!")
  487. delay(1, GatherData)
  488. end
  489. if (count == 0) and (index == guildtotal) then
  490. print("Nothing Found...")
  491. end
  492. end
  493. if (msg1 == "autob") then
  494. delayinminutes = delay / 60
  495. SendChatMessage("Don't forget to stay up to date on raid schedules on our website. Site: http://guerrillawarfare.biz |cffff00ffAuto Broadcast.|r( " ..delayinminutes.. " 5 minute delay)", "GUILD")
  496. delay(1200, GatherData)
  497. end
  498. else
  499. print("Name not found")
  500. end
  501. end
  502. end
  503.  
  504.  
  505. SLASH_gi1 = '/gi'
  506. function SlashCmdList.gi(msg, editbox)
  507. if (msg ~= "autob") and (msg ~= "clean") and (msg ~= "resetnotes") and (msg ~= string.lower("test")) then
  508. SendChatMessage("Searching for alts of " ..msg.. " ...", "OFFICER")
  509. msg1 = string.lower(msg)
  510. GetAlts(msg, msg1)
  511. end
  512. if (msg == string.lower("clean")) or (msg == string.lower("resetnotes")) or (msg == string.lower("autob")) then
  513. msg1 = string.lower(msg)
  514. running = true
  515. delay(1200, GatherData)
  516. else
  517. GetAlts(msg)
  518. end
  519. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement