mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 91
T
truguce Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2005
Posts: 91
Can't figure this one out. Trying to get script to notice if my nick is in use and if so ghost it. The problem is i can't get the script to reconize the notice. Please help
Code:
 
on *:snotice:error $+ $chr(58) this nick is already in use*:*: {
  /ns ghost truguce PW
  .timernick 1 30 /nick TruGuce
}
on raw:433 $me TruGuce :Nickname is already in use. {
  /ns ghost truguce PW
  .timernick 1 10 /nick TruGuce
} 
 

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
On some networks this is recognized as a NOTICE, rather than a SNOTICE. Having a ON NOTICE event with the same matchtext as your current ON SNOTICE event will resolve this problem. Personally I think it seems wierd that some networks have it as a regular notice, and some as a snotice, but experimentation and usage of multiple networks has taught me differently.

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Your raw event is incorrect. The correct format is:

raw ###:*matchtext*:commands


Quote:

Raw 433 - Nickname in use
-------------------------
Format : 433 <nickname> :Nickname is already in use.
Example: 433 God :Nickname is already in use.
Network: All

Parameters
----------
<nickname> The nickname that was attempted.

Info
----
Returned when trying to change your nickname to a nickname that someone else is using.

Notes
-----
Note that nicknames are case insensitive. Also, [ and {, ] and }, \ and |, - and _, and ` and ^ are pairs of characters that are considered the same for nicknames.

This means that if a user named [user] exists, you cannot use the nick {user}.

Returned From
-------------
NICK



Try something like this:

Code:
raw 433:*:{
  if (($1 != truguce) || (%ghoststop &gt; 3)) return
  inc -u10 %ghoststop 1
  .msg nickserv ghost truguce PW  
  .timernick 1 10 /nick TruGuce
}


(untested)

-genius_at_work


Link Copied to Clipboard