mIRC Homepage
Posted By: noiprocs Time - 12/10/06 03:43 AM
hi ppl. ! thets agan me smile i need agan lil help ! Its in posible or not here
is a script
Code:
 on *:TEXT:!time:#:{
  msg $chan The time is $time(h:nn tt)
} 
i need som like put in script ho show time not from my pc but lil diferent som like that !


If i tape in chanel command !time Then my bot says my pc time and if
time at that momment is 22:00 PM cen i mix something in script and get 0:00
at that momment not enimore 22:00 but 0:00 ? confused
Posted By: xDaeMoN Re: Time - 12/10/06 04:01 AM
Did you mean you want to get 0:00 if the time is 22:00? Sorry, I don't quite get your post.
Posted By: noiprocs Re: Time - 12/10/06 04:09 AM
Yes you are smart guy smile sorry about my english !
Posted By: RusselB Re: Time - 12/10/06 04:21 AM
add two hours to your current time
Code:
 on *:text:!time:#:{
.msg $chan $iif($len($calc($left($time,2) + 2)) = 1,$+(0,$calc($left($time,2) + 2),$mid($time,3)))
}
 

I know it looks complicated, but I wasn't able to find an easier method that worked
Posted By: noiprocs Re: Time - 12/10/06 04:30 AM
RusselB you are the best tx m8 laugh
Posted By: noiprocs Re: Time - 12/10/06 09:53 PM
Yes but here is one problem to day that script dont show enymore time just my text The time ir = and thats it nothing enlse !
Posted By: RusselB Re: Time - 13/10/06 12:06 AM
Found a simpler method that works, and (shouldn't) cause any problems.
Code:
 on *:text:!time:#:{
  .msg $chan $asctime($calc($ctime + $duration(2 hrs)),HH:nn)
}
 
© mIRC Discussion Forums