mIRC Home    About    Download    Register    News    Help

Print Thread
#95500 25/08/04 10:40 AM
Joined: Jul 2004
Posts: 40
D
dmmrs Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jul 2004
Posts: 40
Ok, I cant see why this doesnt work, i think its just not sending the correct msg's to the channel. ANyways, can soemone take a look and see if they can see why?

ON *:TEXT:!add *:#: if ( $nick isop # ) { /write recruits.txt $2- $date $time recruited by $nick | /msg $chan 4thankyou... $nick ,8 $2- 4has been successfully added into the recruits list at8 $time 4GMT on8 $date  }
else { /msg $chan 4Sorry,8 $nick 4you do not have the authority to add8 $2- 4to the recruits list. Please ask an op to add8 $2- 4instead.
}

Thanks.


i script, therefore i am smirk
theres logic in there somewhere...
#95501 25/08/04 11:11 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
on *:text:!add *:#: {
if ($nick isop #) {
write recruits.txt $2- $date $time recruited by $nick
msg $chan 4thankyou... $nick ,8 $2- 4has been successfully added into the recruits list at8 $time 4GMT on8 $date 
}
else { msg $chan 4Sorry,8 $nick 4you do not have the authority to add8 $2- 4to the recruits list. Please ask an op to add8 $2- 4instead. }
}



Try that - I had issues getting the alignment right for some stupid reason. You were missing some brackets


Those who fail history are doomed to repeat it
#95502 25/08/04 11:57 AM
Joined: Jul 2004
Posts: 40
D
dmmrs Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jul 2004
Posts: 40
Thankyou so much.

That works fine now.


i script, therefore i am smirk
theres logic in there somewhere...
#95503 25/08/04 01:03 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
anytime smile Remember, when in doubt, hit the { } button at the top right of thew script editor to check for matching brackets


Those who fail history are doomed to repeat it
#95504 25/08/04 04:18 PM
Joined: Jul 2004
Posts: 40
D
dmmrs Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jul 2004
Posts: 40
On another note, can you just point me in the right direction for a couple more things.

I wanna A) add a check to see if the nick is there already, and if it is, reply to the chan with a message. B) find a way to append something like (suspended) and the reason, to be auto removed after a specified amount of days.

I know thats a lot to ask, but if you could just point me in the right direction thatd be great. The nick checking is the most important one.


i script, therefore i am smirk
theres logic in there somewhere...
#95505 25/08/04 07:31 PM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
I just woke up so heres just A: if ($2 ison $chan) { do stuff }
$2 is what the nick is or whatever you want it to be

#95506 26/08/04 09:12 AM
Joined: Jul 2004
Posts: 40
D
dmmrs Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jul 2004
Posts: 40
lol, no i meant if the nick is already in the text file, i dont want it to be added again...

i wanted a msg broadcast to the chan, saying that smile


i script, therefore i am smirk
theres logic in there somewhere...
#95507 29/08/04 11:22 AM
Joined: Jul 2004
Posts: 40
D
dmmrs Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jul 2004
Posts: 40
So basically i wanted it to check to see if the nick is already in the recruits list, if it is, then msg the chan with whatever, then if it isnt, then add it.

Does that make sense?


i script, therefore i am smirk
theres logic in there somewhere...

Link Copied to Clipboard