Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
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:2,341
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)


Archived Files (10)
File Name
Version
Size
Author
Date
1.3
1kB
Shadowfaux
05-23-09 08:26 AM
1.2.9
1kB
Shadowfaux
05-20-09 02:10 AM
1.2.8
1kB
Shadowfaux
05-16-09 07:30 PM
1.2.6
959B
Shadowfaux
05-07-09 05:34 PM
1.2.7
1kB
Shadowfaux
04-30-09 07:44 PM
1.2.5.1
1kB
Shadowfaux
04-30-09 10:45 AM
1.2.5
3kB
Shadowfaux
04-30-09 08:09 AM
1.2
2kB
Shadowfaux
04-26-09 02:24 PM
1.1
2kB
Shadowfaux
02-25-09 05:56 PM
1.0
2kB
Shadowfaux
02-24-09 07:10 AM


Post A Reply Comment Options
Unread 07-29-09, 12:17 PM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 3
Borked majorly

Heads on on 2.0 progress:

-Working out all bugs one by one.
-Fixing slash commands to be more user friendly.
-Making it more polite to everyone ^^
__________________
"Be yourself, everyone else is taken"
Last edited by Shadowfaux : 11-02-09 at 04:05 PM.
Shadowfaux is offline Report comment to moderator  
Reply With Quote
Unread 06-23-09, 04:25 PM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 3
Re: Re: 1.3.1

Yep, i just added headphones (badly). Just so you all know, i appear to have messed up 1.3.1 so 1.3.2 will be released later today, assuming Aggramar can get itself stable again
__________________
"Be yourself, everyone else is taken"
Shadowfaux is offline Report comment to moderator  
Reply With Quote
Unread 06-22-09, 10:37 AM  
jadakren
A Flamescale Wyrmkin
 
jadakren's Avatar
AddOn Author - Click to view AddOns

Forum posts: 103
File comments: 113
Uploads: 2
Re: 1.3.1

Just in case anyone is wondering the icon shown here (the blue wolf, white background encased in a blue line border) is from the linux media player : Amarok

jadakren is offline Report comment to moderator  
Reply With Quote
Unread 06-21-09, 10:38 PM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 3
1.3.1

V1.3.1 is up, and fixes the really stupid mistake i'd made in 1.3.

Also fixes the problems with the show slash command.
__________________
"Be yourself, everyone else is taken"
Shadowfaux is offline Report comment to moderator  
Reply With Quote
Unread 05-20-09, 02:12 AM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 3
The XML hasn't been in for a while Alfuin, I had just messed up my booleans while coding so 1.2.9 fixes this. Expect 1.3 later today, once the servers are back up and I can test it out.
__________________
"Be yourself, everyone else is taken"
Shadowfaux is offline Report comment to moderator  
Reply With Quote
Unread 05-17-09, 06:39 AM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
FYI, you've forgotten to add the xml file in the zip. It's ok for those just updating your addon, but for those who are downloading it first time, it would not work.
Alfuin is offline Report comment to moderator  
Reply With Quote
Unread 05-16-09, 11:05 PM  
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 816
File comments: 334
Uploads: 16
if you guys dont know what dilligaf means then follow this link http://www.youtube.com/watch?v=WxmUKVrT0iI sung by a great Aussie Comedian Kevin "Bloody" Wilson.
__________________


"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
tinyu is offline Report comment to moderator  
Reply With Quote
Unread 05-15-09, 01:31 PM  
Shadowfaux
A Defias Bandit
 
Shadowfaux's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 16
Uploads: 3
whoops

whoops! that's sorted now thought, dilligaf now blocks the wintergrasp yells as well, am still working on slash commands and the rest.
__________________
"Be yourself, everyone else is taken"
Shadowfaux is offline Report comment to moderator  
Reply With Quote
Unread 05-08-09, 04:31 AM  
Banur
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 126
Uploads: 3
Please put the addon files in an own folder before zipping.
a lazy adorer
Banur is offline 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: 3
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"
Shadowfaux is offline 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)
Alfuin is offline 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: 3
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.
Shadowfaux is offline 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
Alfuin is offline 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: 3
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.
Shadowfaux is offline 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.
Alfuin is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: