botlending forum  

Go Back   botlending forum > Eggdrop & TCL > Tcl scripting

Tcl scripting Tcl scripting related questions

Reply
 
LinkBack Thread Tools Display Modes
Old 12-08-2004, 22:35   #1 (permalink)
Senior Member
 
GoRaPiD's Avatar
 
Join Date: Jun 2004
Location: In pat cu avatarul meu
Age: 20
Posts: 256
Rep Power: 0
GoRaPiD is an unknown quantity at this point
Send a message via Yahoo to GoRaPiD
Exclamation modificare la Brb Respon

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"
  }
}
Cum trebuie modif ca sa raspunda si cand cuvintele sunt date cu ACTION si nu doar cu PRIMSG $chan cum raspunde acuma

P.S. vrei mai mult de lucru ca pot aduce ? :P
__________________
Forza RAPID ALE ALEEEEEEEEEEEEEEEEEEEEEEe
GoRaPiD is offline   Reply With Quote
Old 13-08-2004, 01:13   #2 (permalink)
Administrator

aka aqwzsx
 
Join Date: Jun 2004
Posts: 827
Blog Entries: 126
Rep Power: 3
UniversaliA is on a distinguished road
Default

Code:
 
bind ctcp -|- "ACTION" bind:act 
proc bind:act {nick uhost hand chan keyword arg} {
 
	 brb_speak $nick $uhost $hand $chan $arg
}

Last edited by UniversaliA; 14-08-2004 at 00:57.
UniversaliA is offline   Reply With Quote
Old 13-08-2004, 18:59   #3 (permalink)
Senior Member
 
GoRaPiD's Avatar
 
Join Date: Jun 2004
Location: In pat cu avatarul meu
Age: 20
Posts: 256
Rep Power: 0
GoRaPiD is an unknown quantity at this point
Send a message via Yahoo to GoRaPiD
Question

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
}
Intrebam daca se pune asa.
scriptu asta nu are treaba cu routines , ce legatura ar avea ?
__________________
Forza RAPID ALE ALEEEEEEEEEEEEEEEEEEEEEEe
GoRaPiD is offline   Reply With Quote
Old 13-08-2004, 20:57   #4 (permalink)
Administrator

aka aqwzsx
 
Join Date: Jun 2004
Posts: 827
Blog Entries: 126
Rep Power: 3
UniversaliA is on a distinguished road
Default

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
}
si il skimbi in
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.
UniversaliA is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT +3. The time now is 07:52.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.