mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
I'm sure I have seen this question before, but I cant find it anywhere on the forums.

When I connect, I have this on Connect script.
Part of this script is the /mode $me +ix thing.
It hides my host mask.

But at the moment, the script continues to run, even if the mask is not yet hidden. Does anyone know how to halt the execution of the script, till the host mask is hidden?

Thanks a lot!

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
raw 396:[color:red]match text[/color]:{
  ;commands to execute once your hostmask is 'hidden'
}


Match text being the message given that indicates your host was succesfully changed. For example on the Quakenet network, the message is something like this:

*.users.quakenet.org is now your hidden host

Where * is the person's username.

So, using that as an example I would use the following:

Code:
raw 396:* is now your hidden host:{
  join #MyChannel
}

Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Hmmm, I tried this, and it returns:
396:xxx.users.netgamers.org Unknown command

My script looks like this now:

Code:
on *:CONNECT:{
  if $network == NetGamers {
    msg P@cservice.netgamers.org login username password
    nick xxx
    mode $me +ix
    raw 396:xxx.users.netgamers.org is now your hidden host:{
      window -k0 @EventsLog
      log on @EventsLog -f EventsLog.log
      echo @EventsLog -
      echo -t @EventsLog Network: $network
      echo -t @EventsLog Server: $server
      echo @EventsLog -
      join #channel1
      join #channel2
      join #channel3
      timerkeepalive 0 60 keepalive
    }
  }
}


Any idea's?
Isn't there a way to do it with a timer?

Thanks for the help!

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
The raw is an event by itself. It should not be placed within another event like you have.

Yes, it's possible to do with a timer, however I figured it's better to execute the commands as soon as possible rather than wait for no real reason.

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
on *:CONNECT:{
  if $network == NetGamers {
    [color:blue]; Prefixing this login command with . will hide it from being shown in any window[/color]
    .msg P@cservice.netgamers.org login username password
    nick xxx
    mode $me +ix
  }
}

raw 396:xxx.users.netgamers.org is now your hidden host:{
  window -k0 @EventsLog
  log on @EventsLog -f EventsLog.log
  echo @EventsLog -
  echo -t @EventsLog Network: $network
  echo -t @EventsLog Server: $server
  echo @EventsLog -
  [color:blue]; Your 3 joins can be combined into 1[/color]
  join #channel1, #channel2, #channel3
  [color:blue]; Similar to login, you can hide the timer message from being shown by prefixing it with a .[/color]
  [color:blue]; It's really my own preference but you can remove the . if you wish to keep seeing the message[/color]
  .timerkeepalive 0 60 .keepalive
}

Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Awesome, works like a charm smile

Thanks a lot!


Link Copied to Clipboard