mIRC Home    About    Download    Register    News    Help

Print Thread
#100562 13/10/04 10:35 PM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
how do you make it so if someone says
hello reply hello $nick $+ !
then the bot will add this to a script and it would work
if ($$1 == hello) { msg $chan hello $nick $+ ! }

#100563 13/10/04 11:14 PM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
i got another one to
i want to have it so i can type
!akick <nick> <address to ban> <reason>
i have the seting the variable done just not the kicking part
i have
on *:join:#name: {
if (%akick [ $+ [ $nick ] ]) {
mode +b $$3
/kick $chan $$1 $$4- }
}

#100564 13/10/04 11:46 PM
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
On *:TEXT:*:#Name: {
If ($1 == Hello) { msg # Hello $Nick $+ ! }
If ($Ial($Nick,1).host == $Ial($Me,1).host) {
If ($1 == !Akick) {
If (!$2) { .notice $Nick Insufficient Paramters. }
Else {
set %AKick [ $+ [ $2 ] ] $iif($3,$3-,AKicked.)
.notice $Nick $2 has been added to the akick list for the reason: $iif($3,$3-,AKicked.)
var %a = $Ialchan($2,#,0)
While (%a) {
If ($Ialchan($2,#,%a).host != $Ial($Me,1).host) {
mode # +b $2
kick # $Ialchan($2,#,%a).nick $3-
}
dec %a
}
}
}
On *:JOIN:#Name: {
var %a = $Var(%AKick*,0)
While (%a) {
If ($Ialchan($Right($Var(%AKick*,%a),-6),#,1).nick) == $Nick) {
mode # +b $Var(%AKick*,%a)
kick # $Nick $Var(%AKick*,%a).value
}
dec %a
}
}

Try it out, see if it works.


- Relinsquish
#100565 13/10/04 11:51 PM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
The first one you make like this:
Code:
on *:TEXT:hello:#:{
/msg $chan hello $nick
}


The next one you make like this:
Code:
on *:TEXT:!akick*:#:{
if ($nick == $me) {
.ban $chan [color:red]$2[/color]
.kick $chan [color:red]$2[/color] [color:blue]$3-[/color]
}
}


$2 Is the nick you want to ban/kick and $3- is the reason like this: !akick Joey Out you go


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#100566 13/10/04 11:56 PM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
maybie i should clearify myslef i got a script that has code to do this:
on *:text:*:#:
if ($nick == nick) || ($nick == othernick) {
if ($$1 == !akick) {
set %akick $+ $$2 $$2 $$3 $$4-
msg $chan $$2 is now in the akick list by $nick for $$4- }
if ($$1 == !rakick) {
msg $chan $$2 is now removed from the akick list.
unset %akick $+ $$2 $$2 $$3 $$4- }
}

on *:join:#channel: {
if (%akick [ $+ [ $nick ] ]) {
<i dont know what to put here to make it kick that nick when he/she joins the channel>
}

#100567 13/10/04 11:58 PM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
:S i already know how to do that but i want to make it so it adds it to a script when someone says
hello reply hi $nick $+ !
so you can keep doing that and it just adds it to a script

#100568 14/10/04 09:49 PM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline OP
Fjord artisan
OP Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
I got Akick script working but im still not sure about the
text script


Link Copied to Clipboard