mIRC Homepage
Posted By: brad2 help with script please - 16/02/03 07:26 PM
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
Posted By: gerdigos Re: help with script please - 16/02/03 07:29 PM
$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
Posted By: Collective Re: help with script please - 16/02/03 07:31 PM
Code:
on *:INPUT:*:{
  say $reptok($1-,lol,LOL,32)
  halt
}

Will say replace "lol" anywhere in the sentence.
Posted By: gerdigos Re: help with script please - 16/02/03 07:38 PM
Right, replacing the token would be better! Thanks Collective
(I might need to use this code too smile )
Posted By: The_Game Re: help with script please - 16/02/03 09:18 PM
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?
Posted By: Collective Re: help with script please - 16/02/03 09:33 PM
on TEXT is triggered when someone else says something, that isn't what he asked for.
Posted By: The_Game Re: help with script please - 16/02/03 09:38 PM
Well [censored]! /me stays after school for detention!

MY BAD! LOL
Posted By: acemiles_ed Re: help with script please - 16/02/03 10:10 PM
But changing it to ON INPUT would work wink
© mIRC Discussion Forums