PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: viisoara17 on 14 June, 2007, 19:06:17

Title: a wordcensor
Post by: viisoara17 on 14 June, 2007, 19:06:17
I need a censor that work like this:  if i say  hub, disconect me, if i say hub. or huub or hubl or hubg .. no nothing.
I tryed many scripts, but they work in aother way.
Please.

Have a good day !
Title: Re: a wordcensor
Post by: bastya_elvtars on 14 June, 2007, 20:32:59
Please post an existing script, that's easier.
Title: Re: a wordcensor
Post by: Psycho_Chihuahua on 14 June, 2007, 20:58:29
i see this is in the old Lua 5 Part...wasnt support closed?

and i also thought these threads were supposed to be locked  ???
Title: Re: a wordcensor
Post by: bastya_elvtars on 14 June, 2007, 21:41:38
Quote from: Psycho_Chihuahua on 14 June, 2007, 20:58:29
i see this is in the old Lua 5 Part...wasnt support closed?

and i also thought these threads were supposed to be locked  ???

I tried locking them 20 times, but this all seems to fail. I move the post.
Title: Re: a wordcensor
Post by: viisoara17 on 19 June, 2007, 11:05:15
Here`s a script:
I wnat it to work like this:  if i say  hub, disconect me, if i say hub. or huub or hubl or hubg .. no nothing.


tBad = { 
   -- add more words the same way   
   [1] = "dchub://",


 
ChatArrival = function(User,Data)
   if User.iProfile ~= 0 then
      local data = string.lower(Data)
      for k,v in pairs(tBad) do 
         local str = string.lower(v)
         str = string.gsub(str,"%c","%1")
         if string.find(data,str) then
            return 1
         end
      end
   end
end
I`m i invisible? ??? :-[
Title: Re: a wordcensor
Post by: Leun on 19 June, 2007, 11:51:28
Hi,

Your request is already done, search for lucifer by jiten ( anti advertise script) or take a look at this page http://forum.ptokax.org/index.php?topic=7148#new (http://forum.ptokax.org/index.php?topic=7148#new)

greetz
Title: Re: a wordcensor
Post by: viisoara17 on 19 June, 2007, 13:08:26
THX