mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2005
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Dec 2005
Posts: 8
Hi, i wanna make a command in my bot which will change the bot's nick on a certain command. It doesnt work though. Here it is:

on *:TEXT:*.nick *:#: { if ($nick isop #Hazemaker) { /nick $2 }
ELSE { //notice $nick 4This command is a command that only can be used by a Botmaster/owner --> Acces denied }
}

Can you see what's wrong?

Joined: Dec 2005
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Dec 2005
Posts: 8
on *:TEXT:.nick *:#: { if ($nick isop #Hazemaker) { /nick $2 }
ELSE { //notice $nick 4This command is a command that only can be used by a Botmaster/owner --> Acces denied }
}

Thats the script... See anything thats wrong?

Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
It looks good to me. Should work as you want. What problems are you having with it?

Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
im willing to bet its a bracketing mistake

Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
i came up with this from your code
Code:
on *:TEXT:.nick *:#:{
  if ($nick isop #Hazemaker) {
    nick $2 
  }
  else {
    notice $nick 4This command is a command that only can be used by a Botmaster/owner --> Acces denied  
  }
}

it works fine for me
hope this helps
theres still a few potential holes, nothing earth shattering.
im sure you'll find them

Last edited by NeUtRoN_StaR; 21/12/05 11:14 PM.
Joined: Jul 2004
Posts: 59
S
Babel fish
Offline
Babel fish
S
Joined: Jul 2004
Posts: 59
Code:
on *:TEXT:.nick *:[color:red]#Hazemaker[/color]: { 
  if ($nick isop #) { 
    nick $2 
  }
  else { 
    notice $nick 04 $+ This command is a command that only can be used by a Botmaster/owner --> Access denied $+ 
  }
}


Worked on my channel.



Joined: Apr 2005
Posts: 64
V
Babel fish
Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
I'm using a simple version for changing the botnick.

Code:
 on master:text:-nick *:#: {
  nick $2
  notice $nick Done.
}
 


You can change "master" in your own userlevel, offcourse smile.
It's tested more then once, and it will work.


Link Copied to Clipboard