mIRC Home    About    Download    Register    News    Help

Print Thread
#120427 17/05/05 02:57 PM
Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
Code:
ON *:TEXT:!8BALL*:#: /msg $chan 8ball's response:12 $read($shortfn($mircdir) $+ 8ball.txt)

ON *:TEXT:*yawn*:#: { /msg $chan What he said... }

ON *:TEXT:*!ding*:#: { /msg $chan !dong the witch is dead... }

ON *:TEXT:*!list:#test: { /k $nick not in here m8...  } 

ON *:TEXT:!idle*:*: { 
  var %i = 1
  while (%i != $nick(#,0)) {
    if ($nick(#,%i).idle > 10) {
      /notice $nick $nick(#,%i) is idle $nick(#,%i).idle seconds = $floor($calc($nick(#,%i).idle / 60)) minutes = $floor($calc($nick(#,%i).idle / 3600)) hours.
    }
    inc %i
  } 
}


And a pooloadof others... Now they worked fine till my box rebooted all of a sudden, and now 'some' of them work, but only in 'some' channels confused

What is the best way to setup a script for !frigger -> { action } ...?

- sChutt

#120428 18/05/05 01:00 AM
Joined: Jan 2005
Posts: 192
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Code:
ON *:TEXT:!frigger:#: { /describe $chan something silly here }


echo -a $signature
#120429 18/05/05 01:09 AM
Joined: Feb 2003
Posts: 106
L
Vogon poet
Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
Quote:
Code:
ON *:TEXT:!8BALL*:#: /msg $chan 8ball's response:12 $read($shortfn($mircdir) $+ 8ball.txt)

ON *:TEXT:*yawn*:#: { /msg $chan What he said... }

ON *:TEXT:*!ding*:#: { /msg $chan !dong the witch is dead... }

ON *:TEXT:*!list:#test: { /k $nick not in here m8...  } 

ON *:TEXT:!idle*:*: { 
  var %i = 1
  while (%i != $nick(#,0)) {
    if ($nick(#,%i).idle > 10) {
      /notice $nick $nick(#,%i) is idle $nick(#,%i).idle seconds = $floor($calc($nick(#,%i).idle / 60)) minutes = $floor($calc($nick(#,%i).idle / 3600)) hours.
    }
    inc %i
  } 
}


And a pooloadof others... Now they worked fine till my box rebooted all of a sudden, and now 'some' of them work, but only in 'some' channels confused

What is the best way to setup a script for !frigger -> { action } ...?

- sChutt

I would try this format if i was scripting for triggers ...
Code:
on *:TEXT:*:#: { 
  if yawn isin $1- { msg $chan What he said... }
  if !ding isin $1- { msg $chan !dong the witch is dead.. }
  etc
  etc
}


I have heard that multiple on TEXT events in an ini file can lead to trouble.


-
Just because it never happened doesn't mean it isn't true.

Link Copied to Clipboard