mIRC Home    About    Download    Register    News    Help

Print Thread
#27326 01/06/03 12:15 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
i need help with this i dont know if it wil work
-
on 1:join:#botsparadise:{
if ($nick == $me) { /halt }
else { /write join.ini $nick }
}
on 10:text:.next:#botsparadise:/mode #botsparadise +v $read(join.ini, 1) | /say #botsparadise $read(join.ini, 1) u will be helped by $nick
-


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#27327 01/06/03 12:23 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
u can't use /say in on text event, then use /msg
i can't tell u nothing else, cuz u didn't said what u want it to do
anyway, in the on join event u could prefix the event with "!" and remove the 'if' and 'else' part from the event
on !1:join:#:......



Last edited by ScatMan; 01/06/03 12:25 AM.
#27328 01/06/03 12:26 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
i want it to when someone joins the channel add their nick to an ini but without it adding mine when i join


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#27329 01/06/03 12:29 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
then do what i said

#27330 01/06/03 12:30 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
but if i romeve the "if" it will add my nick to the ini


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#27331 01/06/03 12:34 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
The ! prefix prevents the event from triggering for you.

#27332 01/06/03 12:36 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
on !1:join:#botsparadise:{ write join.ini $nick }
on 10:text:.next:#botsparadise:{ mode # +v $read(join.ini,1) | msg # $read(join.ini, 1) u will be helped by $nick }
the "!" is like if ($nick != $me)


Last edited by ScatMan; 01/06/03 12:36 AM.
#27333 01/06/03 12:39 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
for some reason it wont write anythin to the ini


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#27334 01/06/03 12:42 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Why an .ini anyway, why not a .txt file?
Code:
on +1!:join:#botsparadise:{  
  write join.txt $nick  
}  
on 10:text:.next:#botsparadise:{
  if $read(join.txt,1) {
    mode #botsparadise +v $ifmatch
    msg #botsparadise $ifmatch you will be helped by $nick
    write -dl1 join.txt
  }
}
Make sure there is no other onjoins in the same file that may conflict with this.

#27335 01/06/03 12:53 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Thats great thanx lots all smile


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#27336 01/06/03 03:01 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Btw is it possible to make it so when someone parts the channel it removes them from the txt file?


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#27337 01/06/03 03:07 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
on !1:part:#botsparadise:{ write -ds $+ $nick join.txt }
if the file is join.ini replace with join.ini

#27338 01/06/03 03:09 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
thanx v much smile


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Link Copied to Clipboard