Advertisement
Xzempt

Untitled

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