mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Jun 2015
Posts: 13
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2015
Posts: 13
BTW, how do you get the code in a box like you did?


I'm a noob, please do not judge and any help is greatly appreciated.
Joined: Jun 2015
Posts: 13
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2015
Posts: 13
I'm not sure how you to add a mod to the list?


I'm a noob, please do not judge and any help is greatly appreciated.
Joined: Jun 2015
Posts: 13
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2015
Posts: 13
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...


I'm a noob, please do not judge and any help is greatly appreciated.
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
Originally Posted By: DaGuyFromTv
BTW, how do you get the code in a box like you did?

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


Dont give a fish - teach to fish!
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
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.


Dont give a fish - teach to fish!
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
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.


Dont give a fish - teach to fish!
Joined: Jun 2015
Posts: 9
N
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
N
Joined: Jun 2015
Posts: 9
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!

Joined: Jun 2015
Posts: 9
N
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
N
Joined: Jun 2015
Posts: 9
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!

Joined: Jun 2015
Posts: 13
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2015
Posts: 13
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.


I'm a noob, please do not judge and any help is greatly appreciated.
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
hey! did it work with the correction? smile

Joined: Jun 2015
Posts: 13
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2015
Posts: 13
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.


I'm a noob, please do not judge and any help is greatly appreciated.
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
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