Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Simple Highlight Script (Notice and Counter)
- ;Made by nick1
- ;Last edit August 29, 2011
- on $*:TEXT:/Popm4n/Si:*: {
- inc %highlights
- inc %highlights [ $+ [ $nick ] ]
- inc %highlights [ $+ [ $chan ] ]
- $iif(!$window(@Highlights- $+ $network),window -ev @Highlights- $+ $network,noop)
- echo @Highlights- $+ $network 10 $+ $timestamp $+(12,[,4,$iif($chan,$v1,Query),12,]) 12< $+ $iif($left($nick($chan,$nick).pnick,1) isin $prefix,$v1) $+ $nick $+ > 4>>>10 $replace($1-,nick1,4nick110) 4<<<
- if (($active != $chan) && ($active != $window(@Highlights- $+ $network)) && ($active != $nick)) {
- echo -a $+(12,[,4,$iif($chan,$v1,Query),12,]) 12< $+ $iif($left($nick($chan,$nick).pnick,1) isin $prefix,$v1) $+ $nick $+ > 4>>>10 $replace($1-,nick1,4nick110) 4<<<
- }
- }
- on *:input:*: {
- if ($1 == !hls) && ($2 == $null) {
- .timer 1 1 msg $chan 10I have been highlighted a total of4 %highlights 10times...
- }
- elseif ($1 == !hls) && ($2 != $null) && ($2 !isnum) {
- .timer 1 1 msg $chan 10I have been highlighted4 $iif($($+(%, highlights,$2),2),$($+(%, highlights,$2),2),0) 10times $iif(($left($2,1) == $chr(35)),in,by) $+ 4 $2
- }
- elseif ($1 == !hls) && ($2 >= 1) {
- var %i = 2
- while (%i <= $var(%highlights*, 0)) {
- if ($var(%highlights*,%i).value >= $2) $iif(*#* iswm $($var(%highlights*,%i),0),noop,inc %x)
- inc %i
- }
- .timer 1 1 msg $chan 10A total of4 %x 10people have highlighted me over4 $210 times...
- unset %x
- }
- elseif ($1 == !highlights) && ($2 == $null) {
- .timer 1 1 msg $chan 10I have been highlighted a total of4 %highlights 10times...
- }
- elseif ($1 == !highlights) && ($2 != $null) && ($2 !isnum) {
- .timer 1 1 msg $chan 10I have been highlighted4 $eval($+(%, highlights, $2), 2) 10times by4 $2
- }
- elseif ($1 == !highlights) && ($2 >= 1) {
- var %i = 2
- while (%i <= $var(%highlights*, 0)) {
- if ($var(%highlights*,%i).value >= $2) $iif(*#* iswm $($var(%highlights*,%i),0),noop,inc %x)
- inc %i
- }
- .timer 1 1 msg $chan 10A total of4 %x 10people have highlighted me over4 $210 times...
- unset %x
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement