Skip to content
MSN Addons

Does anyone know of a good advt kicker?

A TG007 community discussion started by Black Scorpion.

Discussion 34 posts
Page 1 of 2
Open
Topic #6820 · 34 published posts · 5,848 views

I was just wondering if there was an add-on that will warn/kick a person for advertising. Prefer one that is stand alone, not in a preloaded 'whole' script.

I am still screwed up with trying to write kicks, so I just wanted one for the time being.

Almost forgot, it needs to work with either Nuclear6.2.0 or DC connection.

 

on ^*:text:http:#: {

if (%warn. [ $+ [ $nick ] ]) { kick $chan $nick Advertising }

else { msg $chan Advertising isn't allowed here $nick | set %warn. $+ $nick $true }

}

 

Dunno really nothin about these connections, but that should work just wrote it here tho so maybe not

on *:TEXT:*:#: {
 if (%adkick. [ $+ [ $chan ] ]) {
   if (* $+ $findtok(http www. .com .org .net  .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
     if (%adbantime) access $chan add deny $ial($nick).addr %adbantime
     kick $chan $nick %admsg
   }
 }
}

menu channel {
 -
 Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
 .$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset (%adkick. [ $+ [ $chan ] ],set (%adkick. [ $+ [ $chan ] ] $chan)
 .$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
 .$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message,unset %admsg)
 -
}

Edited Jun 8, 2006 5:47 PM by Warrior124

Thanks Gazzy Ill give it a shot. Maybe use it as a base and see if I can write a kicker Not copy it, just use as a reference). I appreciate the help!

np, but probobly best to use wariors its better goodluck:)!

ty, Gazzy. Had to edit it a little to add messages, and all, though lol.

Stained you need for Nuclear and dc right here we go modified warriors code a bit ;) .

For Nuclear-Msn(Sockwrite)
on @*:TEXT:*:#: {
if (%adkick. [ $+ [ $chan ] ]) {
if (* $+ $findtok(http www. .com .org .net .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
if (%adbantime) sockwrite -n $sockfind($chan) access $msn.lcn($chan)  add deny $ial($nick).addr %adbantime $+ $crlf $+ kick $msn.lcn($chan) $nick 
%admsg
}
}
}

menu channel {
-
Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
.$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset (%adkick. [ $+ [ $chan ] ],set (%adkick. [ $+ [ $chan ] ] $chan)
.$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
.$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message,unset %admsg)
-
}

For Dogcollar(Sockwrite)

on @*:TEXT:*:#: {
if (%adkick. [ $+ [ $fchan ] ]) {
if (* $+ $findtok(http www. .com .org .net .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
if (%adbantime) .sockwrite -tn dc.chat. $+ $cid access $fchan add deny $address %adbantime $+ $crlf $+ kick $fchan $dc.fullnick($schan,$nick)
%admsg
}
}
}

menu channel {
-
Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
.$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset (%adkick. [ $+ [ $chan ] ],set (%adkick. [ $+ [ $chan ] ] $chan)
.$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
.$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message,unset %admsg)
-
}

 

I hope its correct :P

 

 

There is nothing so absurd but some philosopher has said it

Thank you all.

I tried using the codes cryton gave me for nuclear, and this is what I get :

* Invalid format: $iif

I tried to edit the $iif to $ if and then it would not even load.

Can anything bee substituted for the $iif ?

I'll keep trying, any help would be appreciated.

slaps himself with a large trout

Edited Jun 9, 2006 12:08 AM by Stained

I found a couple of mistakes in the coding I did. Here is Crytons modified code...

 

For Nuclear-Msn(Sockwrite)
on @*:TEXT:*:#: {
if (%adkick. [ $+ [ $chan ] ]) {
if (* $+ $findtok(http www. .com .org .net .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
if (%adbantime) sockwrite -n $sockfind($chan) access $msn.lcn($chan) add deny $ial($nick).addr %adbantime $+ $crlf $+ kick $msn.lcn($chan) $nick 
%admsg
}
}
}

menu channel {
-
Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
.$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset %adkick. [ $+ [ $chan ] ],set %adkick. [ $+ [ $chan ] ] $chan)
.$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
.$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message,unset %admsg)
-
}

For Dogcollar(Sockwrite)

on @*:TEXT:*:#: {
if (%adkick. [ $+ [ $fchan ] ]) {
if (* $+ $findtok(http www. .com .org .net .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
if (%adbantime) .sockwrite -tn dc.chat. $+ $cid access $fchan add deny $address %adbantime $+ $crlf $+ kick $fchan $dc.fullnick($schan,$nick)
%admsg
}
}
}

menu channel {
-
Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
.$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset %adkick. [ $+ [ $chan ] ],set %adkick. [ $+ [ $chan ] ] $chan)
.$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
.$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message,unset %admsg)
-
}

<wo0t>

 

Thank you very much Warrior.

I was only expecting a few lines to help edit, not the whole thing written over again.

Thank you again.

:cheers:

No problem, lol. Glad to be of help. :)

It is working good with nuke, but I can't seem to set the kick message, a couple inverted commas were missing, that got the dialog wondow up to enter the message, but it does not display. I tried to edit it with this: [ /echo $chan ] after the last line, so the code looks like this;

 

on @*:TEXT:*:#: {
 if (%adkick. [ $+ [ $chan ] ]) {
   if (* $+ $findtok(http www. .com .org .net .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
     if (%adbantime) sockwrite -n $sockfind($chan) access $msn.lcn($chan) add deny $ial($nick).addr %adbantime $+ $crlf $+ kick $msn.lcn($chan) $nick 
     %admsg
   }
 }
}

menu channel {
 -
 Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
 .$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset %adkick. [ $+ [ $chan ] ],set %adkick. [ $+ [ $chan ] ] $chan)
 .$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
 .$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message",unset %admsg) [ /echo $chan ]
 -
}

 

Didn't work though, wrong place I imagine.

 

I keep workin', keeps me away from the g/f and almost out of trouble. :whistle:

 

 

You messed up this part:

kick $msn.lcn($chan) $nick 
%admsg

Try this:

on @*:TEXT:*:#: {
if (%adkick. [ $+ [ $chan ] ]) {
if (* $+ $findtok(http www. .com .org .net .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
if (%adbantime) sockwrite -n $sockfind($chan) access $msn.lcn($chan) add deny $ial($nick).addr %adbantime $+ $crlf $+ kick $msn.lcn($chan) $nick %admsg
}
}
}

menu channel {
-
Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
.$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset %adkick. [ $+ [ $chan ] ],set %adkick. [ $+ [ $chan ] ] $chan)
.$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
.$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message",unset %admsg) [ /echo $chan ]
-
}

Good luck.

:shock:

 

Thanks X-Fusion, it works, the message shows just fine. Now it kicks all who type anything at all....

:lolwave:

 

 

Goes back to mIRC help files, looking for a giant trout!

on @*:TEXT:*:#: {
 if (%adkick. [ $+ [ $chan ] ]) {
   if (* $+ $findtok(http www. .com .org .net .gov .xxx .tv,1,32) $+ * iswm $strip($1-)) {
     if (%adbantime) sockwrite -n $sockfind($chan) access $msn.lcn($chan) add deny $ial($nick).addr %adbantime $+ $crlf $+ kick $msn.lcn($chan) $nick %admsg
   }
 }
else halt
}
menu channel {
-
Ad Kick $chr(91) $+ $iif(%adkick. [ $+ [ $chan ] ],On,Off) $+ $chr(93) 
.$iif(%adkick. [ $+ [ $chan ] ],Off,On) : $iif(%adkick. [ $+ [ $chan ] ],unset %adkick. [ $+ [ $chan ] ],set %adkick. [ $+ [ $chan ] ] $chan)
.$iif(!%adbantime,Set Ban Time,Clear Ban Time) : $iif(!%adbantime,set %adbantime $?="Enter Bantime in seconds format",unset %adbantime)
.$iif(!%admsg,Set Kick Message,Clear Kick Message) : $iif(!%admsg,set %admsg $?="Enter Kick Message",unset %admsg) [ /echo $chan ]
-
}

 

Pomperom

It was already fixed ...

Didn't pay attention ;) srry..

Pomperom

Not entirely true there Trout-Happy-X-Fusion.

Yes, it's kicking for advertising!

Yes it's fast!

 

But.........

It also kicks for any text typed. It does not have to have any web addresses. If someone types hi, hello, or anything at all...It kicks them.

Glad I don't have it set to bann... :lolwave:

 

I am learning a bit from just messing with this and working on it, so it's all ok. LOL

I have irritated a few people in the process, I am amazed at the new configurations of names people have put together for me....Some of which I did not know could be used in the same sentence...

me----> :argue: <---- my friends

 

 

rofl, what happened?

It was edited by more people then the Boston tea party lost tea..LOL!

It works, too well! It kicks for people saying anything..LMFAO!

I decided to try it with the script I have using DC, and that was the same, it kicked with no message, I am not touching that one!!! <wo0t> <yet!>

I have laughed so hard I have a headache..

 

 

Funny thing, I left th e script in the group for a little bit, and forgot to turn off the ad kicker...

Man, I got real popular real fast..LMFAO! :lolwave: