egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

private msg triggers

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Skajaquada
Voice


Joined: 13 Feb 2008
Posts: 9

PostPosted: Wed Feb 13, 2008 2:06 am    Post subject: private msg triggers Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Feb 13, 2008 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Skajaquada
Voice


Joined: 13 Feb 2008
Posts: 9

PostPosted: Wed Feb 13, 2008 3:07 am    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Feb 13, 2008 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Skajaquada
Voice


Joined: 13 Feb 2008
Posts: 9

PostPosted: Fri Feb 15, 2008 2:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Feb 15, 2008 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skajaquada
Voice


Joined: 13 Feb 2008
Posts: 9

PostPosted: Fri Feb 15, 2008 2:59 pm    Post subject: Reply with quote

the proc name would be like above...."triggerproc"
I bet thats why. it needs to be like helpproc and idlerpgproc
Thanks Smile

and yeah, i did a full restart
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber