mIRC Home    About    Download    Register    News    Help

Print Thread
#161864 12/10/06 03:43 AM
Joined: Jun 2006
Posts: 29
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Jun 2006
Posts: 29
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


{noiprocs-hunky-scorpion}
#161865 12/10/06 04:01 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Did you mean you want to get 0:00 if the time is 22:00? Sorry, I don't quite get your post.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#161866 12/10/06 04:09 AM
Joined: Jun 2006
Posts: 29
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Jun 2006
Posts: 29
Yes you are smart guy smile sorry about my english !


{noiprocs-hunky-scorpion}
#161867 12/10/06 04:21 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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

#161868 12/10/06 04:30 AM
Joined: Jun 2006
Posts: 29
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Jun 2006
Posts: 29
RusselB you are the best tx m8 laugh


{noiprocs-hunky-scorpion}
#161869 12/10/06 09:53 PM
Joined: Jun 2006
Posts: 29
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Jun 2006
Posts: 29
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 !


{noiprocs-hunky-scorpion}
#161870 13/10/06 12:06 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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)
}
 


Link Copied to Clipboard