PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: NightLitch on 20 March, 2004, 16:47:34

Title: Advertising Shield By: NightLitch
Post by: NightLitch on 20 March, 2004, 16:47:34
Advertising Shield
Version: 11
By: NightLitch
Date: 2004-03-23

Download!   (http://swenorth.myftp.org/network/nightlitch/scripts/adver-shield.rar)

Last updated: 06/01/2004


BETA Test Advertising: RipOff from Thor:

Download!   (http://swenorth.myftp.org/network/nightlitch/scripts/Advertising.rar)





Title:
Post by: [PT]CableGuy on 22 March, 2004, 02:32:43
Hi there:

Sorry for this question , it could probably be "dumb" ...but here goes anyway:
Does this script blocks also with spaces or characters between "letters on ban name" ?

Like for example:
n o - i p . c o m
n#o#-#i#p#.#c#o#m

Creating a "new trigger" would be awesome. :D

--example:

between = {
"#",
"!",
"+",
}

Hope i "got it right"... :rolleyes:
Thanks in advance for all you're amazing scripts. :]
Title:
Post by: NightLitch on 22 March, 2004, 21:12:48
I already have that function in my new version, so Am gonna do an update soon.
Title:
Post by: NightLitch on 22 March, 2004, 22:15:34
First Post updated!
Title:
Post by: [PT]CableGuy on 23 March, 2004, 18:07:14
Thanks NightLitch  !!!!
Im going to test it right away... :D


*****edited*****

Something is wrong , the script is warning about "myhub.myftp.org"...
and not warning with "no-ip".
Sorry NightLitch

 
Title:
Post by: raz on 23 March, 2004, 18:09:48
hi Nightlitch how r u? just wanna say u should add * cuz some people add that!!
thanks
:D
Title:
Post by: NightLitch on 23 March, 2004, 21:09:37
First post updated!
Title:
Post by: [PT]CableGuy on 31 March, 2004, 03:53:16
Hi NighLitch :

I must say i was so "overwellmed" with this script that i started using NXS-3 :D
Thanks for this impressive scripts , very much !!!
I have something to add to this one (sorry)...but somethings wrong with it.

EVERYTHINGS WORKING FINE    , besides:  no-ip  and kicks-ass .
It must be something related to the "-"  character ,
because it's the only one's that doesn't work right.
Thanks again. :P
Title:
Post by: NightLitch on 31 March, 2004, 12:28:16
Yeah I know, have tired figuring this one out, but no luck yet... thinking of splitting it up like this:


Table = {
["no"]="ip",
["kick"]="ass",


but will see what I can acomplish.

/NL
Title:
Post by: [PT]CableGuy on 31 March, 2004, 18:01:44
I'd appreciate it very much , THANKS. :]

Can i make a request for this script ?
I thought about a "crazy ideia" , but it should be fun.
My ideia is to create a BLACK LIST , with "top pubbers info".
Since this script warns OPs about who's making the pub and the pub itself...
(would be great to have also the pubbers IP)... it could save this information into a file.

The ideia is to "implement" this script across several hubs , creating several "pub.txt".
It should be needed "human intervention" only to collect all TXTs
and place them in a BLACK hublist. Of course , wi'll never add the real link to the "black hubs". :D

Example of pub.txt files:

User=nick | UserIP=ip | Hubname=pub | N? of warns/kicks |

-- Note: Hubname is without domain name (no-ip.com)

If this is a very crazy ideia , i'm sorry , and i ask forum moderators
to remove this post , to a "more appropriate" place on the forum.
I'd appreciate very much all your thoughts about this ideia ,
since pubbers are , almost everytime , "small/recent hubs".
 :rolleyes:
Title:
Post by: bastya_elvtars on 10 May, 2004, 04:56:44
Hey all,
using this script and amazing... except one thing: no1 can type the addy of the HUB radio... http://xxxx.myip.hu:8000/listen.pls, because "myip.hu" is forbidden... i tried to add this one to okay sites, and the okay hubs dont work either... (maybe i was wrong, im not a lua guru) - can you help?
Title:
Post by: bastya_elvtars on 10 May, 2004, 04:59:40
and im afraid it bans ops as well...
Title:
Post by: jiten on 10 May, 2004, 09:12:20
hi there.
this script really works well, except for this kind of advertisement:
- n.o.-.i.p (with one dot in between all the trigger)
- n.o-ip (just one dot)
is it possible to block this? haven't found any script censoring the last kind of pub.
peace.
Title:
Post by: NightLitch on 10 May, 2004, 14:13:09
Gonna give out a new version soon... so be patience, I work on NXS-4 Gui so not much time.. but will see what I can do...

/NightLitch
Title:
Post by: TMaster on 19 May, 2004, 00:21:41
Can be added to this script to add new forbidden words to this from the main chat, would be very cool  8)
Title: heheheh
Post by: aL1en on 19 May, 2004, 18:55:52
nice script :)

it blocks anything.. good..

but it Ban MASTER and OP's also!!

:)
Title:
Post by: TMaster on 20 May, 2004, 00:51:17
Added forbidden words to the
-- Change characters.
CharCh = {
["%(dot%)"]=".",
["dot"]=".",

like
-- Change characters.
CharCh = {
["%(bitch%)"]="woman",
["bitch"]="woman",

but doesn't change it.
what is the mistake?
pls help
 :(
THX TMaster
Title:
Post by: dave on 20 May, 2004, 14:29:22
having trouble with the script

my prob is if some1 say: semi network than it warns because of mine :)
Title:
Post by: NightLitch on 24 May, 2004, 10:34:16
New version out, try it...

Fixes:

Operators are not checked
Fixed ok Hubs/Entrys

/NightLitch
Title:
Post by: dave on 24 May, 2004, 14:28:55
Are you sure? It seems just the same as I dloaded a week ago.
Title:
Post by: jiten on 24 May, 2004, 15:23:57
hi again.
i've tried the updated anti-advertiser but it still doesn't censor the kind of pub i mentioned before:
- n.o.-.i.p (with one dot in between all the Adver)
- n.o-ip (just only one dot  somewhere in the Adver)
peace.
Title:
Post by: bastya_elvtars on 24 May, 2004, 16:20:41
if i set "myip" as "denied" it blocks posting my ovn hubaddy even if i add it as OK hub. What2do? Cause myip.hu is a good DNS server and many hubs use that in hungary...
Title:
Post by: NightLitch on 25 May, 2004, 10:47:45
When adding like myip.hu do it like this:

put: myip in Adv Table and hu in Ext Table


jiten:

I have not come up with a good way splitting the advers that have a - in it... sorry but the dots is taken away, if they are not then add:

["."] = "",

in the CharChange table.
Title:
Post by: NightLitch on 25 May, 2004, 10:59:58
Ok, saw I had missed to change the right file in the link, lmao.

Have fixed everyting now...

all your request's should be granted now I hope...

try the link again...

/NL
Title:
Post by: jiten on 26 May, 2004, 10:23:56
when i add this

["."] = "",

in the CharChange table, the advertising shield stops working.

in fact, ppl keep advertising like this in my hub:
- h.ubmoz
- h.u.b.m.o.z
- h........ubmoz
so, the no-ip thing i showed, it was just an example.
all i need is to censor everything before the no-ip.com/org/info, etc... with that pattern.
Title:
Post by: bastya_elvtars on 26 May, 2004, 12:22:28
it kicked one of my  my VIPs for this:

Quoteakkor sem lenne semmi,nem vagy egyed?l:)

 ?( ?( ?(
Title: baning
Post by: someone on 26 May, 2004, 14:41:55
I tested this out with a diiferent username in my hub and when i change the value to 3 it only disconnects me instead of banning me, this is what i've got

-- Set Botname
BotName = "[UV]Shield"
-- Set action for advertising ( 0=Warn / 1=Disconnect / 2=Kick / 3=Ban)
Action = 3

can anybody help
Title:
Post by: Dyzan on 28 May, 2004, 08:39:18
QuoteOriginally posted by someone
I tested this out with a diiferent username in my hub and when i change the value to 3 it only disconnects me instead of banning me, this is what i've got

No problem here.

But I belive that the bot have some other problems.

it triggers to easy on allowed adresses. As this for example:

//www.aftonbladet.se

In that case i got kicked. Strange... It shuld be allowed to write this if I have "www." before the real adress. But in this case it's not. it triggers on the se part anyway. That sux! Take a lock at it NightLitch.

/Dyzan
Title:
Post by: NightLitch on 01 June, 2004, 14:22:29
BETA test Advertising Bot Ripped from my Thor Bot.

second download...
Title:
Post by: bastya_elvtars on 01 June, 2004, 15:24:19
GUI is buggy, dont use it ppl! Btw good job, NL, works amazing!
Title:
Post by: Dyzan on 03 June, 2004, 20:58:52
Nice! New version! I will  give it a try.

/Dyzan
Title:
Post by: bastya_elvtars on 03 June, 2004, 22:28:43
Blocks certain messages, which it shouldnt. If i remove the charreplace line, it does not work @ all. Help!
Title:
Post by: NightLitch on 04 June, 2004, 19:29:55
post some regular lines here that I can test my bot against....

Thor have a newer advertising bot than this last one now.

Gonna make a REAL Stand Alone. Notice some bugs in the Ripped one sorry for that.

/NightLitch
Title:
Post by: QuikThinker on 04 September, 2004, 15:54:15
Hi I've jus started using this script on recommendation but I'm gettin this error:

Syntax error: bad argument #1 to `gsub' (string expected, got nil)
stack traceback:
   1:  function `gsub' [C]
   2:  function `DataArrival' at line 100 [file `D:\[PHH]\scripts\Adver-Shield.lua']

Also I'm using version:
--====[ Advertising Shield ]====--
-- Version: 11
-- By: NightLitch
-- Date: 5/25/2004

Is this the latest version?

Thanx in advance,
Quik.
Title:
Post by: QuikThinker on 06 September, 2004, 00:47:50
lol any1??  ;(
Title:
Post by: bastya_elvtars on 06 September, 2004, 09:53:06
adver shield is too careful, it considers Snip as a changed no-ip (lol). It should not be, most advertisers are 2 idiots to do this lol
Title:
Post by: (=CyberPimp=) on 18 September, 2004, 03:19:18
I would like it to check nick, e-mail and connection type too. Everyware that ad can be posted  :D