Download
(18Kb)
Download
Updated: 10-16-11 06:13 AM
Updated:10-16-11 06:13 AM
Created:unknown
Downloads:4,035
Favorites:8
MD5:

NPC Silencer German

Version: 42000.130
by: Broessel01 [More]
r130 | broesel01 | 2011-10-16 14:10:42 +0000 (Tue, 16 Oct 2011) | many lines
- little fixes

------------------------------------------------------------------------
r128 | broesel01 | 2011-08-23 07:40:01 +0000 (Tue, 23 Aug 2011) | 3 lines
Changed paths:
A /tags/version-r127 (from /trunk:127)

Tag the r127 release

------------------------------------------------------------------------
r127 | broesel01 | 2011-08-23 07:39:14 +0000 (Tue, 23 Aug 2011) | 2 lines
Changed paths:
M /trunk/npc-silencer.lua

- Npc Update

------------------------------------------------------------------------
r125 | broesel01 | 2011-07-31 09:53:38 +0000 (Sun, 31 Jul 2011) | 2 lines
Changed paths:
M /trunk/npc-silencer.lua

- little Npc Update

------------------------------------------------------------------------
r124 | broesel01 | 2011-07-17 09:06:24 +0000 (Sun, 17 Jul 2011) | 2 lines
Changed paths:
M /trunk/npc-silencer.lua

- little Npc Update

------------------------------------------------------------------------
Optional Files (0)


Post A Reply Comment Options
Unread 05-25-11, 11:31 PM  
Broessel01
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 36
Uploads: 4
Thanks!

Will try it out.

Originally posted by Vladinator
I dig the idea and good job on the addon!

I wanted to help you make the addon locale independent and wrote some example code on how you could do it based on NPC IDs. This way it can work for any game version, I think it would be very neat.

[...]

Report comment to moderator  
Reply With Quote
Unread 05-25-11, 05:30 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 793
File comments: 337
Uploads: 31
I dig the idea and good job on the addon!

I wanted to help you make the addon locale independent and wrote some example code on how you could do it based on NPC IDs. This way it can work for any game version, I think it would be very neat.

lua Code:
  1. -- used to retrieve NPC name using their ID (localized)
  2. local tip = CreateFrame("GameTooltip")
  3. tip.txt = tip:CreateFontString()
  4. tip:AddFontStrings(tip.txt, tip:CreateFontString())
  5. function tip:name(id)
  6.   tip:SetOwner(WorldFrame, "ANCHOR_NONE")
  7.   tip:SetHyperlink(("unit:0xF53%05X00000000"):format(id))
  8.   return tip:IsShown() and tip.txt:GetText()
  9. end
  10.  
  11. -- the events we wish to apply our filter on
  12. local events = {
  13.   "CHAT_MSG_MONSTER_EMOTE",
  14.   "CHAT_MSG_MONSTER_PARTY",
  15.   "CHAT_MSG_MONSTER_SAY",
  16.   "CHAT_MSG_MONSTER_WHISPER",
  17.   "CHAT_MSG_MONSTER_YELL",
  18. }
  19.  
  20. -- list of npcIDs we are to ignore
  21. local database = {
  22.   ["34692"] = 1, -- Sister Goldskimmer (each time she buffs)
  23.   ["34695"] = 1, -- Maxx Avalanche
  24.   ["34835"] = 1,
  25.   ["34876"] = 1,
  26.   ["34877"] = 1,
  27.   ["34878"] = 1,
  28.   ["35120"] = 1,
  29.   ["35175"] = 1,
  30.   ["37106"] = 1,
  31. }
  32.  
  33. -- will be populated later on
  34. local ignore = {}
  35. local rescan = {}
  36.  
  37. -- scans the table of npcIDs and populates the above (empty) tables
  38. local function scanTable(tbl)
  39.   for npcid, _ in pairs(tbl) do
  40.     local npcname = tip:name(npcid)
  41.     if npcname then
  42.       ignore[npcname] = 1 -- the npc is cached, we add it's name to the ignore list
  43.       rescan[npcid] = nil -- remove from the re-scan list (if it's there)
  44.     else
  45.       rescan[npcid] = 1 -- not cached yet so we add the id to the "to-rescan-later" list
  46.     end
  47.   end
  48. end
  49.  
  50. -- process the database
  51. scanTable(database)
  52.  
  53. -- decides if message should be hidden or not
  54. local function filter(self, event, msg, sender, ...)
  55.   scanTable(rescan) -- we scan leftovers on filter triggers
  56.   return ignore[sender] and true or false
  57. end
  58.  
  59. -- register our filter with the chat frames
  60. for _, event in pairs(events) do
  61.   ChatFrame_AddMessageEventFilter(event, filter)
  62. end
Last edited by Vlad : 05-25-11 at 05:44 AM.
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 02:51 PM  
Broessel01
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 36
Uploads: 4
Hi,

i play on german servers only. Can you send me please the old version from Npc-Silencer via email to wow-addons[at]o2online.de, so i can make an english version.

Can you tell me please the talking Npc's and the location too?


Originally posted by Gaenjin
So this is German-only now? Is there no longer a version for the English client?

I haven't played in a couple of years, and I had the old NPC_Silencer still installed, but when I tried to update it, it seems to have been discontinued and replaced with this German-only version?
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 08:29 AM  
Gaenjin
A Deviate Faerie Dragon

Forum posts: 10
File comments: 56
Uploads: 0
So this is German-only now? Is there no longer a version for the English client?

I haven't played in a couple of years, and I had the old NPC_Silencer still installed, but when I tried to update it, it seems to have been discontinued and replaced with this German-only version?
Report comment to moderator  
Reply With Quote
Unread 06-26-10, 07:01 AM  
Broessel01
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 36
Uploads: 4
Thanks!

Added next update.

Remember!
It's a german addon When you have a list of all talking npc's so i can add them.
Last edited by Broessel01 : 07-02-10 at 07:15 AM.
Report comment to moderator  
Reply With Quote
Unread 06-26-10, 05:15 AM  
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1600
File comments: 2305
Uploads: 21
Cro Threadstrong
Report comment to moderator  
Reply With Quote
Unread 12-25-09, 06:58 PM  
ac3r
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 27
Uploads: 1
since using npc silencer my chat "stops" complete after some time. no more messages displayed.
i thought first it was the chat addon and changed to another one. the problem wasnt fixed.
now after disabling NPC Silencer its gone.
Report comment to moderator  
Reply With Quote
Unread 06-23-08, 07:32 AM  
Broessel01
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 36
Uploads: 4
Re: Fruity

Originally posted by Sadictice
Seriously we need to silence the guy yelling about fruit vendor.

I'm going to start compiling a list of horde npc's I notice while I'm leveling my new character and I'll send it when I feel it's complete.

By the way your english isn't that bad, I understood everything easily.
So, i retestet the fruit vendor. In german it's "Oma Boskop". In english it's "Granny Smith". Right?

Is the nick NOT "Granny Smith" so PLEASE give me the correct nick.

U wanna give me a list of horde npc's? Really thanks

Please write ever City and Name in one line, so it's easyer for me.
U can send the list via pm here on wowinterface.
Last edited by Broessel01 : 06-23-08 at 07:33 AM.
Report comment to moderator  
Reply With Quote
Unread 06-20-08, 11:12 PM  
Sadictice
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Fruity

Seriously we need to silence the guy yelling about fruit vendor.

I'm going to start compiling a list of horde npc's I notice while I'm leveling my new character and I'll send it when I feel it's complete.

By the way your english isn't that bad, I understood everything easily.
Report comment to moderator  
Reply With Quote
Unread 06-15-08, 05:03 AM  
Zeyr
A Defias Bandit

Forum posts: 3
File comments: 3
Uploads: 0
If only I was female

I'd have your babies for making this.
Report comment to moderator  
Reply With Quote
Unread 05-17-08, 03:35 AM  
Broessel01
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 36
Uploads: 4
Originally posted by Aethra
The guy who yells about the fruit vendor in Shattrah...can you shut him up? heheh
Please give me the nick, and i'll add him
Report comment to moderator  
Reply With Quote
Unread 05-17-08, 12:51 AM  
Aethra
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations

Forum posts: 19
File comments: 42
Uploads: 3
Originally posted by Broessel01
Aethra, please give me feedback
I've had no problems with it at all so far. Things are quieter! There are a couple other NPCs that I wouldn't mind shutting up but I haven't made any notes for them. I will next time!

The guy who yells about the fruit vendor in Shattrah...can you shut him up? heheh

It's a simple mod without frills that just WORKS. It's nice to not have to scroll through 12 lines of crap outside Kara to see who needs a summon and stuff like that. Great job!
Report comment to moderator  
Reply With Quote
Unread 05-12-08, 03:34 AM  
Broessel01
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 36
Uploads: 4
Aethra, please give me feedback
Report comment to moderator  
Reply With Quote
Unread 05-11-08, 04:33 PM  
Aethra
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations

Forum posts: 19
File comments: 42
Uploads: 3
Your english is better than some Americans' I know!

Looks like a handy mod. I like that it blocks selective NPCs and not all. Will try it out.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: