mIRC Home    About    Download    Register    News    Help

Print Thread
#153770 22/07/06 01:05 PM
Joined: Jul 2006
Posts: 14
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2006
Posts: 14
For my channel , I need to make a bot that displays a number when someone types "!PC" and set the number when someone types "!set PC <number>" but i have no idea of how to go about this , if anyone could write the script or just give me a little help then i would be very grateful Very Happy.

PS. This is my first time scripting and I have no idea about it whatsoever LOL!

Thanks in advance
Michael

#153771 22/07/06 02:32 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on *:text:!set pc *:#:{
if $3 !isnum {
.notice $nick Format is !set pc &lt;number&gt;
.notice $nick Replace &lt;number&gt; with a number
}
else {
set %pc $3
}
}
on *:text:!pc:#: .msg $chan %pc
  

#153772 22/07/06 05:28 PM
Joined: Jul 2006
Posts: 14
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2006
Posts: 14
Thank you very much, works very well. wink

Last edited by michael99952; 22/07/06 06:20 PM.

Link Copied to Clipboard