Thread: time
View Single Post
  #1  
Old 10-10-2005, 04:04 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
time

here's my current time/day/night script, I wanted to make it so it was more like real time, and possible modify it so it matched current time in real time. How would I do this?
NPC Code:
//#CLIENTSIDE
if(created||timeout){
this.seconds=timevar%60;
this.minutes=int(timevar/60)%60;
this.hours=int(timevar/3600)%24;
showimg 888,dr-hourglass.png,293,10;
showtext 889,316,10,Comic Sans,b,#v(this.hours):#v(this.minutes):#v (this.seconds);
changeimgvis 888,5;
changeimgvis 889,5;
changeimgzoom 888,.85;
if(this.hours==16) {
setbackpal dusk1.png;
}
if(this.hours==20){
setbackpal dusk3.png;
}
if(this.hours==24){
setbackpal dusk5.png;
}
if(this.hours==1) {
setbackpal dusk4.png;
}
if(this.hours==4) {
setbackpal dusk3.png;
}
if(this.hours==5) {
setbackpal dusk2.png;
}
if(this.hours==6) {
setbackpal pics1.png;
}
timeout=.05;

}

Reply With Quote