Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.00 KB | None | 0 0
  1. alias hilocrack {
  2.   if (($1 !isnum 0-2147483647) || ($2 !isnum 0-2147483647)) {
  3.     echo $color(Info text) * /hilocrack: usage: /hilocrack min_number max_number [gamesserv_nick]
  4.     .halt
  5.   }
  6.   .set %hilocrack.nick $iif($3 != $null,$ifmatch,GamesServ)
  7.   .set %hilocrack.guesses 0
  8.   .enable #hilocrack
  9.   .hilocrack.guess $1 $2
  10. }
  11. alias -l hilocrack.guess {
  12.   .msg %hilocrack.nick GUESS $gettok($calc(($1 + $2) / 2),1,46)
  13.   .inc %hilocrack.guesses
  14. }
  15. alias -l hilocrack.cleanup {
  16.   echo $color(Info text) * /hilocrack: successfully cracked hilo in %hilocrack.guesses guesses
  17.   .unset %hilocrack.*
  18. }
  19. #hilocrack off
  20. on *:TEXT:$(* $+ $me You are a bit closer with * number is between * and *.*):#:if ($nick == %hilocrack.nick) .hilocrack.guess $13 $replace($15,.,)
  21. on *:TEXT:*GAME OVER*:#:if ($nick == %hilocrack.nick) .hilocrack.cleanup
  22. on *:TEXT:$(* $+ $me is correct with * and wins, the rest of you are just Losers $chr(58) $+ $chr(41) $+ *):#:if ($nick == %hilocrack.nick) .hilocrack.cleanup
  23. #hilocrack end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement