mIRC Home    About    Download    Register    News    Help

Print Thread
#19871 17/04/03 09:59 PM
Joined: Mar 2003
Posts: 29
B
b3th3rS Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 29
I just now noticed that when I go into 45 mins idle in channels/servers.... so When I was idling for over 5 hours and i noticed my auto-away sets off every 45 mins, How do i stop that??

heres the code

On *:Connect: {
.timer(autoaway) -io 0 10 scon -at1 awaychk
}
alias awaychk {
If ($idle > 2700) {
nick %away.nick
ns identify %away.system.nick.pass
ame is away, auto-away after 45 minutes
.timer(autoaway) off
}
}

Thanks for the help.

#19872 17/04/03 10:03 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
alias awaychk { 
  If ($idle > 2700) && ( $away == $null ) {
    nick %away.nick
    ns identify %away.system.nick.pass
    ame is away, auto-away after 45 minutes
    .timer(autoaway) off
  }
}

...I think.

#19873 24/04/03 04:14 AM
Joined: Mar 2003
Posts: 29
B
b3th3rS Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 29
Ive Tried that and it doesnt work..

#19874 24/04/03 10:26 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Since it doesn't set /away (on the server), you need to check your nick.
Code:
alias awaychk {
  If $idle > 2700 && $me != %away.nick {
    nick %away.nick
    ns identify %away.system.nick.pass
    ame is away, auto-away after 45 minutes
  }
}

Alternatively, set away.
Code:
alias awaychk {
  If $idle > 2700 && !$away {
    nick %away.nick
    ns identify %away.system.nick.pass
    ame is away, auto-away after 45 minutes
    away auto-away after 45 minutes
  }
}

Collective:
$away returns either $true or $false

#19875 24/04/03 10:34 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Quote:
$away returns either $true or $false

Oops, thx crazy

#19876 16/01/04 03:12 AM
Joined: Jan 2004
Posts: 5
B
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: Jan 2004
Posts: 5
If I may, I have a few questions.

Can anyone use this code? How would you load it into mIRC?

I've seen many scripts advertised here and there but I don't much about them and how compatable they are with mIRC. I also don't even really know how to properly load them into mIRC or if they need to be loaded everytime mIRC starts up.

I've seen the various instructions say: /load -rs scriptname.mrc but, that does not always work, at least with some scripts. I've also read mention of 'add-on' scripts. I take it that these are just tagged onto an existing script? That's a little confusing. I woould think that combining scripts might have unwanted effects.

I've tried to find some Forums/Threads/Posts that go into the basics of how scripts works and how to actually use them. Most of the scripts come with very little info on how to install them let alone how to use them. I guess scripts are meant only for those that can write them.

Can someone point me in the right direction?

This journey started with me looking to have a function for mIRC that would change my nick to indicate I was away after a certain amount of inactivity on my part. And would change back to my 'regular' nick once it detected activity from me. Some may say that it is "S-T-U-P-I-D" of me to want to do something like that, but alas, I do. So, I appreciate any help you can give me either in the form of telling me whats what or pointing me in the direction of where I can find that. Thanks. smile

#19877 16/01/04 10:43 PM
Joined: Dec 2002
Posts: 3,127
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
I'd suggest you read the replies in your duplicate post, altho i realize in this case you could be asking the permission of those who posted code in this thread. When code is posted on an open forum, or made public in any way, it has to be assumed that others will make use of it.


ParaBrat @#mIRCAide DALnet

Link Copied to Clipboard