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/)
-   -   Saat ayarlı alias çekme (https://www.ircforumlari.net/mirc-scripting-sorunlari/767895-saat-ayarli-alias-cekme.html)

BlackForce 04 Şubat 2017 21:25

Saat ayarlı alias çekme
 
Merhabalar arkadaşlar, ben bir alias'ı bot düşse tekrar bağlansa bile otomatik 00.00.00'da çalıştırmak istiyorum..
Bunun için komut verebilir misiniz?

Mesela
PHP- Kodu:

/timer 14:30 1 1 /test 

gibi birşey çalışır mı acaba? Yoksa bir timer'ı sonsuz döngü ile $time == 00:00:00 şeklinde mi kontrol ettirmeliyim sürekli?

aLone 04 Şubat 2017 23:53

Cevap: Saat ayarlı alias çekme
 
Kod:

on *:connect:{ .timerx 0 1 kont }
alias kont {
  if $time == 00:00:00 { /test }
}

sunucuya bağlandığında, her sanıye kont aliasını herekete gecırır.
kont aliasında saat 00:00:00 oldugunda /test komutunu harekete gecırır.
istediğin boyle birseyse tabıkı

Feragat 05 Şubat 2017 00:47

Cevap: Saat ayarlı alias çekme
 
Alıntı:

BlackForce Nickli Üyeden Alıntı (Mesaj 1041840825)
Merhabalar arkadaşlar, ben bir alias'ı bot düşse tekrar bağlansa bile otomatik 00.00.00'da çalıştırmak istiyorum..
Bunun için komut verebilir misiniz?

Mesela
PHP- Kodu:

/timer 14:30 1 1 /test 

gibi birşey çalışır mı acaba? Yoksa bir timer'ı sonsuz döngü ile $time == 00:00:00 şeklinde mi kontrol ettirmeliyim sürekli?

/timer komutunda -o parametresini de kullanabilirsin.

Disconnect/Connect olunsa bile timer çalışacaktır.

Örnek:
Kod:

//timer -o 00:00 1 10 /test
Faydalı bir kaç kaynak:
-
1- [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
2- [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]


mirc.chm /timer komutu açıklaması
-

[BOX="Timer komutu"]/timer[N/name] [-cdeomhipr] [time] <repetitions> <interval> <command>

Activates the specified timer to perform the specified command at a specified interval, and optionally at a specified time.



If you are not connected to a server and you start a timer, it defaults to being an offline timer which means it will continue to run whether you are connected to a server or not.



If you are connected to a server and you start a timer, it defaults to being an online timer, which means that if you disconnect from the server, it will be turned off. You can specify the -o switch to force it to be an offline timer.



/timer1 0 20 /ame is AWAY!



Timer1 will repeat an all channel action every 20 seconds until you stop the timer.



If you specify a delay of 0 seconds, the timer will trigger immediately after the calling script ends.



/timer5 10 60 /msg #games For more info on the latest games do /msg GaMeBoT info



Timer5 will repeat this message to channel #games every sixty seconds and stop after 10 times.



/timer9 14:30 1 1 /say It's now 2:30pm



This will wait until 2:30pm and will then announce the time once and stop.



To see a list of active timers type /timers. To see the setting for timer1 type /timer1. To deactivate timer1 type /timer1 off. To deactivate all timers type /timers off. If you are activating a new timer you do not need to specify the timer number, just use:



/timer 10 20 /ame I'm not here!



And mIRC will allocate the first free timer it finds to this command.



If you specify the -c switch, this makes mIRC "catch up" a timer by executing it more than once during one interval if the real-time interval isn't matching your requested interval.



If you specify the -m or -h switch, this indicates that the interval delay is in milliseconds.



Note: The -h switch creates a high-resolution multimedia timer. This type of timer should only be used in critical timer situations since it uses system resources heavily.



The -d switch ensures that a timer and any subsequent timers using the -d switch are triggered in that order.



If you specify the -e switch, this executes the command associated with the specified timer name, also works if you specify a wildcard name.



The $ltimer identifier returns the number of the timer that was just started by the /timer command.



Instead of using a number you can also specify a name for a timer.



/timershow 0 10 echo -a $nick $server $time



You can force identifiers to be re-evaluated when used in a /timer command by using the format $!me or $!time.



If you wish to turn off a range of timers, you can use a wildcard for the number, for example:



/timer3? off



Will turn off all timers from 30 to 39.



The -pr switches pause and resume a timer respectively.



The -i switch makes a timer dynamically associate with whatever happens to be the active connection. If a server window is closed, the timer is associated with the next available server window.
[/BOX]

BlackForce 06 Şubat 2017 14:50

Cevap: Saat ayarlı alias çekme
 
Alıntı:

aLone Nickli Üyeden Alıntı (Mesaj 1041840840)
Kod:

on *:connect:{ .timerx 0 1 kont }
alias kont {
  if $time == 00:00:00 { /test }
}

sunucuya bağlandığında, her sanıye kont aliasını herekete gecırır.
kont aliasında saat 00:00:00 oldugunda /test komutunu harekete gecırır.
istediğin boyle birseyse tabıkı

Aynen öyle fakat böyle kontrol'e tabii tuttuğumuz zaman kaçırabiliyor hocam. Fakat haftalık olarak deneyeceğim zaman böyle yapmam gerekecek galiba. Yorumunuz için teşekkür ederim.

Alıntı:

Feragat Nickli Üyeden Alıntı (Mesaj 1041840845)
/timer komutunda -o parametresini de kullanabilirsin.

Disconnect/Connect olunsa bile timer çalışacaktır.

Örnek:
Kod:

//timer -o 00:00 1 10 /test
Faydalı bir kaç kaynak:
-
1- [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
2- [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]


mirc.chm /timer komutu açıklaması
-

Düşündüğüm gibi hocam, aynen saat verdiğimiz zaman da çalışıyor..

Bunu haftalık olarak kontrol ettirme imkanımız var mı?

@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] 'nin verdiği
Kod:

alias kont {
  if $time == 00:00:00 && $date == 12/12/12 { /test }
}

Gibi bir alias mı kullanmalıyız bunun başka bir yolu var mı?
@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] - @[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
Zaman ayırdığınız için minnettarım.


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 07: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