![]() |
|
|||||||
| Tcl scripting Tcl scripting related questions |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Senior Member
|
Code:
## Brb ##
set Reponden4.v "Brb Respon"
bind pub - brb brb_speak
bind pub - away brb_speak
set ranbrb {
"unde te duci ?"
"si eu, tre sa fumez o tigara!"
"cand te intorci ? deja imi e dor de tine! ;)"
"vrei sa te brb ? bine , dar nu sta mult, am nevoie de tine iubire"
}
proc brb_speak {nick uhost hand chan text} {
global botnick brb_chans ranbrb
if {(([lsearch -exact [string tolower $brb_chans] [string tolower $chan]] != -1) || ($brb_chans == "*"))} {
set brbs [lindex $ranbrb [rand [llength $ranbrb]]]
putserv "PRIVMSG $chan :$nick $brbs"
}
}
![]() P.S. vrei mai mult de lucru ca pot aduce ? :P
__________________
Forza RAPID ALE ALEEEEEEEEEEEEEEEEEEEEEEe |
|
|
|
|
|
#3 (permalink) |
|
Senior Member
|
Code:
## Brb ##
set Reponden4.v "Brb Respon"
bind pub - brb brb_speak
bind pub - away brb_speak
set ranbrb {
"unde te duci ?"
"si eu, tre sa fumez o tigara!"
"cand te intorci ? deja imi e dor de tine! ;)"
"vrei sa te brb ? bine , dar nu sta mult, am nevoie de tine iubire"
}
proc brb_speak {nick uhost hand chan text} {
global botnick brb_chans ranbrb
if {(([lsearch -exact [string tolower $brb_chans] [string tolower $chan]] != -1) || ($brb_chans == "*"))} {
set brbs [lindex $ranbrb [rand [llength $ranbrb]]]
putserv "PRIVMSG $chan :$nick $brbs"
}
}
bind ctcp -|- "ACTION" bind:act
proc bind:act {nick uhost hand chan keyword arg} {
proc brb_speak $nick $uhost $hand $chan $text
}
scriptu asta nu are treaba cu routines , ce legatura ar avea ?
__________________
Forza RAPID ALE ALEEEEEEEEEEEEEEEEEEEEEEe |
|
|
|
|
|
#4 (permalink) |
|
Administrator
aka aqwzsx |
E ok sa pui asa. Cat la routines, am menitonat din motiv ca poti face altfel.
Gasesti in yx_2__routines.tcl procesul: Code:
proc bind:act {nick uhost hand dest keyword arg} {
global username
set chan $dest
if {[botisop $chan] || ![check:fo:ch $hand $chan $nick]} {
if { [chan:check $chan antinotice]} { newchanban $chan *!${uhost} $username "channel antinotice protection enabled" [channel get $chan ban-time] sticky}}
bind:pubm $nick $uhost $hand $chan $arg
bind:nick $nick $uhost $hand $chan $arg
}
Code:
proc bind:act {nick uhost hand dest keyword arg} {
global username
set chan $dest
if {[botisop $chan] || ![check:fo:ch $hand $chan $nick]} {
if { [chan:check $chan antinotice]} { newchanban $chan *!${uhost} $username "channel antinotice protection enabled" [channel get $chan ban-time] sticky}}
bind:pubm $nick $uhost $hand $chan $arg
bind:nick $nick $uhost $hand $chan $arg
brb_speak $nick $uhost $hand $chan $arg
}
Last edited by UniversaliA; 14-08-2004 at 00:58. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Modify script] modificare la chan join/part | Freezed | Tcl scripting | 7 | 19-05-2005 16:38 |
| modificare la .next | Muzikan | Tcl scripting | 3 | 02-03-2005 11:55 |
| modificare nivelului de access | GoRaPiD | a&a light script | 3 | 06-08-2004 02:07 |