Top

Comments

  (22)  RSS
L's
Xpl0reR
Comments: 27
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on May 2, 2008 12:31 pm
little suggestion..
[code]
on *:TEXT:!rules*:#:{
inc -u8 %xpf 1
if (%xpf > 3) { ban-k 600 # $nick Don't flood }
.timer 1 1 .notice $nick Rule#1: <text>
.timer 1 3 .notice $nick Rule#2: <text>
}
[code/]

and your on join notice too you should add a floodpro..
napa182
Comments: 653
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 30, 2008 12:26 am
you could do it like this as well then you dont need to use a timer to unset the var..
Code:
on *:TEXT:!rules:#:{
  if (!$($+(%,test,.,$nick),2)) {
    inc -u10 $+(%,test,.,$nick)
    .msg $nick <put message here ie.. Rules for channel are....>
  }
}

the -u10 unsets it after 10 seconds.
Cheiron
Comments: 102
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 30, 2008 12:06 am
ooops my bad napa ^^. am not too well atm and struggling for thought. got the most part right. forgot bout the wildcard. just never passed the thought of someone typing it midsentance and assumed it would have been a straight forward up front command..

one other thought though whilst i am here is the addition of one of my own snippets to assist in stopping any one idiot flooding you off the server.

This is my own submitted snippet found at http://www.hawkee.com/snippet/3874/ i have edited it to work with the !rules trigger as per napa's correction to my bad.

on *:TEXT:!rules:#:{
if ( %test. [ $+ [ $nick ] ] == $null ) {
set %test. [ $+ [ $nick ] ] 1
.msg $nick <put message here ie.. Rules for channel are....>
.timer 1 10 unset %test. [ $+ [ $nick ] ]
}
}

the timer here is set for 10 secs there and will stop a nick from activating the command more than once during that time period before it resets and becomes available for the nick to usde again. also to note is the use there of the .msg that delivers a private message to the nick to keep channel chat clear.
napa182
Comments: 653
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 29, 2008 9:56 pm
Cheiron said:
Quote:
there is an error i can see there though on the trigger word part. you are missing a couple of *'s. should look like this.

on *:TEXT:*!rules*:#: { /msg $chan


why would he want to make the !rules a wildcard for?
Code:
on *:text:!rules:#:{ code here }

will work just fine cuz if he did it the way you said it would trigger in the mid of a sentence like ex: "oh command is !rules so type that." =/
BlueThen
Comments: 165
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 29, 2008 8:03 pm
It's a very simple script, but I suggest you keep trying out new things and practice before you start releasing your scripts here. Things like this are way too basic and common.
Cheiron
Comments: 102
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 29, 2008 7:43 pm
you could always edit it to include colours using the Ctrl + k function to buff it up a little. also maybe add a delay to the greet.. or change the message entire channel to something like .notice $nick which is the notice event (silent too there i point out as it is .notice and not /notice)or /msg $nick which makes it nick specific as opposed channel. other option is the .msg $nick which opens a pm with the nick on join.

there is an error i can see there though on the trigger word part. you are missing a couple of *'s. should look like this.

on *:TEXT:*!rules*:#: { /msg $chan

other than that, it is a simple snippet. it works and it is a start on the ladder. welcome to hawkee L :)
MadDucky
Comments: 3
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 29, 2008 7:11 pm
^Neptune - If you read I clearly state that I was too harsh, and at the top I also said "I do not mean to be an asswipe" - That was becouse my comment might come out a little offending to someone that can't handle criticism. Enough off-topic.
^Neptune
Comments: 131
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 29, 2008 6:17 pm
Agreed, it's a crap code butt you don't have to be a !@#$
MadDucky
Comments: 3
 
mIRC Snippet:  Channel Greet and Chan rules
Posted on Apr 29, 2008 5:46 pm
Seriously, please come up with something that doesn't get posted every week and is this basic.

I do not mean to be an asswipe here, please continue to post snippets and feel free to do so aswell. It's only that 2 lines of code isn't really that much to deliver unless it's unique or in some other way advanced/not seen so often. It might be fun to post them but try to be more unique and make them more advanced rather than just throwing up basic scripts provided in /help.

This is just words from another scripter who was probably more ignorant than you are when I first started. And I haven't improved too much :P Please forgive me if I sound harsh but I had to take out my bad night in some way.
L
Comments: 23
 
Profile:  L
Posted on Apr 15, 2008 4:03 pm
hmm
EL
Comments: 574
 
Profile:  L
Posted on Mar 29, 2008 2:57 pm
Hmm i was there the other day i was using my hawkee SN.
L
Comments: 23
 
Profile:  L
Posted on Mar 29, 2008 2:29 pm
>.< EL whats ya nick on frostwire?
L
Comments: 23
 
Image:  Dragon
Posted on Mar 27, 2008 2:39 pm
Hey Engenio
EL
Comments: 574
 
Profile:  L
Posted on Mar 26, 2008 5:36 pm
Quote:

This is L the one and only

LOL@That btw frost wire is lame nothing but kiddies that cant control a channel lol lame...
Eugenio
Comments: 286
 
Image:  Dragon
Posted on Mar 26, 2008 4:30 pm
How perculiar
L
Comments: 23
 
Profile:  L
Posted on Mar 26, 2008 3:46 pm
This is L the one and only :D Meet me at frostwire which is /server -m chat.peercommons.net
L
Comments: 23
 
Image:  Dragon 2nd Version From L And By L
Posted on Mar 26, 2008 3:39 pm
please tell me i9f the first or second one looks better!!! Ty :D (Hint:L likes dragons.)
L
Comments: 23
 
Image:  Dragon
Posted on Mar 26, 2008 3:34 pm
Hey If U like This One The Next One I Put On Hawkee You Also Might Like it!(DRAGONS)
L
Comments: 23
 
Image:  Dragon
Posted on Mar 26, 2008 3:32 pm
Dragons are AWSOME
IcE^__
Comments: 36
 
Image:  Dragon
Posted on Mar 25, 2008 3:43 pm
Looks Nice :D
1 2 Next
Bottom