mIRC Home    About    Download    Register    News    Help

Print Thread
#35682 11/07/03 08:11 AM
Joined: Jul 2003
Posts: 21
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 21
the user can say "!test" everytime.
what is wrong?

on 1:TEXT:*:#: {
if (!%flood. $+ $nick) {
if ($1 == !test) { /msg test message | set -u30 %flood. $+ $nick 1 }
}
}

#35683 11/07/03 08:12 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
your use of "%flood. $+ $nick"
the $+ %nick isn't evaluated. you need either eval or []'s

try %flood. [ $+ [ $nick ] ]


-KingTomato
#35684 11/07/03 08:26 AM
Joined: Jul 2003
Posts: 21
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 21
what is the error?
I make something still wrong!


on 1:TEXT:*:#: {
if (!%flood. [ $+ [ $nick ] ] {
if ($1 == !test) { /msg test message | set -u30 %flood. [ $+ [ $nick ] ]
}
}
}

#35685 11/07/03 08:34 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
on 1:TEXT:*:#: {
if (!%flood. [ $+ [ $nick ] ][color:red])[/color] { 
if ($1 == !test) { /msg test message | set -u30 %flood. [ $+ [ $nick ] ] }
}
} 


-KingTomato
#35686 11/07/03 08:46 AM
Joined: Jul 2003
Posts: 21
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 21
thanx, but the flood stop is not ok!
the script say it ever further without the flood protect.

#35687 11/07/03 09:09 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
on 1:TEXT:*:#: {
  if (!%flood. [ $+ [ $nick ] ]) { 
    if ($1 == !test) /msg test message
    else if ($1 == !test2) /msg test message again
    /inc -u30 %flood. [ $+ [ $nick ] ]
  }
} 


-KingTomato
#35688 11/07/03 09:26 AM
Joined: Jul 2003
Posts: 21
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 21
thanx


Link Copied to Clipboard