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/)
-   -   Away İle İlgili (https://www.ircforumlari.net/mirc-scripting-sorunlari/29962-away-ile-ilgili.html)

r0ck 09 Nisan 2007 13:52

Away İle İlgili
 
Bir userda görmüştüm,awaydan döndükten sonra return mesajında away olus saati yazıyordu.
Away add-on'uma nasıl bir code eklesem bunu gerçekleştirebilirim?Yardımcı olursanız sevinirim.

el33t 09 Nisan 2007 14:07

Cevap: Away İle İlgili
 
$awaytime identiferı sana ne kadar süredir away olduğunu gösterecektir.

Awayden dönerken hangi kodu kullanıyorsan onun içinde awayden dönüşünü duyuran mesajı | away komutundan önce alıp içine de $awaytime 'ı koyarsan ne kadar süredir away olduğunu gösterecektir. Sen ne zaman away olduğunu öğrenmek istersen de $time($calc($ctime - $awaytime)) kullanabilirsin. Yani:

$awaytime - kaç saniyedir away olduğunu gösterir.
$calc($ctime - $awaytime) şimdiki zamandan kaç saniyedir away olduğunu çıkarır böylece ne zaman away olduğunu gösterir. Yanına $time() ekleyerek saat şeklinde bunu alırız.

$awaytime identifierı sadece sen awayken çalışacağı için awayden dönüş kodunda /away komutundan önce kullanmalısın.

Umarım anlamışsındır...

r0ck 10 Nisan 2007 09:43

Yanıt: Away İle İlgili
 
alias back {
backchk | var %s, %l = $convert($pxasys.get(msg,format2)), %i = $pxasys.get(options,n0) | :s | if ($left($1,1) == -) { if ($1 == -m) { %s = $dialog(pxasys.back,pxasys.back) | tokenize 32 %s | goto s } | elseif ($1 == -r) { if (!$cancel($1-)) addh2 -r | %s = $2- | tokenize 32 %s | goto s } | elseif ($1 == -g) { var %g = 1 | %s = $2- | tokenize 32 %s | goto s } | elseif ($left($1,2) == -c) && ($right($1,1) isnum) { var %_id = $ifmatch | %s = $2- | tokenize 32 %s | goto s } | elseif ($1 == -o) { var %o = 1 | %s = $2- | tokenize 32 %s | goto s } | elseif ($1 == -q) || ($gettok(%i,1,44)) %s = $2- | else { pxasys.echo Invalid switch(es). | return } } | if (!%s) %s = $iif($1 && $left($1,1) != -,$1-,$pxasys.get(msg,return)) | if (%s === CANCEL) return | addh2 %s
var %id = 1 | while ($scon(%id)) { if (!$gettok(%i,29,44)) && (!%g) %id = $cid | if (%_id) %id = %_id | if ($scon(%id).status == connected) { scon %id | if (!$server) goto l | if (!$a) { if (!%o) pxasys.echo You were not away. ( $+ $network $+ ) | goto l } | if (!$pxasys.get(msg,time [ $+ [ %id ] ] )) goto l | $iif($1 != -q && !$gettok(%i,1,44),$iif($gettok(%l,1,32) == /me,ame,amsg) $replace($gettok(%l,2-,32),@msg,%s,@logging,$iif($gettok(%i,13,44),On,Of f),@pager,$iif($gettok(%i,2,44),On,Off),@duration, $duration($iif($pxasys.get(msg,time [ $+ [ %id ] ] ),$calc($ctime - $ifmatch),0)),@time,$asctime(HH:nn:ss))) | .quote away | if (($gettok(%i,12,44)) && ($gettok(%i,7,44))) .timerpxasysreop 1 3 .signal pxasys_reop %id | if ($pxasys.get(msg,nick [ $+ [ %id ] ] )) { nick $ifmatch | pxasys.set msg nick [ $+ [ %id ] ] } | /hopla | $calc($ctime - $awaytime) $time() |pxasys.set msg time [ $+ [ %id ] ]
pxasys.set options pagenicks [ $+ [ %id ] ] | pxasys.set options prompt [ $+ [ %id ] ] } | :l | $iif(!$gettok(%i,29,44) && !%g || %_id,break,inc %id) } | if ($gettok(%i,13,44)) && ($findfile($pxasys.logdir,*.log,0)) && ($pxasys.get(options,logs)) { pxasys.echo -at Messages logged while away: $ifmatch | pxasys.echo -t Type $+(",$comchar(away) -logs,") without the quotes to view them. | pxasys.set options logs } | if (!$pxasys.numini(msg,time)) repeat -off | pxasys.resetidle -f
}

Bu şekilde birşey yaptım ama olmadı.sanırım senı yanlıs anladım.bu code uzerınde gosterırsenız sevınırım.
Kolay gelsın


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

Powered by vBulletin® Version 3.8.8 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2024 IRCForumlari.Net