| View previous topic :: View next topic |
| Author |
Message |
Skajaquada Voice
Joined: 13 Feb 2008 Posts: 9
|
Posted: Wed Feb 13, 2008 2:06 am Post subject: private msg triggers |
|
|
I need something similar to a help script but done entirely in private msg. no channel commands. I also need the responses to be timed maybe 2 or 3 seconds.
Thanks in advance! |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Feb 13, 2008 2:50 am Post subject: |
|
|
Should be fairly easy using the msg or msgm bind to get input and using puthelp for output should prevent it from tripping sanely set flood protections.
You may want to consider providing some example of input and output for what you want. |
|
| Back to top |
|
 |
Skajaquada Voice
Joined: 13 Feb 2008 Posts: 9
|
Posted: Wed Feb 13, 2008 3:07 am Post subject: |
|
|
bind msg - !help triggerproc
proc triggerproc {nick uhost hand chan text} {
puthelp "PRIVMSG $nick :Bla bla bla I'm helping."
##timer somewhere here. i dont know how
puthelp "PRIVMSG $nick :Bla bla bla I'm helping more."
} |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Feb 13, 2008 11:16 am Post subject: |
|
|
Something like this?
Delays the second message by roughly 3secs.
| Code: | bind msg - !help triggerproc
proc triggerproc {nick uhost hand text} {
puthelp "PRIVMSG $nick :Bla bla bla I'm helping."
utimer 3 [list puthelp "PRIVMSG $nick :Bla bla bla I'm helping more."]
} |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Skajaquada Voice
Joined: 13 Feb 2008 Posts: 9
|
Posted: Fri Feb 15, 2008 2:03 pm Post subject: |
|
|
Thanks.
I have another question. I tried making more than one trigger in one tcl file and they sort of bled together when i ran the trigger. So I tried splitting them up into different tcl files and it did the same thing, now I deleted all but one of those files and for some reason the deleted triggers still make the other script respond.
Example, when I run the !idlerpglogin trigger, it would run both my !help and !idlerpglogin scripts.
(Note: I didnt actually delete the files from the shell, i just took it out of the config file so it wouldnt load) |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Feb 15, 2008 2:20 pm Post subject: |
|
|
1st: did you use different proc-names for each proc/trigger?
2nd: did you "only" do a .rehash, or a full restart (.rehash will only re-read the configfile, without clearing any registered procs, bindings, settings, etc first)? _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Skajaquada Voice
Joined: 13 Feb 2008 Posts: 9
|
Posted: Fri Feb 15, 2008 2:59 pm Post subject: |
|
|
the proc name would be like above...."triggerproc"
I bet thats why. it needs to be like helpproc and idlerpgproc
Thanks
and yeah, i did a full restart |
|
| Back to top |
|
 |
|