Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias hilocrack {
- if (($1 !isnum 0-2147483647) || ($2 !isnum 0-2147483647)) {
- echo $color(Info text) * /hilocrack: usage: /hilocrack min_number max_number [gamesserv_nick]
- .halt
- }
- .set %hilocrack.nick $iif($3 != $null,$ifmatch,GamesServ)
- .set %hilocrack.guesses 0
- .enable #hilocrack
- .hilocrack.guess $1 $2
- }
- alias -l hilocrack.guess {
- .msg %hilocrack.nick GUESS $gettok($calc(($1 + $2) / 2),1,46)
- .inc %hilocrack.guesses
- }
- alias -l hilocrack.cleanup {
- echo $color(Info text) * /hilocrack: successfully cracked hilo in %hilocrack.guesses guesses
- .unset %hilocrack.*
- }
- #hilocrack off
- on *:TEXT:$(* $+ $me You are a bit closer with * number is between * and *.*):#:if ($nick == %hilocrack.nick) .hilocrack.guess $13 $replace($15,.,)
- on *:TEXT:*GAME OVER*:#:if ($nick == %hilocrack.nick) .hilocrack.cleanup
- 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
- #hilocrack end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement