mIRC Home    About    Download    Register    News    Help

Print Thread
#44320 27/08/03 12:03 AM
Joined: Aug 2003
Posts: 73
D
Babel fish
OP Offline
Babel fish
D
Joined: Aug 2003
Posts: 73
i made this my self sorry if its a noob command coz i am a noob at scripting grin and proud of it :tongue:

on 1:INPUT:*: {
if ( $1- == np ) { msg $active .:!!No Problem!!:. | halt }
elseif ( $1- == ty ) { msg $active .:!!Thank You!!:. | halt }
elseif ( $1- == g2g ) { msg $active .:!!Got To Go!!:. | halt }
elseif ( $1- == fu ) { msg $active .:!![censored] You!!:. | halt }
elseif ( $1- == ds ) { msg $active .:!!Ѐåd|¥-§îñ!!:. | halt }
elseif ( $1- == lol ) { msg $active .:!!Laughing Out Loud!!:. | halt }
elseif ( $1- == brb ) { msg $active .:!!Be Right Back!!:. | halt }
elseif ( $1- == bbl ) { msg $active .:!!Be Back Later!!:. | halt }
elseif ( $1- == bbiab ) { msg $active .:!!Be Back In A Bit!!:. | halt }
elseif ( $1- == l8r ) { msg $active .:!!Later!!:. | halt }
elseif ( $1- == rofl ) { msg $active .:!!Rolling On Floor Laughing!!:. | halt }
elseif ( $1- == roflmao ) { msg $active .:!!Rolling On Floor Laughing My Ass Off!!:. | halt }
elseif ( $1- == pff ) { msg $active .:!!Pffffffff!!:. | halt }
elseif ( $1- == lo ) { msg $active .:!!Lo!!:. | halt }
elseif ( $1- == hi ) { msg $active .:!!Hi!!:. | halt }
elseif ( $1- == hey ) { msg $active .:!!Hey!!:. | halt }
elseif ( $1- == sup ) { msg $active .:!!Sup!!:. | halt }
elseif ( $1- == hmm ) { msg $active .:!!Hmmmmmmmm!!:. | halt }
elseif ( $1- == omg ) { msg $active .:!!Oh My God!!:. | halt }
elseif ( $1- == nvm ) { msg $active .:!!Never Mind!!:. | halt }
elseif ( $1- == nm ) { msg $active .:!!Nuttin Much!!:. | halt }
elseif ( $1- == gg ) { msg $active .:!!Good Game!!:. | halt }
elseif ( $1- == jok ) { msg $active .:!!Joking!!:. | halt }
elseif ( $1- == jj ) { msg $active .:!!Just Joking!!:. | halt }
elseif ( $1- == jk ) { msg $active .:!!Just Kidding!!:. | halt }
elseif ( $1- == hehe ) { msg $active .:!!HeHe!!:. | halt }
elseif ( $1- == haha ) { msg $active .:!!HaHa!!:. | halt }
elseif ( $1- == cya ) { msg $active .:!!Cya!!:. | halt }
elseif ( $1- == ? ) { msg $active .:!!????!!:. | halt }
elseif ( $1- == fgi ) { msg $active .:!!Forget It!!:. | halt }
:end
}

wot the problem is, is that when i say 1 of em like lol i wont show laugh out loud can u help me plz confused

Edited out the "offensive" lines.

Last edited by Hammer; 27/08/03 01:13 AM.

IRC (Idiots Relay Chat) :tongue:

{]TDN[}Deadly-Sin
#44321 27/08/03 01:20 AM
Joined: Feb 2003
Posts: 79
A
Babel fish
Offline
Babel fish
A
Joined: Feb 2003
Posts: 79
Try one, or any, of these ideas

use IF
change $1- to $1
notice ur using halt, maybe u are sending it, ur just halting the default echo into your window, maybe ur not...just a thought

#44322 27/08/03 01:24 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
if ( $1 == np ) { msg $active .:!!No Problem!!:. | goto end }
elseif ( $1 == ty ) { msg $active .:!!Thank You!!:. | goto end }
elseif ( $1 == g2g ) { msg $active .:!!Got To Go!!:. | goto end }


try that instead.. didnt want to change every line so i just took the first ones.. smirk

Last edited by sparta; 27/08/03 01:25 AM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#44323 27/08/03 01:30 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:
on *:INPUT:*:{
  if /* iswm $1 { return }
  if     $1 == lol { say .:!!Laughing Out Loud!!:. $2- | halt }
  elseif $1 == np  { say .:!!No Problem!!:.        $2- | halt }
  elseif $1 == ty  { say .:!!Thank You!!:.         $2- | halt }
  elseif $1 == g2g { say .:!!Got To Go!!:.         $2- | halt }
}



DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#44324 27/08/03 04:28 AM
Joined: Mar 2003
Posts: 27
Q
Ameglian cow
Offline
Ameglian cow
Q
Joined: Mar 2003
Posts: 27
on 1:INPUT:* {
if ( $1 == np ) msg $active .:!!No Problem!!:.
elseif ( $1 == ty ) msg $active .:!!Thank You!!:.
elseif ( $1 == g2g ) msg $active .:!!Got To Go!!:.
elseif ( $1 == fu ) msg $active .:!![censored] You!!:.
elseif ( $1 == ds ) msg $active .:!!Ѐåd|¥-§îñ!!:.
...
elseif ( $1 == fgi ) msg $active .:!!Forget It!!:.
else return
halt
}

The 'else return' will let all other text "fall through" to the standard parser, letting the stuff that was caught go on to the "halt" at the end.


* Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another
#44325 27/08/03 12:43 PM
Joined: Aug 2003
Posts: 73
D
Babel fish
OP Offline
Babel fish
D
Joined: Aug 2003
Posts: 73
Thx all


IRC (Idiots Relay Chat) :tongue:

{]TDN[}Deadly-Sin

Link Copied to Clipboard