mIRC Home    About    Download    Register    News    Help

Print Thread
#122755 14/06/05 10:35 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
hey guys just wondering how i would get this script to say the test test test on the word chocolate,brb,garbonzo when it is typed in a sentence ,right now it is only working if it is the only word typed...but not when typed as " i like chocolate"....thanks for the help ....

on *:text:chocolate:#my channel name here: {

if ($$1 == chocolate) { msg $chan 3test test test
}
elseif ($$1 ==brb ) { msg $chan 3test test test
}
elseif ($$1 ==garbonzo) { msg $chan 12test test test
}
.
.
}

sry for not being to swift today!!lol thanks for the help once again.

#122756 14/06/05 10:53 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Heres the start of the problem on *:text:chocolate:#my channel name here: { < that only ever activates when someone says "chocolate"

on *:text:*chocolate*:#channel: { msg.testx3 }
on *:text:*brb*:#channel: { msg.testx3 }
on *:text:*garbonzo*:#channel: { msg.testx3 }
alias -l msg.testx3 { msg $chan 3test test test }

* this by no means is ment to be the only or even best way to do it.

#122757 20/06/05 03:58 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
ok thanks,i waited to see if anyone else had anything better but you were the only one to try and help me,so thank you..and i did use your code and it suits the purpose,thanks again.


Link Copied to Clipboard