mIRC Home    About    Download    Register    News    Help

Print Thread
#11543 16/02/03 07:26 PM
Joined: Feb 2003
Posts: 48
B
brad2 Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Feb 2003
Posts: 48
I made an "acronym" script, but i cant get it to work the way i want it to. All it does is makes 'lol' into ' LOL' . It will only do it if that is the only thing i type, or the first thing in a sentence.... i.e. "lol that was funny" would be "LOL that was funny" but if i type "that was funny lol" it wont change anything.

on 1:input:*:{
IF ($1 == lol) { SAY LOL | HALT }
}

HELP PLEASE.. thanks

#11544 16/02/03 07:29 PM
Joined: Feb 2003
Posts: 76
G
Babel fish
Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
$1 holds the first word... use $1- instead, which holds everything after the command. Also use isin instead.
Code:
 on 1:input:*: { 
if (lol isin $1-) { 
say LOL
halt
 } 
}
 


Try this out. smirk

#11545 16/02/03 07:31 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on *:INPUT:*:{
  say $reptok($1-,lol,LOL,32)
  halt
}

Will say replace "lol" anywhere in the sentence.

#11546 16/02/03 07:38 PM
Joined: Feb 2003
Posts: 76
G
Babel fish
Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
Right, replacing the token would be better! Thanks Collective
(I might need to use this code too smile )

#11547 16/02/03 09:18 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Heres a cheap and easy way of doing it

on 1*:TEXT:*lol*:#channel:/msg $chan LOL
}


or

on 1*:TEXT:*lol*:#channel:/msg $chan Laughing Out Loud!
}


when i say cheap and easy i really mean it anyways is this something similar to what you wanted or did I not follow something?

#11548 16/02/03 09:33 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
on TEXT is triggered when someone else says something, that isn't what he asked for.

#11549 16/02/03 09:38 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Well [censored]! /me stays after school for detention!

MY BAD! LOL

#11550 16/02/03 10:10 PM
Joined: Dec 2002
Posts: 83
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
But changing it to ON INPUT would work wink


Link Copied to Clipboard