IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   mIRC Scripting Sorunları (https://www.ircforumlari.net/mirc-scripting-sorunlari/)
-   -   remote code'lerin durumu. (https://www.ircforumlari.net/mirc-scripting-sorunlari/182523-remote-codelerin-durumu.html)

QkLa 24 Şubat 2009 05:35

remote code'lerin durumu.
 
Bot'umda bulunan code'leri komutla acip kapatabilmek icin asagidaki sekilde code kullaniyorum.kanalda QkLa !Rapor yazdiginda code'lerin acik yada kapali olduklarini bot kanala siralayabilirmi.

on *:text:*:#: {
if ($nick isop $chan) {
if $1 == !kufurac {
if $group(#kufur) == off {
enable #kufur
msg $chan kufur korumas? aç?lm??t?r.
halt
}
else {
msg $chan kufur korumas? zaten aç?k.
halt
}
}
if $1 == !kufurkapat {
if $group(#kufur) == on {
disable #kufur
msg $chan kufur korumas? kapat?lm??t?r.
halt
}
else {
msg $chan kufur korumas? zaten kapal?.
halt
}
}
}
}
ornegin:

QkLa : !Rapor
Bot :kufurkoruma aktif
Bot :renkkoruma aktif
Bot :deopkoruma pasif

vs..

RackweLL 24 Şubat 2009 06:08

Cevap: remote code'lerin durumu.
 
PHP- Kodu:

alias ufuks 
  var %
i 1
  
while (%<= $Group(0)) { 
    var %
t $group(%i)
    echo -
%t $group(%t).status
    inc 
%i
  
}
}

on *:text:*:#: { 
if ($== !rapor) { /ufuks }


Scriptteki bütün gruopsları otomatik olarak algılayacak, durumlarını tek komutla kanala yansıtacaktır.
Kullanımı: /ufuks

Editor 24 Şubat 2009 06:15

Cevap: remote code'lerin durumu.
 
Kod:

on *:text:*:#: {
  if ($nick isop $chan) {
    if $1 == !kufurac {
      if $group(#kufur) == off {
        enable #kufur
        msg $chan kufur korumas? aç?lm??t?r.
        halt
      }
      else {
        msg $chan kufur korumas? zaten aç?k.
        halt
      }
    }
    if $1 == !kufurkapat {
      if $group(#kufur) == on {
        disable #kufur
        msg $chan kufur korumas? kapat?lm??t?r.
        halt
      }
      else {
        msg $chan kufur korumas? zaten kapal?.
        halt
      }
    }
    if $1 == !durum {
      msg $chan Küfür Koruması : $group(#kufur)
      halt
    }
  }
}

#kufur off
Buraya Küfür koruması eklersin.
#kufur end



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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk