Kod: Kodu kopyalamak için üzerine çift tıklayın!
on *:text:!temizle:#: {
if ($nick isop $chan) {
if $read(takim.txt,w,$+($2,$chr(11),*)) {
if be* iswm $gettok($read(takim.txt,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlebjk }
elseif *fe* iswm $gettok($read(takim.txt,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlefb }
elseif *ga* iswm $gettok($read(takim.txt,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlegs }
elseif *tra* iswm $gettok($read(takim.txt,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlets }
else { .timer 50 0 msg $chan $chr(3) | .timer 1 2 msg $chan Kanal temizlenmistir. }
}
}
}
Selam bu üsteki kod mirc botlar için çalışıyor ben socket için yapmaya çalıştım acaba nerde yanlışlık yapıyorum benim yapmaya çalıştıgım kod aşagıdaki gibi dir.Bu kodu nasıl calıstırabilirim.
Kod: Kodu kopyalamak için üzerine çift tıklayın!
if $right($4,-1) == !temizle || $right($4,-1) == .temizle || $right($4,-1) == .clear || $right($4,-1) == !clear || $right($4,-1) == !sil || $right($4,-1) == .sil {
if ($ybul($3,$_nick($1)) == $true) {
if $read(hash/takim.sr,w,$+($2,$chr(11),*)) {
if be* iswm $gettok($read(hash/takim.sr,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlebjk }
elseif *fe* iswm $gettok($read(hash/takim.sr,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlefb }
elseif *ga* iswm $gettok($read(hash/takim.sr,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlegs }
elseif *tra* iswm $gettok($read(hash/takim.sr,w,$+ $2 $+ *),2,32)) { set %temizchan $chan | temizlets }
else { .timer 50 0 swbot privmsg $chan $chr(3) | .timer 1 2 swbot privmsg $chan Kanal temizlenmistir. }
}
}
}
alias temizlets {
.timer 50 00 swbot privmsg %temizchan 5,5Trabzonn
}
alias temizlefb {
.timer 50 00 swbot privmsg %temizchan 2,2Fenerbahçe
}
alias temizlebjk {
.timer 50 00 swbot privmsg %temizchan 1,1Beşiktaş
}
alias temizlegs {
.timer 50 00 swbot privmsg %temizchan 4,4Galatasaray
}
alias temizlenormal {
.timer 50 00 swbot privmsg %temizchan
}