mIRC Homepage
Posted By: XGamerAMD block query - 01/05/23 09:45 PM
on *:open:?:{
echo -a $nick
if $nick iswm %permit { .echo -a caca | halt }
else {
echo -a 5812321421412 $nick te mando privado $2- | set %qks $Nick | msgs
}
}

alias msgs {
.notice %qks 58 4,1|9|11|13|8|7|4| Hola Perdon -No-Acepto privado 4,1|9|11|13|8|7|4|
//echo -a %qks %textq
.closemsg %qks
}

.Query
..permitir : //set %permit $addtok(%permit,$snick(#,1),44)
..bloquear : //set %block $addtok(%block,$snick(#,1),44)

doesnt work any help please
Posted By: Epic Re: block query - 02/05/23 12:45 PM
Originally Posted by XGamerAMD
doesnt work any help please
From this meager description of the request, it is difficult to understand what is not working and how exactly you want your script to work, so you can only guess.

Nevertheless, if I understood your idea correctly from the code snippet provided, then after making some corrections and changes, I ended up with this code:
Code
menu nicklist {
  Query
  .Allow -> $snick(#,1): set %qallow $addtok(%qallow,$snick(#,1),44) | echo -a 05Allow:12 %qallow
  .Block -> $snick(#,1): set %qblock $addtok(%qblock,$snick(#,1),44) | echo -a 05Block:12 %qblock
}
on *:OPEN:?:*:{
  if ($istok(%qblock,$nick,44)) {
    .timerCLOSE -m 1 0 close -m $nick | echo -a $nick :: User from the blocked list :: $1- | msg1 $nick
  }
  elseif ($istok(%qallow,$nick,44)) { .echo $nick $nick :: User from the allowed list :: }
  else { echo $nick $nick :: User not included in any lists :: | msg2 $nick }
}
alias -l msg1 {
  .query $1 58 4,1|9|11|13|8|7|4| Hello. I'm sorry, I don't accept private messages. 4,1|9|11|13|8|7|4|
}
alias -l msg2 {
  .query $1 58 4,1|9|11|13|8|7|4| Hello. This is an auto answering. Please wait for my response. 4,1|9|11|13|8|7|4|
}

I hope this is exactly what you wanted to do, but you did not succeed. Compare this code with yours and try to understand what has changed and how it works.


🕮 You can also study all the necessary information on the elements and commands used in the help documentation:

Posted By: XGamerAMD Re: block query - 02/05/23 05:28 PM
thnx fot that
© mIRC Discussion Forums