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 

Trigger text to User

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


Joined: 19 May 2008
Posts: 101

PostPosted: Wed Dec 17, 2008 6:12 am    Post subject: Trigger text to User Reply with quote

Hello. I am looking for a script that send a text to a user.
e.g.: !help nicki
output: nicki heresometext

Thanks for the help
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Wed Dec 17, 2008 6:50 am    Post subject: Reply with quote

Code:

bind pub - !help text_proc

proc text_proc { nick uhost hand chan arg } {
        set nniicckk [lindex [split $arg] 0]
        if {[onchan $nniicckk $chan]} {
                putquick "PRIVMSG $chan :$nniicckk heresometext"
        }
}

putlog "whatever.tcl loaded"


? ? ;p
Back to top
View user's profile Send private message Visit poster's website
Fraud
Op


Joined: 19 May 2008
Posts: 101

PostPosted: Wed Dec 17, 2008 9:06 am    Post subject: Reply with quote

Thank u. so if i would implement all together 4 triggers? do i have to repeat this always or is there a easier way?!
Thanks
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Wed Dec 17, 2008 9:17 am    Post subject: Reply with quote

here is a "event to proc":
Code:
bind pub - !help text_proc


in the easiest way:
bind pub - <command from chan> <proc_for_this_command>

but after binding the proc, u can parse data from $arg,
in $arg landing all data which is after !help trigger, !help <arg0> <arg1> <arg2> <argN>

etc etc, its a long story, read some tutorial about TCL and eggdrop, there is all what u need Smile

TCL commands manual:
8.4 - http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm
8.5 - http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm
eggdrop procs, commands - http://www.eggheads.org/support/egghtml/1.6.17/tcl-commands.html

And many other tutorials step by step around the google Razz

cheers
Back to top
View user's profile Send private message Visit poster's website
Fraud
Op


Joined: 19 May 2008
Posts: 101

PostPosted: Wed Dec 17, 2008 10:29 am    Post subject: Reply with quote

Well tomekk. thats why i am in request not in help, I have no clue how to
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Wed Dec 17, 2008 10:53 am    Post subject: Reply with quote

yeah cool, just a hint ^^
Back to top
View user's profile Send private message Visit poster's website
Fraud
Op


Joined: 19 May 2008
Posts: 101

PostPosted: Wed Dec 17, 2008 11:36 am    Post subject: Reply with quote

Du bist ja n held.
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