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/)
-   -   Kısa kod (https://www.ircforumlari.net/mirc-scripting-sorunlari/926388-kisa-kod.html)

dre 20 Temmuz 2021 21:24

Kısa kod
 
Kod:

on *:input:#: { if $1 == !ekle { chanserv access $chan add $2 $3 } }
on *:input:#: { if $1 == !voys { mode $chan +v $2 $3 } }
on *:input:#: { if $1 == .dvoys { mode $chan -v $2  } }
on *:input:#: { if $1 == !half  { mode $chan +h $2  } }
on *:input:#: { if $1 == .dhalf { mode #chan -h $2 } }
on *:input:#: { if $1 == !ow { mode #chan +q $2  } }
on *:input:#: { if $1 == .dow { mode #chan -q $2  } }

bunları neden çalıştıramadım? nerede eksiğim var?

Toprak 20 Temmuz 2021 21:33

Cevap: Kısa kod
 
Tek bir event altında toparlayabilirdiniz.

Kod:

on *:input:#: { if $1 == !ekle { chanserv access $chan add $2 $3 } }
on *:input:#: { if $1 == !voys { mode $chan +v $2 $3 } }
on *:input:#: { if $1 == .dvoys { mode $chan -v $2  } }
on *:input:#: { if $1 == !half  { mode $chan +h $2  } }

Bu kısımlarda sorun yok, !ekle nick seviye gibi çalışır..

Kod:

on *:input:#: { if $1 == .dhalf { mode #chan -h $2 } }
on *:input:#: { if $1 == !ow { mode #chan +q $2  } }
on *:input:#: { if $1 == .dow { mode #chan -q $2  } }

Bu kısımda da #chan yapmışsınız ondan dolayı çalışmıyor, $chan yada # olarak kullanabilirsiniz 2 side aktif kanalı verir. Ayrıca input eventi sadece sizin yazdıklarınızda işler..

Örnek
Kod:

on *:input:#:{
  if ($1 == !ekle) && $3 { chanserv access # add $2 $3 }
  elseif ($1 == !voys) && $2 { mode # +v $2 }
  elseif ($1 == !dvoys) && $2 { mode # -v $2 }
  elseif ($1 == !half) && $2 { mode # +h $2 }
  elseif ($1 == !dhalf) && $2 { mode # -h $2 }
}


dre 21 Temmuz 2021 14:08

Cevap: Kısa kod
 
Alıntı:

Toprak Nickli Üyeden Alıntı (Mesaj 1042512943)
Tek bir event altında toparlayabilirdiniz.

Kod:

on *:input:#: { if $1 == !ekle { chanserv access $chan add $2 $3 } }
on *:input:#: { if $1 == !voys { mode $chan +v $2 $3 } }
on *:input:#: { if $1 == .dvoys { mode $chan -v $2  } }
on *:input:#: { if $1 == !half  { mode $chan +h $2  } }

Bu kısımlarda sorun yok, !ekle nick seviye gibi çalışır..

Kod:

on *:input:#: { if $1 == .dhalf { mode #chan -h $2 } }
on *:input:#: { if $1 == !ow { mode #chan +q $2  } }
on *:input:#: { if $1 == .dow { mode #chan -q $2  } }

Bu kısımda da #chan yapmışsınız ondan dolayı çalışmıyor, $chan yada # olarak kullanabilirsiniz 2 side aktif kanalı verir. Ayrıca input eventi sadece sizin yazdıklarınızda işler..

Örnek
Kod:

on *:input:#:{
  if ($1 == !ekle) && $3 { chanserv access # add $2 $3 }
  elseif ($1 == !voys) && $2 { mode # +v $2 }
  elseif ($1 == !dvoys) && $2 { mode # -v $2 }
  elseif ($1 == !half) && $2 { mode # +h $2 }
  elseif ($1 == !dhalf) && $2 { mode # -h $2 }
}


teşekkür ederim


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

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