Help with addon kick menu

User Tag List

Results 1 to 5 of 5
  1. #1
    deltoide's Avatar Member
    Reputation
    1
    Join Date
    Nov 2011
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with addon kick

    Friends, I have a macro script that I use in the game that aims to ascertain who this off line for more than 30 days.

    I have to create an addon, that whenever I log into the game is made to check?

    The script is this
    if not CanGuildRemove() then return end for i=1,GetNumGuildMembers() do local y,m,d=GetGuildRosterLastOnline(i) if y then if y>0 or m>0 or d>30 then GuildUninvite(GetGuildRosterInfo(i)) end end end

    Help with addon kick
  2. #2
    ThaKeeper's Avatar Member
    Reputation
    1
    Join Date
    Jul 2011
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    BaddyMcBad's Avatar Knight-Lieutenant
    Reputation
    47
    Join Date
    Mar 2010
    Posts
    331
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because he doesn't need an addon to do something that his macro can do. He wants it to automatically run when he logs in.

    This link will help:
    [HowTo] Make a code snippet into an addon in twelve easy steps

  4. #4
    deltoide's Avatar Member
    Reputation
    1
    Join Date
    Nov 2011
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have to make this macro kick players with more than 30 days off, except those at the rank 3?

  5. #5
    deltoide's Avatar Member
    Reputation
    1
    Join Date
    Nov 2011
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My addon works like this ...

    Function KickOldFromGuild(actuallyKick)
    if not CanGuildRemove() and actuallyKick then
    return
    end
    for i=1,GetNumGuildMembers() do
    local y,m,d=GetGuildRosterLastOnline(i)
    if y then
    if y>0 or m>0 or d>21 then
    if actuallyKick then
    GuildUninvite(GetGuildRosterInfo(i))
    else
    print(string.format("Would kick %s, y: %d, m: %d, d: %d", GetGuildRosterInfo(i), y, m, d))
    end
    end
    end
    end
    end

    -- Wait until the guild information is available the first time after login
    local frame = CreateFrame("Frame")
    frame:RegisterEvent("GUILD_ROSTER_UPDATE")
    frame:SetScript("OnEvent", function(self, event, ...)
    print("Guild information is available, running OldPlayer checker")
    KickOldFromGuild(true)
    end)

    As I do so it does not delete players of a certain rank?

Similar Threads

  1. Help with Guild Master - "kick all command"(?) or addons.. will rep!
    By Hellcommander in forum World of Warcraft General
    Replies: 0
    Last Post: 11-15-2011, 07:09 AM
  2. Need help with addons :(
    By balmug19 in forum WoW UI, Macros and Talent Specs
    Replies: 5
    Last Post: 03-14-2009, 10:12 PM
  3. help with addon
    By Silentnvd in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 09-23-2008, 03:11 PM
  4. i need help with addons plz
    By Dajoker in forum World of Warcraft General
    Replies: 10
    Last Post: 03-13-2007, 11:49 AM
  5. Uhmm help with addons pleasr
    By prinz in forum Community Chat
    Replies: 1
    Last Post: 02-11-2007, 07:42 PM
All times are GMT -5. The time now is 08:35 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search