This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

private msg triggers

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Skajaquada
Voice
Posts: 9
Joined: Wed Feb 13, 2008 2:03 am

private msg triggers

Post by Skajaquada »

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!
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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.
S
Skajaquada
Voice
Posts: 9
Joined: Wed Feb 13, 2008 2:03 am

Post by Skajaquada »

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."

}
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Something like this?
Delays the second message by roughly 3secs.

Code: Select all

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
S
Skajaquada
Voice
Posts: 9
Joined: Wed Feb 13, 2008 2:03 am

Post by Skajaquada »

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)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
S
Skajaquada
Voice
Posts: 9
Joined: Wed Feb 13, 2008 2:03 am

Post by Skajaquada »

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
Post Reply