+ Reply to Thread
Results 1 to 6 of 6

Thread: comenzi !plata !service etc

  1. #1
    Junior Member UltraS99 is an unknown quantity at this point UltraS99's Avatar
    Join Date
    Dec 2004
    Location
    Cu mata in dormitor
    Age
    21
    Posts
    46
    Rep Power
    0

    Post comenzi !plata !service etc

    As dori si eu un tcl cu !plata !servici ...... pentru un canal de psybnc/..... imi poate da si mie cineva un tcl va rog frumos ca imi trebuie si mie

  2. #2
    TCB & Ratings projects Member, #Mythic representative arcade is on a distinguished road arcade's Avatar
    Join Date
    Jun 2004
    Location
    /dev/null
    Posts
    237
    Rep Power
    47

    Default

    am lucrat la ceva. E ff simplu dar ar trebui sa mearga.

    Code:
    ## aici setezi ce vrei sa zica cand se da pe canal comanda !psybnc
    set psybnc {
    "line 1"
    "line 2"
    }
    
    ## aici setezi ce vrei sa zica cand se da pe canal comanda !eggdrop
    set eggdrop {
    "line 1"
    "line 2"
    }
    
    ## aici setezi ce vrei sa zica cand se da pe canal comanda !shell
    set shell {
    "line 1"
    "line 2"
    }
    
    ## aici setezi ce vrei sa zica cand se da pe canal comanda !plata
    set plata {
    "line 1"
    "line 2"
    }
    
    
    ## aici setezi ce vrei sa zica cand se da pe canal cimanda !vhosts
    set vhosts {
    "line 1"
    "line 2"
    }
    
    ## aici setezi ce vrei sa zica cand se da pe canal comanda !contact
    set contact {
    "line 1"
    "line 2"
    }
    
    
    
    
    
    
    
    
    bind pub - !psybnc pub:psybnc
    proc pub:psybnc {nick uhost hand chan text} {
    global psybnc
    foreach line $psybnc { puthelp "NOTICE $nick :$line" }
    }
    
    bind pub - !eggdrop pub:eggdrop
    proc pub:eggdrop {nick uhost hand chan text} {
    global eggdrop
    foreach line $eggdrop { puthelp "NOTICE $nick :$line" }
    }
    
    bind pub - !shell pub:shell
    proc pub:shell {nick uhost hand chan text} {
    global shell
    foreach line $shell { puthelp "NOTICE $nick :$line" }
    }
    
    bind pub - !plata pub:plata
    proc pub:plata {nick uhost hand chan text} {
    global plata
    foreach line $plata { puthelp "NOTICE $nick :$line" }
    }
    
    
    bind pub - !vhosts pub:vhosts
    proc pub:vhosts {nick uhost hand chan text} {
    global vhosts
    foreach line $vhosts { puthelp "NOTICE $nick :$line" }
    }
    
    
    bind pub - !contact pub:contact
    proc pub:contact {nick uhost hand chan text} {
    global contact
    foreach line $contact { puthelp "NOTICE $nick :$line" }
    }

    daca apar probleme dai reply aci cu eroarea

    si cine se pricepe sa faca un antiflood il rog sa posteze k sa vad si eu cum se face si k sa nu riscam sa supunem botul lui UltraS99 la flood

  3. #3
    Member Kurupt will become famous soon enough Kurupt's Avatar
    Join Date
    Jun 2004
    Location
    Hermannstadt
    Age
    26
    Posts
    108
    Rep Power
    46

    Default

    arcade sper ca nu te superi daca iti dau niste sfaturi/tips
    E un script functional dar cu prea multe linii si prea multe lucruri in plus, ai putea face asa ceva folosind mult mai putine linii de cod.

    Citeste:
    http://www.tcl.tk/man/tcl8.5/TclCmd/array.htm

    Code:
        (6)  PUBM (stackable)
             bind pubm <flags> <mask> <proc>
             procname <nick> <user@host> <handle> <channel> <text>
    
             Description: just like MSGM, except it's triggered by things said
               on a channel instead of things /msg'd to the bot. The mask is
               matched against the channel name followed by the text and can
               contain wildcards. Also, if a line triggers a PUB bind, it will not
               trigger a PUBM bind.
             Module: irc
    Ai putea face un bind pubm - * proc
    si ai pune !commands !eggs la cuvinte keye

    P.S Nu am timp sa termin cod, dar o sa il pun in 2/3 zile.
    Owner of #ro-tcl

  4. #4
    Member Kurupt will become famous soon enough Kurupt's Avatar
    Join Date
    Jun 2004
    Location
    Hermannstadt
    Age
    26
    Posts
    108
    Rep Power
    46

    Default

    Aici:
    Code:
    ## $Id: prices.tcl, version 0.0 , ggdrop-1.6.x 2005 dpgc@purehype.net Exp $
    ## Author:   Kurupt                                    
    ## Info:     Will responde for some commands
    ## Thanks to:
    #            smart@UnderNet#ro-tcl     
    #
    ## Contact:  mail: dpgc@purehype.net    
    #            irc : #ro-tcl (on undernet)
    #            web : http://k.aitia.info
    
    
    ## START    
    
    # cuvintele
    
    # Variabile
    set price(psybnc) {
    "haribo macht kinder froh linie 1"
    "linie 2"
    }
    set price(eggdrop) {"haribo macht kinder froh linie 1"}
    set price(shell) {"haribo macht kinder froh linie 1"}
    set price(vhost) {"haribo macht kinder froh linie 1"}
    set price(plata) {"haribo macht kinder froh linie 1"}
    set price(contact) {"haribo macht kinder froh linie 1"}
    
    #seteaza cuvintele
    set price(1) "!psybnc"
    set price(2) "!eggdrop"
    set price(3) "!shell"
    set price(4) "!vhost"
    set price(5) "!plata"
    set price(6) "!contact"
    
    ## BINDS
    bind pub - $price(1) {price $price(psybnc)}
    bind pub - $price(2) {price $price(eggdrop)}
    bind pub - $price(3) {price $price(shell)}
    bind pub - $price(4) {price $price(vhost)}
    bind pub - $price(5) {price $price(plata)}
    bind pub - $price(6) {price $price(contact)}
    
    proc price {num nick uhost hand chan text} {
    foreach haribo $num {
    putmsg $chan "$haribo"
      }
    }
    
       
    putlog "price loaded"

    P.S. Nu am avut timp sa implementez flood protect, pentru bugs sau cereri postati aici,
    Last edited by Kurupt; 16-11-2006 at 18:50.
    Owner of #ro-tcl

  5. #5
    Junior Member UltraS99 is an unknown quantity at this point UltraS99's Avatar
    Join Date
    Dec 2004
    Location
    Cu mata in dormitor
    Age
    21
    Posts
    46
    Rep Power
    0

    Post

    Da cum face sa dea prin notice nu vreau sa dea msg pe canal vreau sa dea notice la acea persona care da comanda

  6. #6
    Member AdrianK is on a distinguished road
    Join Date
    Jun 2004
    Location
    Canada
    Age
    20
    Posts
    166
    Rep Power
    0

    Default

    Code:
     proc price {num nick uhost hand chan text} {
    putmsg $chan "$num"
      }
    inlocueshti cu
    Code:
     proc price {num nick uhost hand chan text} {
    puthelp "NOTICE $chan :$num"
      }

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sa Aduag ink 2 - 3 comenzi
    By Setting in forum Tcl scripting
    Replies: 1
    Last Post: 28-10-2008, 03:41
  2. Comenzi BOT
    By oxyg3n in forum a&a light script
    Replies: 10
    Last Post: 28-04-2006, 08:45
  3. ma intereseaza niste comenzi
    By solitare in forum #a&a
    Replies: 1
    Last Post: 26-01-2005, 16:12
  4. Replies: 9
    Last Post: 04-08-2004, 02:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts