Skip to content
MSN

Help With onjoin..

A TG007 community discussion started by Entox|cated.

Discussion 5 posts
Page 1 of 1
Open
Topic #91 · 5 published posts · 586 views

Can anyone help me an onjoin .. pls.. ? i am trying to make a onjoin that will read a .txt file then then Q them... But at the moment Am Failing .. sad.gif

 

The code that Add's The Gate's Is

on Admin:TEXT:+q*:#:{ 
 write aop.txt $address $ial($2).nick 
 msg $chan $ial($2).nick Added To aop.txt
}
on Admin:TEXT:-q*:#:{
 var %a = $read aop.txt,s,$address $ial($2).nick
 write $+(-dl,%a) aop.txt
 msg $chan $ial($2).nick Removed From aop.txt
}

 

And it add the Gate's And Nick in this form..

2C8F37C0315596F7@GateKeeperPassport ‡ÃÊVΣΧhºÞØÉ‡™

 

So hope that someone can help thank's .. smile.gif

sorry, i wanted to help but i didn't really get ur question ! huh.gif

on me:*:join:#:hop #

Nope didnt get any of that!!!!!!!! huh.gif

I think Entox|cated is trying to say they want the users who are added in their aop.txt file to be +q when they join. Am I close? unsure.gif

Edited Mar 13, 2004 10:34 AM by safety

yep you got it..smile.gif But is ok cos have done it now..tongue.gif

 

on admin:text:+aop*:#: { var %a 1
 while (%a <= $nick($chan,0)) {
   if (* $+ $2 $+ * iswm $nick($chan,%a)) {
     set %addnick $nick($chan,%a))
     write Name of Txt here.txt $address(%addnick,1) %addnick
     msg # Ok added %addnick to aop list as requested  
   }
   inc %a
 }
}
on admin:text:-aop*:#: { var %a 1
 while (%a <= $nick($chan,0)) {
   if (* $+ $2 $+ * iswm $nick($chan,%a)) {
     set %addnick $nick($chan,%a))
     write -ds $address(%addnick,1) Name of Txt here.txt
     msg # Ok deleted %addnick from aop list as requested  
   }
   inc %a
 }
}

 

Notice where it say's Name of Txt Here.txt.. That is the name that you want to call your .txt file .. ok .. and .. you only have to edit part of the nick .. so for e.g ..

if the nick you were after adding is.. Joe_Bloggs... you would just type .. Joe..

 

Credit's To D¬Tox And DaveyBoi_Uk..

Edited Mar 14, 2004 3:56 AM by Entox&#124;cated