This is so f**ked up
// NPC made by Rob Getashu
timereverywhere;
if (playerenters) {
// Get Times Here!
this.day = int(timevar/288)%256;
this.hours = (int(timevar/12)%12);
this.hour = (this.hours%12)+1;
this.ampm = int(timevar/144)%2;
this.minute = int(timevar/.2)%60;
if (strlen(#v(this.minute))<2) {
setstring mins,0#v(this.minute);
} else {
setstring mins,#v(this.minute);
timeout=0.05;
}
}
if (strlen(#v(this.hour))<0&&strlen(#v(this.hour))>1& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.19;
}
if (strlen(#v(this.hour))<1&&strlen(#v(this.hour))>2& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.29;
}
if (strlen(#v(this.hour))<2&&strlen(#v(this.hour))>3& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.39;
}
if (strlen(#v(this.hour))<3&&strlen(#v(this.hour))>4& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.49;
}
if (strlen(#v(this.hour))<4&&strlen(#v(this.hour))>5& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.59;
}
if (strlen(#v(this.hour))<5&&strlen(#v(this.hour))>6& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.25,0.25,0.20,0.19;
}
if (strlen(#v(this.hour))<6&&strlen(#v(this.hour))>7& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.75,0.85,0.70,0.99;
}
if (strlen(#v(this.hour))<7&&strlen(#v(this.hour))>8& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,0,0,0;
}
if (strlen(#v(this.hour))<8&&strlen(#v(this.hour))>9& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,0,1,0.99;
}
if (strlen(#v(this.hour))<9&&strlen(#v(this.hour))>10 &&strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,1,0,0.99;
}
timeout=0.05; |