Originally Posted By: CountMonday
Glad to get that fixed, but still no luck. Is there some other obvious step I might be missing?


The script you found is written using the on text event. This event can't be triggered by you specifically, only other users on the channel.

So, with this script, you can't use it, but others can.

You have a few options..


  • Make it an alias that only _you_ can type, /roll (This script will only work in the Remotes tab unless you remove the word 'alias' on the first line.)
    Code:
    ; Usage: /roll #
    ; This command can only be typed into a window starting with a '#' (e.g. a channel)
    alias roll {
      if ($left($active,1) == #) {
        if ($1 !isnum) { echo -ac info * Invalid number of dice. | return }
        var %c = $1
        while (%c) {
          var %roll = $rand(1,10)
          if (%roll = 1) { var %roll = #04,01 $+ %roll }
          elseif (%roll isnum 2-7) { var %roll = #00,01 $+ %roll }
          elseif (%roll isnum 8-9) { var %roll = #03,01 $+ %roll }
          else { var %roll = #09,01 $+ %roll }
          var %dice = %dice $+ $iif(%dice,# $+ $chr(44)) %roll
          dec %c
        }
        describe $active rolled $1 dice: $replace(%dice,$chr(46),# $+ $chr(44) $+ $chr(32))
      }
    }
    
  • Just let others type it and not you
  • Copy and paste the mirc.exe into a new folder on its own to create a second instance of mIRC and put your roll script in that one. This way, you have a separate "bot" connection to your IRC channel.
  • Read up on the ON INPUT event which will trigger when YOU type something and not other users. (If you go this route, you will have two events.. one ON INPUT and one ON TEXT.)

Last edited by LostServ; 12/06/14 06:45 PM.