mIRC Homepage
Posted By: Dr4g0n user events - 11/05/04 07:46 PM
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
Posted By: Zyzzyx26 Re: user events - 11/05/04 08:25 PM
You're missing spaces here:

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

Hope it helps smile
Posted By: milosh Re: user events - 11/05/04 09:50 PM
Zyzzyx26, I don't think he needs that spaces... :tongue:
Posted By: Zyzzyx26 Re: user events - 11/05/04 09:55 PM
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.
Posted By: Hammer Re: user events - 12/05/04 06:08 AM
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
}
Posted By: Nobodi Re: user events - 12/05/04 08:33 AM
You might try putting this on text event after the other two.

on *:Text:*:#!-wish:{
Posted By: Hammer Re: user events - 12/05/04 03:59 PM
Very good point. I'll edit my corrections accordingly.
Posted By: Dr4g0n Re: user events - 12/05/04 06:19 PM
thanks alot i stopped scripting at version 5,7 :P so i had all old ways in my head thanks thanks thanks thanks
© mIRC Discussion Forums