mIRC Home    About    Download    Register    News    Help

Print Thread
#19976 18/04/03 05:46 PM
Joined: Mar 2003
Posts: 49
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2003
Posts: 49
How i do that when i write in the channel !numname <num>
the bot read the file NickPass.ini in [Names]
and say the name of the Nick <num> in the nick list
like if in the file write
[Names]
SnakeRulez=MasteR

and my nick is the first in the nick list
and i write !numname 1
the bot answer
SnakeRulez's name is MasteR


how i do it...plz help me cool cool

#19977 18/04/03 07:00 PM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
/help ON TEXT
/help $ini
/help $readini
Code:
on *:Text:!numname &amp;:#Yourchan:{
  if (($$2 isnum 1-) &amp;&amp; ($$2 &lt;= $ini(NickPass.ini,Names,0))) {
    var %nick = $ini(NickPass.ini,Names,$$2)
    var %name = $readini(NickPass.ini,Names,%nick)
    msg $chan %nick $+ $iif($right(%nick,1) == s,','s) name is $iif(%name,$ifmatch,not known) $+ .
  }
  else { notice $nick Invalid Number }
}
^ Something like that. Change #Yourchan to whatever channel you want it to work on, # for all channels.


Link Copied to Clipboard