01 Ekim 2013, 01:12
#1 Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
Game Konsol TCL
Daha önce sorunsuz çalışan TCL an itibari ile çalışmamakta.Sanırım ya site güncellendi yada kodlarda bir sıkıntı oluştu. İlgilenebilirseniz sevinirim. Kod: Kodu kopyalamak için üzerine çift tıklayın!
bind pub - !GameNew GameNew
proc GameNew {nick host hand chan arg} {
#(PS3)|(3DS)|(Nintendo DS)|(PC)|(PSP)|(Wii)|(Xbox 360)
set systems "(PS3)|(3DS)|(Nintendo DS)|(PC)|(PSP)|(Wii)|(Xbox 360)"
package require http
set url "http://vgreleases.com/ReleaseDates/Upcoming.aspx"
set page [http::data [http::geturl $url]]
set z 0
putserv "PRIVMSG $chan :Next 10 games comming out"
while {$z < 10 && [regexp -line {b>(.*?)<\/b><\/a>.*?">(.*?)<} $page a game system]} {
regexp -line {b>(.*?)<\/b><\/a>.*?">(.*?)<} $page a game system
regexp -line {;'>(.*?)</span></b>} $page d date
regsub -line {b>(.*?)<\/b><\/a>.*?">(.*?)<} $page "" page
regsub -line {;'>(.*?)</span></b>} $page "" page
if {[regexp $system $systems]} {
if { [expr { [clock scan $date] - [clock scan seconds] }] > 0} {
putserv "PRIVMSG $chan :-$game $system - $date"
incr z
}
}
}
}