mIRC Home    About    Download    Register    News    Help

Print Thread
#74019 06/03/04 01:31 PM
N
NlCe
NlCe
N
1. Is there a possibility to find out from within a script, if a nick is already given? =o
For instance:
Code:
  
on *:connect: {
 while (NICK is ALREADY given) {
  var %mynick = $read(script\txt\randomnicks.txt)
 }
 nick %mynick
}


2. If i use a timer in my script, mIRC usually shows me the text
Code:
* Timer 1 activated
* Timer 1 halted
in my active window.

How can i make it shown in the Status Window? O_o

I had it once shown there, but really don't know why. o_O

#74020 06/03/04 01:40 PM
Joined: Dec 2002
Posts: 346
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 346
For on CONNECT to trigger your nick would already have been 'given'; mIRC won't allow you to connect to a server without first specifying your nickname. Maybe you're looking for on LOGON?

Not sure about the timers, is that with the same mIRC version as before?

Hope that helps. smile

#74021 06/03/04 07:23 PM
N
Naz
Naz
N
You can hide the timer by using a period in front of the timer command in your script. i.e: .timer 1 1 dostuff

#74022 06/03/04 09:09 PM
N
NlCe
NlCe
N
Thnx, it works. \o/

--

The on connect was just an example. The question was meant generally. smirk

I just want to know how to check if a nickname is already given from within the script. :\

#74023 06/03/04 10:00 PM
Z
z0r
z0r
Z
Code:
 
; BEFORE the logon
on ^*:logon: {
  ; Read a nickname from randomnicks.txt
  var %nick = $read(script\txt\randomnicks.txt)
  if ($server($server).pass) {
    ; If there is a password specified, send it.
    pass $server($server).pass
  }
  ; Change the nickname [from null]
  nick %nick
  ; 'Register' with the server.
  user $gettok($emailaddr,1,64) " $+ $gettok($emailaddr,2,64) $+ " " $+ $server $+ " : $+ $fullname
  halt
}

; 433 means 'nick in use'
raw 433:*: {
  ; Change nick to a nickname from randomnicks.txt
  nick $read(script\txt\randomnicks.txt)
}
 

#74024 07/03/04 12:26 PM
N
NlCe
NlCe
N
Works so far, but why do i need that:
Code:
  if ($server($server).pass) {
    ; If there is a password specified, send it.
    pass $server($server).pass  }
blush ?


Link Copied to Clipboard