mIRC Home    About    Download    Register    News    Help

Print Thread
Assistance required... Reply within! #175687 26/04/07 11:29 PM
Joined: Oct 2006
Posts: 82
B
BritishGent Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
Hi there good folks of mIRC smile

I have a small issue I need help resolving.....

I have this bot i use to control my chat room and upto a few days ago i could remotely change the nick by typing:
!nick <new nick>
But for some reason I can not see it now does not seem to work frown
I have enclosed the script that worked, I add that this has not been altered at any time since it worked......
Code:
on 500:Text:nick*:?: {
if ($2 == $null) { .msg $nick Command incomplete. Syntax: /msg $me nick <nickname to use>. | halt }
if ($2 !== $null) { 
  if ($2 === $me) { .msg $nick I already have that nick. | halt }
  else { //nick $2 | .msg $nick Nickname change attempt completed. }
}
}

the 500 is the number assigned to the bot owner just incase anyone is unsure.
Any help on this matter would be appreciated.

Thank you in advance smile


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Re: Assistance required... Reply within! [Re: BritishGent] #175690 26/04/07 11:57 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Well, if you're doing the command, you need to be 500+. Also, the script is set to use:

nick newnick

Not:

!nick newnick

And it will only work in PM.


Invision Support
#Invision on irc.irchighway.net
Re: Assistance required... Reply within! [Re: Riamus2] #175720 27/04/07 12:40 PM
Joined: Mar 2007
Posts: 139
S
Solo1 Offline
Vogon poet
Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
I cant see how that script ever worked. maybe use the following.

Code:
on 500:text:!nick*:?: {
  if (!$2) || ($2 === $me) { .msg $nick $iif($ifmatch == $me,i already have that nick,Syntax: /msg $me nick <nickname to use>.) | return }
  nick $2 | .msg $nick Nick change completed.
}

Re: Assistance required... Reply within! [Re: Solo1] #175791 28/04/07 03:02 PM
Joined: Oct 2006
Posts: 82
B
BritishGent Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
Neither of those responses seemed to cure the problem but thanks guy's i'll keep on it as i know it worked up till my last re-install so it has to be something i am missing.

Last edited by BritishGent; 28/04/07 03:03 PM.

Never ASSUME!!!

As it often makes and ASS out of U and ME!!