Top

Duration NL


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Oct 16, 2008
Last Updated  Oct 16, 2008
Tags  away  counter  duratie  duration  irc  mirc  tijd  time 

Introduction

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

Grab the Code

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

  (7)  RSS
^Neptune
Comments: 598
 
mIRC Snippet:  Duration NL
Posted on Oct 16, 2008 11:25 am
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.
Patatje-oorlog
Comments: 19
 
mIRC Snippet:  Duration NL
Posted on Oct 16, 2008 11:38 am
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 ;)
Undercover
Comments: 4
 
mIRC Snippet:  Duration NL
Posted on Oct 16, 2008 1:22 pm
GRUWELIJK je ding whaha
ik had hem al voor dat hij hierstond XD whaaaaaaaaaaaa
mountaindew
Comments: 1,826
 
mIRC Snippet:  Duration NL
Posted on Oct 16, 2008 1:54 pm
Use /var instead of /set so the vars are local.
Patatje-oorlog
Comments: 19
 
mIRC Snippet:  Duration NL
Posted on Oct 16, 2008 2:05 pm
will do that mountain :)

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

Thx
Typo
Comments: 224
 
mIRC Snippet:  Duration NL
Posted on Oct 17, 2008 4:03 am
Not bad.
I was wondering why you didnt try something like this?
Code:
alias duratie { return $replace($duration($strip($1)),wk,week,weeks,weken,day,dag,dags,dagen,hr,uur,uurs,uren,min,minuut,minuuts,minuten,sec,seconde,secondes,seconden) }

That was made to go in remotes btw.
Patatje-oorlog
Comments: 19
 
mIRC Snippet:  Duration NL
Posted on Oct 17, 2008 10:57 am
I tried, but it didn't work for me :)

And my version works also perfect.. if i want, i can edit months / years either ;)

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom