mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
D
DaGuyFromTv
DaGuyFromTv
D
BTW, how do you get the code in a box like you did?

D
DaGuyFromTv
DaGuyFromTv
D
I'm not sure how you to add a mod to the list?

D
DaGuyFromTv
DaGuyFromTv
D
Also, the

if ($2 == $null) {
msg $chan /me >: Which user you would like to strike with the ban hammer.
}

part does not seem to work...

#253759 02/07/15 05:53 AM
Joined: May 2015
Posts: 245
S
Fjord artisan
Offline
Fjord artisan
S
Joined: May 2015
Posts: 245
Originally Posted By: DaGuyFromTv
BTW, how do you get the code in a box like you did?

"code" and "/code" in [].

#253760 02/07/15 05:54 AM
Joined: May 2015
Posts: 245
S
Fjord artisan
Offline
Fjord artisan
S
Joined: May 2015
Posts: 245
Originally Posted By: DaGuyFromTv
Also, the

if ($2 == $null) {
msg $chan /me >: Which user you would like to strike with the ban hammer.
}

part does not seem to work...

Not sure, but the reason could be in
Code:
:!banhammer *
try change it to
Code:
:!banhammer*
and check again.

#253761 02/07/15 05:55 AM
Joined: May 2015
Posts: 245
S
Fjord artisan
Offline
Fjord artisan
S
Joined: May 2015
Posts: 245
Originally Posted By: DaGuyFromTv
I'm not sure how you to add a mod to the list?

Type "/addmod some_mod_nick" in your bot`s editbox.

#253762 02/07/15 06:25 AM
N
n3wb
n3wb
N
GREAT one thing can we add a code to it where a ban sound triggers when someone is banned from the channel? That will make it even cooler!

#253763 02/07/15 09:07 AM
N
n3wb
n3wb
N
So I created a sound for the ban hammer but I can only get it to play when I type it in

on *:text: The ban hammer *:#:{
splay -w C:\Users\Solo Seven Records\AppData\Roaming\mIRC\sounds\BANNED.wav
}


The bot replies with the same stuff but the issue is that the sound does not play! So i am wondering how can i get the sound to play only when the bot states the text and not the users!

#253764 02/07/15 06:35 PM
D
DaGuyFromTv
DaGuyFromTv
D
The sound thing would be nice, but the thing is I'm hosting the bot for my friend so if it was to play on his stream, he would have to download it.

#253767 04/07/15 04:14 PM
Joined: Feb 2015
Posts: 241
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 241
hey! did it work with the correction? smile

D
DaGuyFromTv
DaGuyFromTv
D
Sort of, the could you please specify who you want to strike thing doesn't really work? It asks me the question and then says <no one> has been banned.

#253831 08/07/15 09:14 PM
Joined: Feb 2015
Posts: 241
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 241
try this one i think it will work
Code:
on *:text:!banhammer *:#brozerian: { 
var %user = $nick
if ($istok(%mods,$nick,32)) {
if ($2 == $null) {
msg $chan /me >: Which user you would like to strike with the ban hammer.
}
elseif ($2 != $null) {
if ($2 isop #) {
msg $chan /me >: You can't ban Ops in $chan
}
elseif ($2 !isop #) {
msg $chan /me >: The ban hammer has striked on $2 .
msg $chan /ban $2
}
}
}
elseif (!$istok(%mods,$nick,32)) {
msg $chan You are not in my mods list.
}
}

alias addmod { if (!$1) { echo -at Error: Please input a nick to add in mods list } | elseif ($1) { set %mods $addtok(%mods,$1,32) | echo -at $1 Added to Mods List } | }

Page 2 of 2 1 2

Link Copied to Clipboard