Duration NL

Platform:  mIRC
Published  Oct 16, 2008
Updated  Oct 16, 2008
Dit script werkt hetzelfde als het in mirc ingebouwde $duration(12345) script...
Het enige verschil is dat dit een door mij gemaakte nederlandse versie ervan is!
Je typt gewoon in je script $duratie(12345) in en je hebt het effect alleen dan dus nl.
Helemaal toppie voor bijvoorbeeld een nederlands away-systeem!!! :D
Dit script hoort thuis in je ALIASES!

This script is just the same as the $duration alias. This script has the only difference that it is in dutch language! it works with away systems and more. Just change $duration(.....) in $duratie(....)
This script belongs in your ALIASES

©Patatje-oorlog Designs duratie {
var %duratie $strip($1)
var %wekencalc $calc(%duratie / 604800)
if ($gettok(%wekencalc,1,46) == 0) { var %weken 0 } | else { var %weken $gettok(%wekencalc,1,46) | dec %duratie $calc(%weken * 604800) }
var %dagencalc $calc(%duratie / 86400)
if ($gettok(%dagencalc,1,46) == 0) { var %dagen 0 } | else { var %dagen $gettok(%dagencalc,1,46) | dec %duratie $calc(%dagen * 86400) }
var %urencalc $calc(%duratie / 3600)
if ($gettok(%urencalc,1,46) == 0) { var %uren 0 } | else { var %uren $gettok(%urencalc,1,46) | dec %duratie $calc(%uren * 3600) }
var %minutencalc $calc(%duratie / 60)
if ($gettok(%minutencalc,1,46) == 0) { var %minuten 0 } | else { var %minuten $gettok(%minutencalc,1,46) | dec %duratie $calc(%minuten * 60) }
var %seconden %duratie
return $iif((%weken != 0),$iif((%weken == 1),%weken $+ week,%weken $+ weken)) $iif((%dagen != 0),$iif((%dagen == 1),%dagen $+ dag,%dagen $+ dagen)) $iif((%uren != 0),$iif((%uren == 1),%uren $+ uur,%uren $+ uren)) $iif((%minuten != 0),$iif((%minuten == 1),%minuten $+ minuut,%minuten $+ minuten)) $iif((%seconden != 0),$iif((%seconden == 1),%seconden $+ seconde,%seconden $+ seconden))
}

Comments

Sign in to comment.
Patatje-oorlog   -  Oct 17, 2008
I tried, but it didn't work for me :)

And my version works also perfect.. if i want, i can edit months / years either ;)
 Respond  
Typo   -  Oct 17, 2008
Not bad.
I was wondering why you didnt try something like this?

Code

 

That was made to go in remotes btw.
 Respond  
Patatje-oorlog   -  Oct 16, 2008
will do that mountain :)

Gona test it and after that i will edit it here ;)

Thx
 Respond  
mountaindew   -  Oct 16, 2008
Use /var instead of /set so the vars are local.
 Respond  
Undercover   -  Oct 16, 2008
GRUWELIJK je ding whaha
ik had hem al voor dat hij hierstond XD whaaaaaaaaaaaa
 Respond  
Patatje-oorlog   -  Oct 16, 2008
Not really true...

Is has indeed the same effect as the $duration alias, but this script is Dutch.
Because i and some other people we're looking for it, and because we couldn't find one, i decided to make 1 my own ;)

the alias $duration doesn't work here. this will give the original mirc english duration
the alias $duratie does ;)
 Respond  
^Neptune   -  Oct 16, 2008
Rought translation of the topic:

Quote


This script works the same as the one in mIRC
The only difference is that this one was made by me
In this version you just type $duration(12345) and you have the same effect
This script belongs in aliases.


Haven't tested it though.
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.