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/)
-   -   ident,nick,host, doğrumu (https://www.ircforumlari.net/mirc-scripting-sorunlari/692071-identnickhost-dogrumu.html)

rewal 22 Nisan 2015 18:34

ident,nick,host, doğrumu
 
Kod:

#otobot on
on ! *:text:*:?:{
  if $read(123.txt,w,$nick) { return }
  if $read(muafident.txt,w,$site) { return }
  if $istok(rc.sunucu.org irc.sunucu2.com,$server,32) { return }
  if $regex($1-,/(slm)/i) { .timer  1 5  /msg $nick $read ...  }


Bu koda txt şeklinde muaf Host.. nick .. ident.. yapmak istiyorum. Nasıl devam etmeliyim.. nicklist için $nick ident için $site host için $.. ne olmalı . Tşk

KuL 22 Nisan 2015 19:29

Cevap: ident,nick,host, doğrumu
 
Öncelikle, otobot acmissin, ama sonunda #otobot end eksik. Kodun tamamini yazmadigin icin sanirim alti eksik geldi. Sadece haberin olsun diye demek istedim.

Host Kisimlarini .txt den mi okutacaksin bilmiyorum, ama genelde muaf tutulacak Hostlar az oldugu icin onlari .txt degil degilde direk regex ile muaf edebilirsin.

Örnek:

Kod:

if ($regex($address($nick,2),/(host1|host2|host3)/i)) { halt }
seklinde uzatabilirsin. Hostun icinde o kelime geciyorsa komut calismaz.

Toprak 22 Nisan 2015 21:22

Cevap: ident,nick,host, doğrumu
 
Nick;
Kod:

if $regex($nick,/^(nick|nick1|nick2)$/i) { return }
İdent;
Kod:

if $regex($token($token($address($nick,5),1,64),1,33),/^(ident|ident1|ident2)$/i) { return }
Host;
Kod:

if $regex($token($address($nick,5),2,64),/(host|host1|host2)/i) { return }
gibi ..

Ayrıca #otobot on değil #otobot off olıcak.

Yani;

Kod:

#otobot off
Kod vs. vs.
#otobot end



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

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