mIRC Homepage
Posted By: Putra Help me Calculate Date script - 03/10/12 02:44 PM
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
Posted By: NufSaid Re: Help me Calculate Date script - 05/10/12 12:33 PM
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
Posted By: NufSaid Re: Help me Calculate Date script - 05/10/12 01:04 PM
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
© mIRC Discussion Forums