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 

Cricket Ball To Ball Tcl
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
CuteBangla
Halfop


Joined: 27 Feb 2006
Posts: 58
Location: Dhaka, Bangladesh

PostPosted: Sun Apr 16, 2006 6:39 am    Post subject: Reply with quote

& 1 more think
i think u love cricket verry much as i also love ..
& im badly trying to open a new server only for cricket commentary & other sports stuff
so its an offer from my side for yu if u want then you even can join with me Very Happy
i ill be verry much happy if we can work together

& right now also i have a server
CuteBangla

you can check it if you want
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Apr 16, 2006 6:56 pm    Post subject: Reply with quote

CuteBangla wrote:
if you still need that then ok give ur mail address

The whole point of forums (this one in particular) is sharing! Using code tags post your code so others that may be interested can also use it.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
CuteBangla
Halfop


Joined: 27 Feb 2006
Posts: 58
Location: Dhaka, Bangladesh

PostPosted: Mon Apr 17, 2006 12:10 am    Post subject: Re Alchera Reply with quote

well Alchera
i told him sevaral time that im useing a verry simple relay script
& there are thousends o relasy script over this forum
thats why i feeled that mayb not paste it r not is not a big deal

i even shared !score script also & topcs relay TOPICS RELAY
also
so its a funny thing that im not sharing

what ever
here is the code i use

Code:

set clink_botnicks {"JiN0" "NihARikA"}

set clink_onchan(#cricket@CuteBangla) "NihARikA"
set clink_onchan(#Cricinfo@StarLink) "JiN0"
set clink_onchan(#bangladeshcricket@StarLink) "JiN0"

set clink_relayto(#Cricinfo@StarLink) {"#cricket@CuteBangla"}
set clink_relayto(#bangladeshcricket@StarLink) {"#cricket@CuteBangla"}

set clink_usecolor 1

set clink_relaynet 0

set clink_add {4,1Live Cricket Commentary By CuteBangla }

set clink_charmsgs {"[4" "]12"}

bind pubm - * clink_chanpubm
bind topc - * clink_topc
bind bot - clink clink_botdat

# Colors settings (Default: mIRC style)
if {$clink_usecolor == 1} {
   set clink_color(pubm) ""
   set clink_color(topc) ""
} else {
        set clink_color(pubm) ""
     set clink_color(topc) ""
}
# Done

# Check current configuration
if {${botnet-nick} == ""} {
   set {botnet-nick} $nick
   putlog "Cricket.tcl: Warning: botnet-nick not defined in .conf file, using \"$nick\"."
}
if {[lsearch $clink_botnicks ${botnet-nick}] == -1} {
   die "Cricket.tcl: Fatal: Bot \"${botnet-nick}\" not defined in clink_botnicks. Please edit Cricket.tcl and check your configuration."
}
if {$network == "unknown-net"} {
   putlog "Cricket.tcl: Warning: network not defined in .conf file, using \"unknown-net\"."
}
# Done

proc clink_botsend {chan param} {
   global clink_onchan {botnet-nick} network clink_relayto
   foreach clink_relaychan $clink_relayto($chan@$network) {
      if {[lsearch -exact [bots] $clink_onchan($clink_relaychan)] == -1} {
         putlog "Cricket.tcl: Warning: bot $clink_onchan($clink_relaychan) not linked."
      } else {
         putbot $clink_onchan($clink_relaychan) "clink $chan $network $param"
      }
   }
}
proc clink_chanpubm {nick uhost hand chan text} {
   global clink_onchan network
   if {[info exist clink_onchan($chan@$network)]} {
      clink_botsend $chan [concat "pubm" [clink_cleannick $nick] $text]
   }
}
proc clink_botdat {bot clink param} {
   global clink_relaynet clink_color clink_charmsgs clink_relayto clink_add network
   if {$clink_relaynet == 1} {
      set clink_network "\[[lindex $param 1]\] "
   } else {
      set clink_network ""
   }
   if {[lrange $param 5 end] != ""} {
      set reason "\([lrange $param 5 end]\)"
   } else {
      set reason ""
   }
   set clink_destchan [lindex [split [lindex $clink_relayto([lindex $param 0]@[lindex $param 1]) [lsearch -glob $clink_relayto([lindex $param 0]@[lindex $param 1]) "*@$network"]] @] 0]
   switch [lindex $param 2] {
      pubm   { putserv "PRIVMSG $clink_destchan :$clink_network$clink_color(pubm)[lindex $clink_charmsgs 0][lindex $param 3][lindex $clink_charmsgs 1] [lrange $param 4 end]" }
      topc   { putserv "NOTICE $clink_destchan :$clink_network$clink_color(topc)[lindex $clink_charmsgs 0][lindex $clink_add][lindex $clink_charmsgs 1] [lrange $param 4 end]" }
      default { die "Cricket.tcl: Warning: unknown action type \"[lindex $param 2]\" for [lindex $param 0]." }
   }
}
proc clink_cleannick {nick} {
   if {[string range $nick 0 0] == "\{"} {
      set nick "\\$nick"
   }
        return $nick
}

proc clink_topc {nick uhost hand chan text} {
   global clink_onchan network
   if {[info exist clink_onchan($chan@$network)]} {
      clink_botsend $chan [concat "topc" [clink_cleannick $nick] $text]
   }
}

putlog "Loaded Relay Script for Cricket: Sumit Awal"



Alchera wrote:

The whole point of forums (this one in particular) is sharing! Using code tags post your code so others that may be interested can also use it.

_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
NiGHtWoLF
Voice


Joined: 18 Mar 2007
Posts: 1

PostPosted: Sun Mar 18, 2007 6:58 am    Post subject: Reply with quote

hmmm ..
but how can this script get the commentry ?!
there's no WEB add on here :S !
can u brief Cutebangla plz Smile ..
Back to top
View user's profile Send private message
CuteBangla
Halfop


Joined: 27 Feb 2006
Posts: 58
Location: Dhaka, Bangladesh

PostPosted: Sun Mar 18, 2007 7:09 am    Post subject: Reply with quote

well still right now iam useing some relay script to relay commentary from cricinfo channel to my own channel.
you can use any normal relay script for this and if you need source channel then you can use my channel also
irc://irc.cutebangla.com:6667/cricket

you also can use rss script for this but its hard to get rss feed of cricinfo's commentary


NiGHtWoLF wrote:
hmmm ..
but how can this script get the commentry ?!
there's no WEB add on here :S !
can u brief Cutebangla plz Smile ..

_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sun Mar 18, 2007 12:01 pm    Post subject: Reply with quote

NiGHtWoLF wrote:
hmmm ..
but how can this script get the commentry ?!
there's no WEB add on here :S !
can u brief Cutebangla plz Smile ..



Well there is a network called Starlink: irc.cricket.org and the channel is #Cricket the official channel for http://www.cricinfo.com/ (World's No: 1 Cricket website). They play Live Ball-by-Ball Cricket Commentary of each match. This is the best source for any guy to show Cricket Live at his Network. So the tcl he pasted will have 2 bots, 1 will be at Starlink and the other will at any xyz network. Both will be connected and when there is a match, it's on .. Bingo!.
Back to top
View user's profile Send private message Visit poster's website
CuteBangla
Halfop


Joined: 27 Feb 2006
Posts: 58
Location: Dhaka, Bangladesh

PostPosted: Sun Sep 16, 2007 3:42 pm    Post subject: Reply with quote

iamdeath wrote:

Well there is a network called Starlink: irc.cricket.org and the channel is #Cricket the official channel for http://www.cricinfo.com/ (World's No: 1 Cricket website). They play Live Ball-by-Ball Cricket Commentary of each match. This is the best source for any guy to show Cricket Live at his Network. So the tcl he pasted will have 2 bots, 1 will be at Starlink and the other will at any xyz network. Both will be connected and when there is a match, it's on .. Bingo!.


iamdeath but how do u use to color nick with diffrent colors afor diffrent matches and "how do you make BOLD in FOUR or SIX or OUT."

iamdeath i know you did it in yours
hope you will share it as an OP status User of this forum and one of the most oldest user of this forum
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Sep 16, 2007 6:21 pm    Post subject: Reply with quote

Colour and formatting codes
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
CuteBangla
Halfop


Joined: 27 Feb 2006
Posts: 58
Location: Dhaka, Bangladesh

PostPosted: Mon Sep 17, 2007 1:19 am    Post subject: Reply with quote

Alchera wrote:
Colour and formatting codes


Alchera, its not about Colour and formatting codes, i was talking about iamdeath's channel relay script where some Special word use to have different or some words got changed and if 1st Nick shows blue in color then 2nd maybe green when relaying. iamdeath use that script in #cricket channel of dal and Undernet also :p
isnt it sir?
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Tue Sep 18, 2007 3:34 am    Post subject: Reply with quote

CuteBangla wrote:
iamdeath wrote:

Well there is a network called Starlink: irc.cricket.org and the channel is #Cricket the official channel for http://www.cricinfo.com/ (World's No: 1 Cricket website). They play Live Ball-by-Ball Cricket Commentary of each match. This is the best source for any guy to show Cricket Live at his Network. So the tcl he pasted will have 2 bots, 1 will be at Starlink and the other will at any xyz network. Both will be connected and when there is a match, it's on .. Bingo!.


iamdeath but how do u use to color nick with diffrent colors afor diffrent matches and "how do you make BOLD in FOUR or SIX or OUT."

iamdeath i know you did it in yours
hope you will share it as an OP status User of this forum and one of the most oldest user of this forum


Well I'd love to do that for you, but I will not share my Live Cricket commentary Code with anyone.

Yes my script has some special features, it changes the nickname with color codes, six fours are used in colors and I am using score from the website not feeds. So if you guys need help I can help you but cant share my code.

Thanks
iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Sep 18, 2007 3:59 am    Post subject: Reply with quote

CuteBangla wrote:
iamdeath's channel relay script where some Special word use to have different or some words got changed


Sounds like fairly simple string mapping and maybe some counting to increment which color is being used..
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Sep 18, 2007 8:57 am    Post subject: Reply with quote

iamdeath wrote:
but I will not share my Live Cricket commentary Code with anyone.

Do you know the concept of Open Source at all?
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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