Alıntı:
DeLiKanLl Nickli Üyeden Alıntı
Daha doğrusu şöyle düzelteyim. Ben o kodu şuna çevirdim. Benim nickime Hoşgeldin diyene otomatik HooşbuLdum mesajı versin istiyorum. Ama büyük küçük harfi algılamıyor. Bana büyük küçük harf algılayacak kod lazım. Bu kodun olduğunu remoteye uyum sağlayacak. Şimdiden tşk ederim.
on *:text:hg Nick:#:{ /timer 1 3 /msg $chan $nick 12Ho$ 4BuLdum 12Teşekkür Ederim.. 4~~ }
on *:text:hsg Nick:#:{ /timer 1 3 /msg $chan $nick 12Ho$ 4BuLdum 12Teşekkür Ederim.. 4~~ }
on *:text:hosgeldin Nick:#:{ /timer 1 3 /msg $chan $nick 12Ho$ 4BuLdum 12Teşekkür Ederim.. 4~~ }
on *:text:hoşgeldin Nick:#:{ /timer 1 3 /msg $chan $nick 12Ho$ 4BuLdum 12Teşekkür Ederim.. 4~~ }
on *:text:hos geldin Nick:#:{ /timer 1 3 /msg $chan $nick 12Ho$ 4BuLdum 12Teşekkür Ederim.. 4~~ }
on *:text:hoş geldin Nick:#:{ /timer 1 3 /msg $chan $nick 12Ho$ 4BuLdum 12Teşekkür Ederim.. 4~~ }
on *:text:hşg Nick:#:{ /timer 1 3 /msg $chan $nick 12Ho$ 4BuLdum 12Teşekkür Ederim.. 4~~ } |
Bunun için de böyle her kelime için ayrı bir text eventi açmanıza gerek yok. Ayrıca teknik olarak 1 sayfa içerisin de 2. text eventi çalışmayacaktır. Mirc scripting kurallarından birisidir 1 sayfa içerisin de sadece 1 adet text eventi çalışır. Bütün varyasyonları tek event içerisin de hazırlamalısınız.
Örnek;
Kod
on *:text:*:#: { if regex[$1,/s\.a|se?la?m|me?rh?a?ba?/Si) { msg # selam $nick $+ , hoşgeldiniz. } | elseif $regex($1-/hoşgeldin\snickinburaya/Si) { msg # hoşbuldum $nick. } }
Kırmızı ile işaretlediğim nickinburaya yazısını silip kendi nickinizi yazın.
________________
Stay strong, trust your instincts.
Set your spirit free, never forget your spiritual side.
Even in the midst of hardships,
there is always a light to guide your way.