| View previous topic :: View next topic |
| Author |
Message |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Fri Jul 14, 2006 10:11 am Post subject: Help with multi responce pleease |
|
|
Ok I need a script that give a different responce on a public trigger..
I tried this..
| Code: |
bind pub "!test" test
proc test {nick uhost hand chan args} {
putquick "privmsg $chan :test1"\
"test2" }
|
Obviously didn't work caue im now here
Any suggestions please  _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Jul 14, 2006 4:29 pm Post subject: |
|
|
1. Don't use args, use arg or any other name but args.
2. I'm not sure what you're talking about, you need to be clear if you expect help  |
|
| Back to top |
|
 |
shag Voice
Joined: 13 Jul 2006 Posts: 3
|
Posted: Fri Jul 14, 2006 4:34 pm Post subject: |
|
|
| if you mean something like a random quote, there are many scripts in the archive as well as on the forum already. |
|
| Back to top |
|
 |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Sun Jul 16, 2006 4:40 pm Post subject: yeah... |
|
|
But im trying to write my own, it only needs to be basic..
Metroid, what i want is when i do say.. !m00
the bot replys with either
<bot> m001
or
<bot> m002
sorry i wernt clear last time, been a long day  _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Jul 16, 2006 8:58 pm Post subject: |
|
|
| Code: |
bind pub - !mytrigger someproc
proc someproc {nick uhost hand chan text} {
set somerandomstrings {
{string one here}
{string two yadda yadda}
{string three yippee}
}
set randomstring [lindex $somerandomstrings [rand [llength $somerandomstrings]]]
puthelp "PRIVMSG $chan :$randomstring"
}
|
|
|
| Back to top |
|
 |
|