All pastes #1043561 Raw Edit

Untitled

public text v1 · immutable
#1043561 ·published 2008-06-10 06:28 UTC
rendered paste body
;Highlight Script by Looce, modified by handman003
;-----------------------------------


;Original script created by Looce:

;on *:Text:$(* $+ $me $+ *):*: echo -td < $+ $iif($chan,$chan $chr(3) $+ $pad2($nick($chan, $nick).color) $+ $nick $+ $chr(3),query $nick) $+ > $1-
;on *:Action:$(* $+ $me $+ *):*: echo -td * $iif($chan,$chan $chr(3) $+ $pad2($nick($chan, $nick).color) $+ $nick $+ $chr(3),query $nick) $1-
;alias -l pad2 return $right(0 $+ $$1, 2)

;-----------------------------------
;hand's version:

;necessary alias for $nick colorification
alias -l pad2 return $right(0 $+ $$1, 2)



;text highlights
on *:Text:$(* $+ $me $+ *):*: {

  ;set the highlight as a variable, in this case %thgilhgih (hilight spelled backwards)
  set %thgilhgih $chr(3) $+ 7 $+ < $+ $iif($chan,$chan $chr(3) $+ $pad2($nick($chan, $nick).color) $+ $chr(31) $+ $nick $+ $chr(3),query $nick) $+ $chr(31) $+ $chr(3) $+ 7 $+ > $1- $+ $chr(3)

  ;if #scripts is not the active window, echo in #scripts and go on.
  if ($active != #scripts) {
    echo 4 -t #scripts %thgilhgih
  }

  ;if the highlight occurs on the active window, echo in the status window and halt
  if ($active == $chan) {
    echo 4 -ts %thgilhgih
    halt
  }

  ;otherwise, echo in the active window, and in the status window
  else {
    echo 4 -tsa %thgilhgih
  }

}



;act highlights
on *:Action:$(* $+ $me $+ *):*: {

  ;set the highlight as a variable, in this case %thgilhgih (hilight spelled backwards)
  set %thgilhgih $chr(3) $+ 7 $+ * $iif($chan,$chan $chr(3) $+ $pad2($nick($chan, $nick).color) $+ $chr(31) $+ $nick $+ $chr(3),query $nick) $+ $chr(31)  $chr(3) $+ 7 $+  $1- $+ $chr(3)

  ;if #scripts is not the active window, echo in #scripts and go on.
  if ($active != #scripts) {
    echo 4 -t #scripts %thgilhgih
  }

  ;if the highlight occurs on the active window, echo in the status window and halt
  if ($active == $chan) {
    echo 4 -ts %thgilhgih
    halt
  }

  ;otherwise, echo in the active window, and in the status window
  else {
    echo 4 -tsa %thgilhgih
  }

}



;points .duel has been used successfully
on *:Text:*has joined the group to duel the wizard. Waiting for at least 2 more people to join.:#points: {

  ;if $nick is RuneScript, proceed
  if ($nick == RuneScript) {

    ;set the highlight as a variable, in this case %thgilhgihp (hilight spelled backwards, with an added p)
    set %thgilhgihp $chr(3) $+ 7 $+ A duel has been started in #points $+ $chr(3)

    ;if #scripts is not the active window, echo in #scripts and go on.
    if ($active != #scripts) {
      echo 4 -t #scripts %thgilhgihp
    }

    ;if the highlight occurs on the active window, echo in the status window and halt
    if ($active == $chan) {
      echo 4 -ts %thgilhgihp
      halt
    }

    ;otherwise, echo in the active window, and in the status window
    else {
      echo 4 -tsa %thgilhgihp
    }

  }

  ;if $nick is not RuneScript, halt
  else {
    halt
  }

}

;eof