Advertisement
westor

!writeme <times> command for Murphy v1.0

Feb 18th, 2015
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.56 KB | None | 0 0
  1. ON !*:TEXT:!writeme &:#: {
  2.   tokenize 32 $strip($1-)
  3.   if (!$2) { .msg $chan ( $+ $nick $+ ): Error, Please specify a digital number! | return }
  4.   if (!$isdigit($2)) { .msg $chan ( $+ $nick $+ ): Error, Please specify an correct digital number! | return }
  5.   var %f = test.txt
  6.   var %t = $2
  7.   var %i = 1
  8.   while (%i <= %t) { write $qt(%f) $nick | inc %i }
  9.   .msg $chan ( $+ $nick $+ ): Your nickname has been written $qt($2) times on $qt(%f) file.
  10. }
  11.  
  12. alias isdigit {
  13.   if (!$1) { return 0 }
  14.   if ($regex($1,^\d+$)) { return 1 }
  15.   else { return 0 }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement