mIRC Home    About    Download    Register    News    Help

Print Thread
#142270 17/02/06 03:50 PM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2006
Posts: 31
on @*:join:#:{
set %chan $chan
.hinc -m Join $nick
.describe $chan welcomes $nick to $chan for the $ord($hget(Join,$nick)) time
.describe $chan notes that the current time is $time on $date
.hadd -m Join $+(Join.,$hget(Join,$nick)) $ctime
.describe # Notes that your last visit was at $asctime($hget(Join.,$calc($hget(Join,$nick) - 1)),hh:nn:ss tt) on $& $asctime($hget(Join.,$calc($hget(Join,$nick) - 1)),dd/mm/yyyy)
.mode $chan +v $nick
.msg $nick You have 30 seconds to enter the channel password here
$+(.timer,$nick) 1 30 password $chan $nick
}
on *:text:&:?:{
if $timer($nick) && ($1 === <PaSsWoRd>) {
$+(.timer,$nick) off
}
}alias password {
.ban -ku300 $1 $nick
.closemsg $nick
}
on *:start:{
if !$hget(Join) { .hmake Join 100 }
if $exists(Join.hsh) { .hload Join Join.hsh }
}
on *:exit:{
.hsave -o Join Join.hsh
}
on *:disconnect:{
.hsave -o Join Join.hsh
}

can someone fix this script it wont say the time when the usser last entert and when someone dont type the pass or type the wrong they dont get kickt and when somone type the pas wrong it need to say accses to #shadow denied
when the pas is good it need to say acces to #shadow granted

russelb made this script for me i tryd to edit the script to kick ppl but it wont work confused

Last edited by shadow007; 17/02/06 03:56 PM.

if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com
#142271 17/02/06 03:52 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You appear to have lost all of the linefeeds when you were copying code from the forums. Please copy the code again, paste it into wordpad, copy it from there and then paste it here.

#142272 17/02/06 03:57 PM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2006
Posts: 31
sry
i edit the post now you can see it :tongue:

can someone fix it now

Last edited by shadow007; 17/02/06 04:31 PM.

if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com
#142273 18/02/06 01:30 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Change the alias to
Code:
 alias password { 
.ban -ku300 $1 $2 
.closemsg $2 
} 
 


Also, next time you post code, please use the Code Tags.

#142274 18/02/06 08:44 AM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2006
Posts: 31
and wy dont the text when a user last enterd work?


if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com
#142275 18/02/06 09:49 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The only time that I can see that not working, as coded, is when the person enters for the first time after the script has been started. If you're not getting a reply when someone enters for the 2nd, 3rd, 4th, etc. time, look at the status window and see if there's an error message. If there is, post the message as a reply here and I'll take a better look at it.

#142276 18/02/06 10:37 AM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2006
Posts: 31
there is no error i thin it is this part of the script that wont work


.describe # Notes that your last visit was at $asctime($hget(Join.,$calc($hget(Join,$nick) - 1)),hh:nn:ss tt) on $& $asctime($hget(Join.,$calc($hget(Join,$nick) - 1)),dd/mm/yyyy)


if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com

Link Copied to Clipboard