1. #1
    Blademaster
    Join Date
    Sep 2012
    Location
    Haala,Nagrand
    Posts
    43

    Its possible to decline/block battle friend requests without going to Pending tab?

    Its possible to decline/block battle friend requests without going to Pending tab?

    for example i login wow and i see that i got 4 new battle tag friend requests - so i spam some macro 4 times and and my battle tag friend request list becoming empty again.

    (i dont need to delete friends that already on my list, i need delete only battle tag friend requests without reading spam/adversising/harrasments that friend requests contain in request text box)
    Last edited by Luckx; 2014-01-19 at 08:44 AM.

  2. #2
    High Overlord Pelf's Avatar
    Join Date
    Mar 2008
    Location
    US-Sargeras
    Posts
    108
    Code:
    /run for f=1,BNGetNumFriendInvites() do local id,n=BNGetFriendInviteInfo(1);print("Declining friend invite from "..n..".");BNDeclineFriendInvite(id) end
    Shiboomi of <Riot> on US-Sargeras

  3. #3
    Brewmaster
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    1,280
    There is a mod called badboy which you can get on curse. automatically blocks gold seller invites etc. also blocks some trade chat spam for you.

  4. #4
    Quote Originally Posted by Pelf View Post
    Code:
    /run for f=1,BNGetNumFriendInvites() do local id,n=BNGetFriendInviteInfo(1);print("Declining friend invite from "..n..".");BNDeclineFriendInvite(id) end
    According to some tests I ran a few weeks ago, the index actually updates as soon as you decline an invite. Your code would thus skip over every second invite.

    Code:
    /run local i={} for f=1,BNGetNumFriendInvites() do local id,n=BNGetFriendInviteInfo(1);print("Declining friend invite from "..n..".");tinsert(i,id) end for _,id in ipairs(i) do BNDeclineFriendInvite(i) end
    UI & AddOns expert | Interface & Macros moderator - My work

  5. #5
    High Overlord Pelf's Avatar
    Join Date
    Mar 2008
    Location
    US-Sargeras
    Posts
    108
    Would it? I'm always reading the info from the first invite in the list; I'm just doing it NumInvites times.
    Shiboomi of <Riot> on US-Sargeras

  6. #6
    Alright, I'm bad at reading. Yeah, your code is better.
    UI & AddOns expert | Interface & Macros moderator - My work

  7. #7
    Blademaster
    Join Date
    Sep 2012
    Location
    Haala,Nagrand
    Posts
    43
    Pelf and Treeston Thanks really alot! I tested it, and it worked.I dont need to read spam and harrasments via battle tag friend requests anymore as long this macros will continium working.
    Last edited by Luckx; 2014-01-19 at 05:58 PM.

  8. #8
    High Overlord Pelf's Avatar
    Join Date
    Mar 2008
    Location
    US-Sargeras
    Posts
    108
    Hooray! Huzzah!
    Shiboomi of <Riot> on US-Sargeras

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •