IRCForumu.Net - Türkiye'nin IRC ve mIRC Kullanıcılarının Buluştuğu Forum

IRCForumu.Net - Türkiye'nin IRC ve mIRC Kullanıcılarının Buluştuğu Forum (https://www.ircforumu.net/)
-   TCL Scriptler (https://www.ircforumu.net/tcl-scriptler/)
-   -   Eggdrop oyun skor temizle (https://www.ircforumu.net/tcl-scriptler/2626-eggdrop-oyun-skor-temizle.html)

immortaL 29 Haziran 2016 17:53

Eggdrop oyun skor temizle
 
Büyük sunucularda genel olarak her bölümün bir sorumlusu vardır. Ve her ayın 1’inde yada sonlarında skorlar sıfırlanır. Yeri gelir telnet sorumlusu online olmadığı için sıfırlama yapılamaz. Bu vermiş olduğum tcl ile telnet sorumlusuna gerek kalmadan kanal founderiniz istediği zaman skor’u sıfırlayabilir.


Kod:

set skortemizle(pass) "sifremdensanane"
set skortemizle(kanal) "#Oyun"

bind msg - .skortemizle skor:temizlet
proc skor:temizlet {nick uhost hand text} {
  global botnick skortemizle
  set parola "[lindex $text 0]"
  if {[string match -nocase "" $parola]} {
    putquick "PRIVMSG $nick :Hata: Bu komutu uygulamak için parolayı girmeniz gerekmektedir."
  }
  if {![string match -nocase "" $parola] && ![string match -nocase "$skortemizle(pass)" $parola]} {
    putquick "PRIVMSG $nick :Hata: Belirtmiş olduğunuz parola doğru değildir."
  }
  if {![string match -nocase "" $parola] && [string match -nocase "$skortemizle(pass)" $parola]} {
    set file(open) [open "scripts/oyun.scores" "w"]
    close $file(open)
    putquick "PRIVMSG $nick Tebrikler: Parolayı doğru girdiniz, SKOR tablosu tarafınızca sıfırlanmıştır."
    putquick "PRIVMSG $skortemizle(kanal) :Oyun skor tablosu sıfırlanmıştır."
  }
}

putlog "Oyun Eklenti TCL yüklendi."



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 12:52.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright ©2005 - 2023 IRCForumu.Net - Tüm Hakları Saklıdır.