mIRC Home    About    Download    Register    News    Help

Print Thread
Help me Calculate Date script #239223 03/10/12 02:44 PM
Joined: Oct 2012
Posts: 1
P
Putra Offline OP
Mostly harmless
OP Offline
Mostly harmless
P
Joined: Oct 2012
Posts: 1
Can someone give me script for calculate date

example now
dd/mm/yyyy = 03/10/2012


time ban
when i type @ban <nick> <day>

he will time-ban that <nick> for <day>
and then will auto-unbanned

thanks

Last edited by Putra; 03/10/12 02:45 PM.
Re: Help me Calculate Date script [Re: Putra] #239258 05/10/12 12:33 PM
Joined: Dec 2010
Posts: 23
N
NufSaid Offline
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2010
Posts: 23
ban are usualy set in seconds so a day will = 86440
are you trying to get it to respond to @ban if so then you need to set up a alias i can help if ya let me know what you want it to do
@ban needs to be set as a alias and so does day
example for ban for 1 day
/ban -ku86400 # $$1 4You have been Ban for 1 Day
thats used in a remote script
or manuel ban= /ban -ku86400 #channel nicknamehere You have been Ban for 1 Day
PS when the ban is set for 1 day " 86400" the timer auto starts the count down to remove it
but to have it react to @ban nick day it will have to be scripted to pick up on that easy to do

Last edited by NufSaid; 05/10/12 12:55 PM.
Re: Help me Calculate Date script [Re: Putra] #239259 05/10/12 01:04 PM
Joined: Dec 2010
Posts: 23
N
NufSaid Offline
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2010
Posts: 23
like
on ^*:TEXT:@ban*:#:{
if ($nick isop #) && ($3 == day)
/ban -ku86400 # $2 4You have been Ban for 1 Day
the timer will auto start the countdown to remove it in 86400 sec which = 1 day 24 hours
just set up alias for different remarks least i would
that can be loaded in remote so when you type @ban nick day
it will set a ban for 1 day and auto remove it
we can go deeper if ya want the complete script let me know
are you can reach me on irc.star-fleet.net channel #tmd nick Ace

Last edited by NufSaid; 05/10/12 01:13 PM.