mIRC Home    About    Download    Register    News    Help

Print Thread
#82750 11/05/04 07:46 PM
Joined: Jun 2003
Posts: 68
D
Dr4g0n Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 68
on op:Join:#!-wish:{
if ($me isop $chan) {
mode $chan +o $nick
}
}

on *:Text:*:#!-wish:{
if ($nick == $me) { halt }
if (www isin $1-) {
notice $nick Plz dont spam in #!-wish [1, 3 is kick]
auser 1spam $address($nick,2)
}
}

on 1spam:Text:*:#!-wish:{
if (www isin $1-) {
notice $nick Plz dont spam in #!-wish [2, 3 is kick]
ruser 1spam $address($nick,2)
auser 2spam $address($nick,2)
}
}

on 2spam:Text:*:#!-wish:{
if (www isin $1-) {
kick $chan $nick Plz dont spam in #!-wish [3]
ruser 2spam $address($nick,2)
}
}

can someone tell me why this aint working smirk i dont get an error or anything and this is my remote :
n0=op:*!*@81.69.66.242
n1=shitlist:*!*@e145218.upc-e.chello.nl

#82751 11/05/04 08:25 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
You're missing spaces here:

on op:Join:#!-wish: {
on *:Text:*:#!-wish: {
on 1spam:Text:*:#!-wish: {
on 2spam:Text:*:#!-wish: {

Hope it helps smile


"All we are saying is give peace a chance" -- John Lennon
#82752 11/05/04 09:50 PM
Joined: Dec 2003
Posts: 261
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Zyzzyx26, I don't think he needs that spaces... :tongue:


velicha dusha moja Gospoda
#82753 11/05/04 09:55 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Indeed, milosh.. i've tried for the first time without the spaces and it works! I had no idea.

My bad blush blush blush

Zyzzy.


"All we are saying is give peace a chance" -- John Lennon
#82754 12/05/04 06:08 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
NOTES <ol type="1"> [*] [/b]on @ means the same as if ($me isop $chan). Since the final result below is a /kick and channel op is required to perform a kick, each of the on TEXT events should not fire if you're not opped either; thus, I've included it in each of them.

[*] [/b]:*www*: will check to see if (www isin $1-).

[*] [/b]$chan is better than hardcoding the channel name inside the event. If you use $chan, you can add other channels to the channel list and not have to recode that line to differentiate between channels.

[*] [/b]$wildsite is *!*@host, just like $address($nick,2) is. $wildsite, however, has several advantages over $address($nick,2). It works even if the IAL is turned off. It's already filled in and doesn't have to be resolved. It also says what you mean better.

[*] Since you're using 2 userlevels and you are also removing entries as you move them along, you will want to clear both userlevels every time you leave the ops list for the channel in some fashion. Deopping, parting, getting kicked, quitting, getting disconnected or exiting mIRC entirely should all clear those userlevels. The easiest way to detect all of those events is when you rejoin the channel.

[*] I have added a . before each command that echo's something, silencing the script so you don't see it working. Remove those to prove to yourself that the script is functioning as you expect it to, then readd them to silence the script once you're positive it's fully functional.

[*] Note the corrections in red.</ol>on @op:Join:#!-wish: mode $chan +o $nick

on @2spam:Text:*www*:#!-wish:{
  • kick $chan $nick Plz dont spam in $chan [3]
    .ruser 2spam $wildsite
}

on @1spam:Text:*www*:#!-wish:{
  • .notice $nick Plz dont spam in $chan [2, 3 is kick]
    .ruser 1spam $wildsite
    .auser 2spam $wildsite
}

on @*:Text:*www*:#!-wish:{
  • .notice $nick Plz dont spam in $chan [1, 3 is kick]
    .auser 1spam $wildsite
}

on me:*:Join:#!-wish:{
  • .rlevel 1spam
    .rlevel 2spam
}

Last edited by Hammer; 12/05/04 04:01 PM.

DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#82755 12/05/04 08:33 AM
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
You might try putting this on text event after the other two.

on *:Text:*:#!-wish:{

#82756 12/05/04 03:59 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Very good point. I'll edit my corrections accordingly.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#82757 12/05/04 06:19 PM
Joined: Jun 2003
Posts: 68
D
Dr4g0n Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 68
thanks alot i stopped scripting at version 5,7 :P so i had all old ways in my head thanks thanks thanks thanks


Link Copied to Clipboard