mIRC Home    About    Download    Register    News    Help

Print Thread
#74019 06/03/04 01:31 PM
Joined: Aug 2003
Posts: 6
N
NlCe Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Aug 2003
Posts: 6
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


[email]H@ve[/email] F[_]N! \o
#74020 06/03/04 01:40 PM
Joined: Dec 2002
Posts: 349
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 349
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
Joined: Feb 2003
Posts: 67
N
Naz Offline
Babel fish
Offline
Babel fish
N
Joined: Feb 2003
Posts: 67
You can hide the timer by using a period in front of the timer command in your script. i.e: .timer 1 1 dostuff


Those who live by the sword get shot by those who don't.
#74022 06/03/04 09:09 PM
Joined: Aug 2003
Posts: 6
N
NlCe Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Aug 2003
Posts: 6
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. :\


[email]H@ve[/email] F[_]N! \o
#74023 06/03/04 10:00 PM
Joined: Aug 2003
Posts: 18
Z
z0r Offline
Pikka bird
Offline
Pikka bird
Z
Joined: Aug 2003
Posts: 18
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
Joined: Aug 2003
Posts: 6
N
NlCe Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Aug 2003
Posts: 6
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 ?


[email]H@ve[/email] F[_]N! \o

Link Copied to Clipboard