Download
(3Kb)
Download
Updated: 06-21-09 10:33 PM
Pictures
File Info
Updated:06-21-09 10:33 PM
Created:02-24-09 07:10 AM
Downloads:3,209
Favorites:7
MD5:

DILLIGAF V1.3

Version: 1.3.1
by: Shadowfaux [More]

***I'm back and V2 is in the works since there were quite a few changes while i was gone. I aim to make it much better and more efficient than before and therefore i want people to tell me what they want me to do with it (remember to check the TODO list below first, and submit feature requests through the nice little button under the download button)***

DILLIGAF is an addon that scans system messages and npc yells for "is under attack" and "reinforcements are" and blocks it from showing them for a default of 3 minutes.

The addon now features a full array of slash commands:
/dilligaf addphrase x - adds phrase x to the list of messages not to show.
/dilligaf removephrase x - removes x from the list of blocked phrases.
/dilligaf timer x - sets the timer to reset after x (this won't accept anything else other than numbers in seconds)
/dilligaf show - sets whether or not you see the first occurrence or not.

These settings are saved over the whole account.


Known Bugs:

  • If something is added just before the timer resets and it's the only thing on the list, you will get 2 of them through, this only affect you if you set dDisplay to true.

ToDo:
  • Block spam on all channels.
  • Add feature to block NPC's through slash commands.
  • Fix my slash commands >< (and add new ones for these features)
  • Fix the SavedVariables issue this had before i left it.
  • Fix the known bug above.
  • Get feedback on anything else this addon needs... hint hint.

V1.3.1
- Fixed a typo in the main function.

V1.3
- Added slash commands and tidied the code up to minimise the memory usage.

V1.1
-Fixed an error that meant the code tried to remove a nil index in the table.

V1.2.5
-Fixed the error caused by forgetting quotation marks.

V1.2.7
-Tidied the code up and got it running smoothly again

V1.2.8
-Fixed the error of not blocking and now blocks wintergrasp yells.

V1.2.9
-Fixes error of not blocking properly.
Optional Files (0)


Post A Reply Comment Options
Unread 02-24-09, 02:52 PM  
Faraque
A Theradrim Guardian
 
Faraque's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 105
Uploads: 1
Love the name.
__________________
"imo Fara raged and gave Joker his scars" - Blueninja of Shadowmoon
Report comment to moderator  
Reply With Quote
Unread 02-24-09, 03:25 PM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
Thumbs up D.I.L.L.I.G.A.F.

Does It Look Like I Give A Fu... Great to see it is done, Shadowfaux, I am going to test it out right away. Jim
Report comment to moderator  
Reply With Quote
Unread 02-24-09, 07:33 PM  
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view AddOns

Forum posts: 648
File comments: 204
Uploads: 4
There we go! Now get back on the IRC Shadowfaux, we love you long time here.

Same goes for you Jim, get back!
__________________
All I see is strobe lights blinding me in my hindsight.
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 11:59 AM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
Remove nil?

Date: 2009-02-25 18:55:56
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Dilligaf\Dilligaf.lua line 10:
bad argument #1 to 'remove' (table expected, got nil)
Debug:
[C]: ?
[C]: remove()
Dilligaf\Dilligaf.lua:10: Dilligaf_OnUpdate()
[string "*:OnUpdate"]:1:
[string "*:OnUpdate"]:1
AddOns:
(Too many to mention.)
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 05:30 PM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 1
Thank you Alfuin

Thanks alfuin, gonna get this updated. Dunno why this didn't come up when I tested it

**EDIT: Fixed the code in V1.1, was a very silly mistake for me to make.**
__________________
"Be yourself, everyone else is taken"
Last edited by Shadowfaux : 02-25-09 at 05:57 PM.
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 10:20 PM  
personcube
A Murloc Raider

Forum posts: 7
File comments: 23
Uploads: 0
Great addon,

But the name is what really makes it truly epic.

Only request: Ability to change the timer?

(Of course this can be done in the LUA~ But what of the people who dare not touch such things? D=)

Again: Fantastic job. ^_^

Danke schoen~
Report comment to moderator  
Reply With Quote
Unread 02-26-09, 04:50 AM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 1
Thanks personcube, I'm currently working on the ability to change the timer without having to edit the lua, so expect it in the next update.
__________________
"Be yourself, everyone else is taken"
Report comment to moderator  
Reply With Quote
Unread 02-26-09, 11:42 AM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
The constant system spamming of that some place "is under attack" is surely annoying, but I have also found that the announcement in Dalaran, that a portal has been opened to Winterspring, is just as annoying.

What if D.I.L.L.I.G.A.F. scans for ANY system message, compare it with last one broadcasted, and suppress the following which are identical? Or maybe the user can input their own catch words? Make sure it does not suppress server shutdown messages though...
Report comment to moderator  
Reply With Quote
Unread 02-26-09, 11:48 AM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 1
Originally posted by Alfuin
The constant system spamming of that some place "is under attack" is surely annoying, but I have also found that the announcement in Dalaran, that a portal has been opened to Winterspring, is just as annoying.

What if D.I.L.L.I.G.A.F. scans for ANY system message, compare it with last one broadcasted, and suppress the following which are identical? Or maybe the user can input their own catch words? Make sure it does not suppress server shutdown messages though...
Any system message can be done with a few simple modifications to the code so i'll get on that asap (probably v1.2). As for the input of your own catch words, that'll take me a little bit longer so i'll pencil it in for v1.3, along with personcube's feature, as i'll add slash commands then. Oh and i just have to press this button to the right...
__________________
"Be yourself, everyone else is taken"
Last edited by Shadowfaux : 02-27-09 at 12:28 PM.
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 01:50 AM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
Missing quote marks?

In version 1.2, is it not an error in line 17?

Code:
blockedPhraseTable = { is under attack!,}
I have not tested it because realms are down over here in the EU, but should is under attack! not be quoted?

Edit: Ok, servers up, I tested the code, and it did error on line 17. I edited the code, adding quotes around it, but then it spat out the following error:

Code:
Date: 2009-04-29 11:20:40
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Dilligaf\Dilligaf.lua line 34:
   bad argument #1 to 'find' (string expected, got table)
Debug:
   [C]: ?
   [C]: find()
   Dilligaf\Dilligaf.lua:34: filterFunc()
   WIM\WIM.lua:293: honorChatFrameEventFilter()
   WIM\Modules\ChatEngine.lua:920: CHAT_MSG_CHANNEL()
   WIM\Modules\ChatEngine.lua:875: handler()
   ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:252:
      ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:238
   ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:291:
      ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:279
AddOns:
  Swatter, v5.4.4157 (WallabyII)
  ACP, v3.1.0.17 
  AddFriend, v1.0a
  AdvancedTradeSkillWindow, v
  AFKFix, v2.0
  AFKWarning, v0.0.2
  BadBoy, v3.3.0.1
  BloodyScreen, v
  Cartographer, v2.0
  CartographerBattlegrounds, v2.0
  CartographerGroupColors, v2.0
  CartographerGuildPositions, v2.0
  CartographerInstanceLoot, v2.0
  CartographerInstanceMaps, v2.0
  CartographerInstanceNotes, v2.0
  CartographerLookNFeel, v2.0
  CartographerNotes, v2.0
  CartographerPOI, v2.0
  CartographerWaypoints, v2.0
  CartographerZoneInfo, v2.0
  ChatAliasLite, v3.00.00.01
  ChatMOD, v127
  CloseUp, v3.0.001
  CombatCursor, v1.0
  Combuctor, v2.1.0
  CombuctorScrap, v1.1
  CombuctorSets, v
  Dilligaf, v1.2
  EasyMail, v
  evlSpamFilter, v
  HatTrick, v3.0.1.1
  Kaching, v1.9
  LightHeaded, v274
  Livestock, v1.1.6
  Lore, v7.7.1
  MissingFriends, v09.04.13
  Moonshine, v1.0
  MyRolePlay, v3.0.50
  oGlow, v1.9
  Omen, v3.0.7
  QuestGuru, v1.0.2
  QuestGuruHistory, v1.0.1
  QuestGuruTracker, v1.0
  Redeemer, v
  Scrap, vBeta 4
  sct, v6.2
  SellSound, v2.4
  SkullAlertIcon, v2.0
  Stubby, v5.4.4157 (WallabyII)
  SwindlerPreventer, v3.0.9a
  tekticles, v3.0.9.9
  Titan, v4.2.1.30100 - Revision 234
  TitanAFKTimer, v1.1.0
  TitanBag, v4.2.1.30100
  TitanClock, v4.2.1.30100
  TitanCoords, v4.2.1.30100
  TitanGoldTracker, v4.2.1.30100
  TitanLootType, v4.2.1.30100
  TitanPerformance, v4.2.1.30100
  TitanRegen, v4.2.1.30100
  TitanRepair, v4.2.1.30100
  TitanSpeed, v3.0.003
  TitanVolume, v4.2.1.30100
  TitanXP, v4.2.1.30100
  TradeSecetaryWindowTeller, v30400-0.0.01
  WIM, v3.1.1
  (ck=630)
Any fix-up?
Last edited by Alfuin : 04-29-09 at 03:24 AM.
Report comment to moderator  
Reply With Quote
Unread 04-30-09, 08:03 AM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 1
Currently working on this error at the moment (don't think i've updated it here) i'll get that sorted and up as a minor update, working on the slash commands as you will have seen if you've looked at the lua.

**EDIT: Fixed that error now, expect slash command in 1.3**
__________________
"Be yourself, everyone else is taken"
Last edited by Shadowfaux : 04-30-09 at 08:10 AM.
Report comment to moderator  
Reply With Quote
Unread 04-30-09, 08:51 AM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
Aelobin and me did some work on your code, as it kept giving error in sysSpamFilter, and we got this code in the end. It will block any channel messages containing " is under atack!", not even showing the first one. That you have to work in using your other functions.

Code:
function sysSpamFilter(self,event,msg,...)
	for k,v in pairs(blockedPhraseTable) do
		if string.find(msg, v) then
			return true
		end
	end
	return false,msg,...
end
Works for me so far, but I hope to see it working as intended soonish. A possible TODO: Let user set if first message is shown, or blocked completely?

Alf
Report comment to moderator  
Reply With Quote
Unread 04-30-09, 03:20 PM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 1
Been working on what you said Alf, and i'm almost ready to release v.1.3 complete with all slash commands so far requested.

Expect it before the end of the week.

**EDIT: And I give everyone their credit as well**
__________________
"Be yourself, everyone else is taken"
Last edited by Shadowfaux : 04-30-09 at 03:20 PM.
Report comment to moderator  
Reply With Quote
Unread 05-01-09, 03:00 AM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
Error in Main Chunk?

Date: 2009-05-01 10:58:28
ID: 1
Error occured in: Global
Count: 1
Message: ..\FrameXML\ChatFrame.lua line 2517:
assertion failed!
Debug:
[C]: ?
[C]: assert()
..\FrameXML\ChatFrame.lua:2517: ChatFrame_AddMessageEventFilter()
Dilligaf\Dilligaf.lua:49: in main chunk
AddOns:
(Same as before)
Report comment to moderator  
Reply With Quote
Unread 05-03-09, 06:16 PM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 1
Thanks for bringing this to my attention alfuin, i'll get that sorted and redo the whole code so gimme a bit to do that.
__________________
"Be yourself, everyone else is taken"
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: