Download
(8Kb)
Download
Updated: 03-02-10 05:17 AM
Pictures
File Info
Updated:03-02-10 05:17 AM
Created:02-18-10 09:20 PM
Downloads:3,025
Favorites:9
MD5:

SDDuelDecline

Version: 3.3.7
by: Suddendeath2000 [More]

Due the large number of addons I now maintain, I have decided to use Curse exclusively: Most recent version of SDDuelDecline No newer versions will be posted here.


I'm not a very good at PVP, particularly dueling. I get so tired of others trying to duel me then trying to goad me into dueling when the declining mod I used would decline it. So I built SDDuelDecline. It's an intuitive, multi-level response duel declining addon.


What does that mean?

The first 2 consecutive times a person attempts to duel you, it sends them a polite whisper saying you don't wish to duel and cancels the duel.
The next time, it sends them a bit harsher response and simply hides the popup window. They just sit and wait for your choice, wasting their time, while you see nothing.
The next time, the popup is hidden, and it warns the offender that the next time, you will report them for spamming,
If they try again, the popup is hidden and if AutoReport is on, they are automatically reported and told so. If AutoReport is off, a popup window appears, tells you the name of the offender, and asks what you'd like to do, report or show mercy.
If they try again after that, the popup is hidden, they're ignored and that stops any further attempts.

While testing this, some of those who were automatically declined whispered me some not-so-nice phrases. To remedy this, I made AutoBlock. If you have AutoBlock on, after the second attempt, any whispers sent to you from the denied dueler will be blocked until the offender leaves deuling range for your specified amount of time.

Best part, you won't even know anything happened. The "Duel canceled." line that shows will be cleared instantly. If AutoHide is on, all the whispers you automatically send are filtered from your chat window. All you'll see is the duel flag drop and rise.

If you want to let someone duel you, just hold down the shift button when they attempt to start the duel and the request will go through as normal.

For those of you with Titan Panel, I've also built a plugin to toggle SDDuelDecline on and off: Titan Panel [SDDuelDecline]

Click here to lend your support!

Any help with localizations would be greatly appreciated: Click here to help at CurseForge

v3.3 Initial Release

v3.3.1 Code addition

v3.3.2 Added code to make sure correct person get reported if needed. Also added second cancel level. Added localization.

v3.3.4 Added interface option panel and report popup

v3.3.5 Fixed popup showing on login problem

v3.3.6 Fixed block time problem

v3.3.7 Add response inputs to Blizz Interface panel
Post A Reply Comment Options
Unread 03-06-10, 08:37 AM  
help137
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 120
Uploads: 16
Causing Interface Errors

I installed the latest version of this addon (3.3.7) and now I can't Whisper to anyone, either by me starting it or using reply. I can type in whatever I want to say, but I get a LUA error popup when I hit enter and the whisper does not go through. I didn't have this problem with the 3.3.5 release, I didn't install the 3.3.6.

Code:
Message: Interface\AddOns\SDDuelDecline\SDDuelDecline.lua:233: bad argument #2 to 'strfind' (string expected, got nil)
Time: 03/06/10 09:34:31
Count: 1
Stack: [C]: in function `strfind'
Interface\AddOns\SDDuelDecline\SDDuelDecline.lua:233: in function `filterFunc'
Interface\FrameXML\ChatFrame.lua:2515: in function `ChatFrame_MessageEventHandler'
Interface\FrameXML\ChatFrame.lua:2322: in function `ChatFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals: (*temporary) = "Testing 123. Testign 123"
(*temporary) = nil
(*temporary) = "string expected, got nil"
Report comment to moderator  
Reply With Quote
Unread 03-02-10, 10:02 AM  
Suddendeath2000
A Defias Bandit
 
Suddendeath2000's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 29
Uploads: 19
Originally posted by Atane
Just a tip, instead of a titan plugin you should enable support for LDB as titan panel supports it, and it can be used by LDB launchers like bazooka or what its called.
Sorry, I don't like LDB. Too much extra crap needed to use it.
Report comment to moderator  
Reply With Quote
Unread 02-28-10, 04:11 PM  
Gautr
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 101
Uploads: 5
Just a tip, instead of a titan plugin you should enable support for LDB as titan panel supports it, and it can be used by LDB launchers like bazooka or what its called.
__________________
Gautr of Corporation
Hellscream EU
Report comment to moderator  
Reply With Quote
Unread 02-28-10, 09:51 AM  
Suddendeath2000
A Defias Bandit
 
Suddendeath2000's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 29
Uploads: 19
Originally posted by Khisanth
I just downloaded your addon and get this error message :

Date: 2010-02-27 20:33:46
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\SDDuelDecline\SDDuelDecline.lua line 21:
attempt to concatenate global 'SDDDBY' (a nil value)
Debug:
[C]: ?
SDDuelDecline\SDDuelDecline.lua:21: SDDuelDecline_OnLoad()
[string "*:OnLoad"]:1:
[string "*:OnLoad"]:1
Well, that's just plain weird. All SDDDBY is is the localization for the word "by".
Report comment to moderator  
Reply With Quote
Unread 02-27-10, 01:36 PM  
Khisanth
A Deviate Faerie Dragon

Forum posts: 13
File comments: 35
Uploads: 0
I just downloaded your addon and get this error message :

Date: 2010-02-27 20:33:46
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\SDDuelDecline\SDDuelDecline.lua line 21:
attempt to concatenate global 'SDDDBY' (a nil value)
Debug:
[C]: ?
SDDuelDecline\SDDuelDecline.lua:21: SDDuelDecline_OnLoad()
[string "*:OnLoad"]:1:
[string "*:OnLoad"]:1
Report comment to moderator  
Reply With Quote
Unread 02-26-10, 09:34 PM  
Suddendeath2000
A Defias Bandit
 
Suddendeath2000's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 29
Uploads: 19
Talking v3.3.4

Oops, just realized I forgot to toggle the report popup XML back to hidden after I took the screenshot. Fixed in v3.3.5.
Report comment to moderator  
Reply With Quote
Unread 02-26-10, 03:56 AM  
RosyBijou
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 44
Uploads: 3
thanks!

This is terrific! (Now I'm gonna have to have my little person duel me just to test it out...) Thanks so much for your update!
Report comment to moderator  
Reply With Quote
Unread 02-25-10, 10:33 PM  
Suddendeath2000
A Defias Bandit
 
Suddendeath2000's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 29
Uploads: 19
Re: Re: really nice idea

Originally posted by Suddendeath2000
Hmm, I like that idea of a window. I'll work on it.
And maybe I'll make the auto-returned whispers user-defined variables so everyone can make them whatever they want.
v3.3.4 Now allows you to select AutoReport on and off in the Blizz Interface panel.. If off, a popup window shows. I'm working on adding the whisper responses to the interface panel also.
Report comment to moderator  
Reply With Quote
Unread 02-23-10, 03:56 PM  
Suddendeath2000
A Defias Bandit
 
Suddendeath2000's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 29
Uploads: 19
Thumbs up Re: really nice idea

Originally posted by RosyBijou
I really like this idea. Thank you for creating it. I am anxious to see how it works...

One part that I really like... That you made the separate Localization LUA file. Because it is so clearly laid out, I was able to adjust the text so that the automated responses suit my personality better. (I think this is a feature that you should highlight in your description.)

One feature request: I would like to have the option to disable the automatic reporting on the fifth message--perhaps have a pop-up asking if I want to report the player that is spamming me to duel. The reason for this is that I will often play with a young child, who thinks it's terribly funny to challenge me to a duel, just because he knows that I don't like to... So I don't always want to automatically report everyone who pushes that limit... That being said, it's a nice feature to have access to...

If this is too much of a bother for you to do, (and I totally understand if it is...), would you mind telling me which part of the LUA file to turn off the reporting? I don't know anything about code--I'd disable that part all together and manually report the offending person if I felt the need to do so...
Hmm, I like that idea of a window. I'll work on it.
And maybe I'll make the auto-returned whispers user-defined variables so everyone can make them whatever they want.
Report comment to moderator  
Reply With Quote
Unread 02-23-10, 03:00 PM  
RosyBijou
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 44
Uploads: 3
really nice idea

I really like this idea. Thank you for creating it. I am anxious to see how it works...

One part that I really like... That you made the separate Localization LUA file. Because it is so clearly laid out, I was able to adjust the text so that the automated responses suit my personality better. (I think this is a feature that you should highlight in your description.)

One feature request: I would like to have the option to disable the automatic reporting on the fifth message--perhaps have a pop-up asking if I want to report the player that is spamming me to duel. The reason for this is that I will often play with a young child, who thinks it's terribly funny to challenge me to a duel, just because he knows that I don't like to... So I don't always want to automatically report everyone who pushes that limit... That being said, it's a nice feature to have access to...

If this is too much of a bother for you to do, (and I totally understand if it is...), would you mind telling me which part of the LUA file to turn off the reporting? I don't know anything about code--I'd disable that part all together and manually report the offending person if I felt the need to do so...
Report comment to moderator  
Reply With Quote
Unread 02-20-10, 05:04 PM  
Suddendeath2000
A Defias Bandit
 
Suddendeath2000's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 29
Uploads: 19
Re: Good idea, but has some flaws

Originally posted by PingHansen
Your addon is a good idea, but you risk reporting the wrong guy.

In SDDuelDecline_OnEvent you need to check the name BEFORE you determine what the count is. What you have now, will report a poor bloke who invites you to a duel for the first time, if some other duelist has previously been declined trice.
Ah, true. Thanks. I've fixed that in v3.3.2. And is doing so, I've managed to add another warning level.
Last edited by Suddendeath2000 : 02-21-10 at 12:38 AM.
Report comment to moderator  
Reply With Quote
Unread 02-20-10, 06:56 AM  
PingHansen
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Good idea, but has some flaws

Your addon is a good idea, but you risk reporting the wrong guy.

In SDDuelDecline_OnEvent you need to check the name BEFORE you determine what the count is. What you have now, will report a poor bloke who invites you to a duel for the first time, if some other duelist has previously been declined trice.
Last edited by : 02-20-10 at 06:59 AM.
Report comment to moderator  
Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.