mIRC Home    About    Download    Register    News    Help

Print Thread
#25377 21/05/03 10:42 PM
C
CRAZYGUY
CRAZYGUY
C
Ok, I have been working on a ban command for my bot but it seems not to work heres what i have:

on *:text:-ban *:#:{
set %nick $2
mode # +b $address(%nick,3)
unset %nick
}

#25378 21/05/03 10:46 PM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
On @*:TEXT:-ban*:#:{ mode $chan +b $address($2,3) }
Syntax: /msg #Channel -ban <Nickname>

#25379 21/05/03 11:01 PM
C
CRAZYGUY
CRAZYGUY
C
Hmm well that seems to not work it says:

-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-

#25380 21/05/03 11:03 PM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
Works fine for me.

#25381 21/05/03 11:12 PM
C
CRAZYGUY
CRAZYGUY
C
it does not for me thats all it says

#25382 21/05/03 11:23 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
It works for me too, you sure you haven't left a previous version of the script in you remotes?

#25383 22/05/03 12:21 AM
C
CRAZYGUY
CRAZYGUY
C
Ya iam sure its a clean script

#25384 22/05/03 02:10 AM
J
Julie2
Julie2
J
from that error msg, it sounds like you may have accidentally created an alias named mode. try typing in mirc /alias mode

if it finds one and deletes it, then try your script again

#25385 22/05/03 02:43 AM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
"//echo -a $isalias(mode)" Would be better since typing "/alias mode" would simply overwrite the whole thing.

#25386 22/05/03 10:25 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
b and B are two diff modes. Make sure you typed a lowercase b for ban, rather than an uppercase when transferring the script that coldfusi0n made

#25387 22/05/03 10:32 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Most servers capitalise the command in the 421 (unknown command) raw.


Link Copied to Clipboard