Advertisement
Guest User

Untitled

a guest
May 15th, 2022
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. L='Common'
  2. if(select(1,UnitFactionGroup('player')))=='Horde'then
  3.     L='Orcish'end
  4.  
  5. for _,c in pairs({
  6.     'SAY',
  7.     'YELL',
  8.     'CHANNEL'
  9. })do
  10.     ChatFrame_AddMessageEventFilter('CHAT_MSG_'..c,function(_,_,m,_,l)
  11.         if L~=l then
  12.             return true
  13.         else
  14.             m=string.lower(m):gsub('[%c%d%p%s%z]','')
  15.             for _,w in pairs({
  16.                 'coins',
  17.                 'wts',
  18.                 'sell',
  19.                 'sale',
  20.                 'trad',
  21.                 'web',
  22.                 'site',
  23.                 'warmane',
  24.                 'wm',
  25.                 'guil',
  26.                 'gild',
  27.                 'pve',
  28.                 'pvp',
  29.                 'dbm',
  30.                 'dkp',
  31.                 'epgp',
  32.                 'recr',
  33.                 'recl',
  34.                 'xlod',
  35.                 'raidtime',
  36.                 'progres',
  37.                 'progg',
  38.                 'набор',
  39.                 'twitch',
  40.                 'youtu',
  41.                 'baidu'
  42.             })do
  43.                 if m:find(w)then
  44.                     return true end
  45.             end
  46.         end
  47.     end)
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement