mIRC Homepage
Posted By: andymps help plz? - 01/06/03 12:15 AM
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
-
Posted By: ScatMan Re: help plz? - 01/06/03 12:23 AM
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:#:......


Posted By: andymps Re: help plz? - 01/06/03 12:26 AM
i want it to when someone joins the channel add their nick to an ini but without it adding mine when i join
Posted By: ScatMan Re: help plz? - 01/06/03 12:29 AM
then do what i said
Posted By: andymps Re: help plz? - 01/06/03 12:30 AM
but if i romeve the "if" it will add my nick to the ini
Posted By: Nimue Re: help plz? - 01/06/03 12:34 AM
The ! prefix prevents the event from triggering for you.
Posted By: ScatMan Re: help plz? - 01/06/03 12:36 AM
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)

Posted By: andymps Re: help plz? - 01/06/03 12:39 AM
for some reason it wont write anythin to the ini
Posted By: Nimue Re: help plz? - 01/06/03 12:42 AM
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.
Posted By: andymps Re: help plz? - 01/06/03 12:53 AM
Thats great thanx lots all smile
Posted By: andymps Re: help plz? - 01/06/03 03:01 PM
Btw is it possible to make it so when someone parts the channel it removes them from the txt file?
Posted By: ScatMan Re: help plz? - 01/06/03 03:07 PM
on !1:part:#botsparadise:{ write -ds $+ $nick join.txt }
if the file is join.ini replace with join.ini
Posted By: andymps Re: help plz? - 01/06/03 03:09 PM
thanx v much smile
© mIRC Discussion Forums