06-06-2020, 02:57 +0200
Forum: Overvieweggdrophelp
from mrc file to tcl
AuthorPost
raco0n  10-24-2006, 14:29   | help to convert
Member since 10/2006
10 Posts
pls somebody convert this mrc line to tcl:
                                                                                                                              
1
on *[b]:action:[/b]* cm *:#: msg #channel $nick text: $1-

thommey  10-24-2006, 15:34   Jabber
(Administrator)
Member since 03/2004
62 Posts
                                                                                                                              
1
2
3
4
5
6
bind ctcp - ACTION someaction
proc someaction {nick host hand dest key text} {
    if {[string match {* cm *} $text]} {
        putserv "PRIVMSG #channel :$nick text: $text"
    }
}

raco0n  10-24-2006, 16:28  
Member since 10/2006
10 Posts
thnx  :red:  ;-)
raco0n  10-25-2006, 08:52  
Member since 10/2006
10 Posts
pls convert and this line:
                                                                                                                              
1
on *[b][b]:text:[/b][/b]* cm *:#: msg #channel $nick text: $1-

shroud10-25-2006, 09:12  
(Guest)
Maybe you should learn eggdrop tcl scripting? Read 'tcl-commands.doc' for a command reference (e.g. bind types).

Regards,
shroud
CyBex  10-25-2006, 09:15   Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin
please use the Checkbox "[ ] Disable basic formatting" when you reply..
Every wildcard pair gets convertet to Bold ATM..

If you would like to learn something about TCL read these guides:
http://www.suninet.org/tclguide/
http://resource.tcl.tk/scripting/syntax.html
http://johoho.eggheads.org/eggdrop/other/guide2tcl.html

if you have further questions ask here [ #tcl ]

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
raco0n  10-25-2006, 11:39  
Member since 10/2006
10 Posts
CyBex sorry but i'm to stupid to undarstand
                                                                                                                              
1
2
please use the Checkbox "[ ] Disable basic formatting" when you reply..
Every wildcard pair gets convertet to Bold ATM..

  can you write the code? pls  :-(  :-/
This post was edited 1 times, last on 10-25-2006, 13:20 by raco0n
CyBex  10-25-2006, 14:08   Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin
Here is a Picture from the Forum software:
[Not loaded: http://cybex.b0rk.de/files/basic.jpg]

With basic formatting, you conver *text* to test and _test_ to test..

I can write, but can you try it yourself? its similar to thommeys first example..  and your example is broken...

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
raco0n  10-25-2006, 15:55  
Member since 10/2006
10 Posts
CyBex tryning till yesterday, but i can't finish it  :-(  help pls
thommey  10-25-2006, 16:04   Jabber
(Administrator)
Member since 03/2004
62 Posts
please show us then what you got so far
raco0n  10-25-2006, 16:38  
Member since 10/2006
10 Posts
I think I have to change this line
                                                                                                                              
1
proc someaction {nick host hand dest key text} {

and I where downloading scripts and trying to change it,but it's doesnt work  :-/  I tryed to change that line
                                                                                                                              
1
2
proc someaction {nick host hand chan key text} {
    proc someaction {nick host hand chan dest key text} {

and many more.. but...  :-(  :'(

                                                                                                                              
1
on *:text:* cm *:#: msg #kanalas $nick Textas: $1-

This post was edited 1 times, last on 10-25-2006, 17:04 by raco0n
CyBex  10-25-2006, 17:00   Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin
you must only exchange little things from thommeys first example.. and please post all lines and not only a proc header... its very simple..

hint: look at bind pubm

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
raco0n  10-25-2006, 22:03  
Member since 10/2006
10 Posts
CyBex thnx for hint. Thats helped me a lot. I'm done it.  My whonted process is working!!!!  :-)    :finger:   :-D
raco0n  10-26-2006, 09:43  
Member since 10/2006
10 Posts
another problem :-(
                                                                                                                              
1
2
3
4
5
6
bind ctcp - ACTION someaction
proc someaction {nick host hand dest key text} {
    if {[string match {* cm *} $text]} {
        putserv "PRIVMSG #channel :$nick text: $text"
    }
}

when word "cm" is writed "CM" this script doesnt work  :-( what can I do?
This post was edited 1 times, last on 10-26-2006, 09:57 by raco0n
CyBex  10-26-2006, 10:11   Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin
string match supports -nocase..  manuals reading can be fine...

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
raco0n  11-22-2006, 18:42  
Member since 10/2006
10 Posts
thnx
This post was edited 1 times, last on 11-22-2006, 18:45 by raco0n
CyBex  11-22-2006, 18:45   Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin
please dont repeat... look up and read the manuals...

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 165.2 msec, CPU time: 85.3 msec, 63 Database queries in 115.4 msec | 5.5 kB (48.7 kB) | Timezone: +0200