Here is the latest version of my script that is fully working and does support muliple servers with the same or different nicks and does not alter your nick in the OPTIONS menu.
I have also posted the responses for each server that I have tested this script on at the same time (3 servers simultaneously).
Please remember to show proper respect to those that have helped me with this script by listing their nicks (and mine) in the script if you use it in a public script.
Please post your changes in this thread so that others may know different ways to do the same thing and so they may include your nicks in the script also.
I am not saying that this is the best way to write this type of script, just the way that I decided to do it (without TIMERS or ALIASES)..
================================================================================
on 1:PING: {
scon -a echo CID: $!cid
scon -a echo Network: $!network
scon -a echo Nick: $!me
scon -a echo Usermodes: $!usermode
scon -a echo Idle Time: $!idle
scon -a echo Away: $!away
scon -a if (( $!away == $false ) && ( $!idle > 600 )) { tnick $!me $!+ {Auto-Away} }
scon -a if (( $!away == $false ) && ( $!idle > 600 )) { away 2,2-8,2Auto-Away After $!idle Seconds2,2- }
scon -a if (( $!away == $true ) && ( $!idle < 600 )) { away }
scon -a if (( $!away == $true ) && ( $!idle < 600 )) { nick $!remove( $!me , {Auto-Away} ) }
scon -a echo -
/halt
}
================================================================================
CID: 1
Network: DALnet
Nick: TwelveDays
Usermodes: +i
Idle Time: 617
Away: $false
-
* Your nick is now TwelveDays{Auto-Away}
-
You have been marked as being away
-
TwelveDays{Auto-Away} is ~TwelveDay@64.63.213.18 * Cosmos32
TwelveDays{Auto-Away} on @#DSS-Scripting-Class @#Cosmos32
TwelveDays{Auto-Away} using broadway.ny.us.dal.net 42nd Street
TwelveDays{Auto-Away} is away: -Auto-Away After 617 Seconds-
TwelveDays{Auto-Away} has been idle 11mins 37secs, signed on Sat Jan 29 14:35:34
TwelveDays{Auto-Away} End of /WHOIS list.
-
CID: 1
Network: DALnet
Nick: TwelveDays{Auto-Away}
Usermodes: +i
Idle Time: 101
Away: $true
-
You are no longer marked as being away
-
* Your nick is now TwelveDays
-
TwelveDays is ~TwelveDay@64.63.213.18 * Cosmos32
TwelveDays on @#DSS-Scripting-Class @#Cosmos32
TwelveDays using broadway.ny.us.dal.net 42nd Street
TwelveDays has been idle 22secs, signed on Sat Jan 29 14:35:34
TwelveDays End of /WHOIS list.
================================================================================
CID: 2
Network: UICN
Nick: Cosmos32
Usermodes: +ixr
Idle Time: 655
Away: $false
-
* Cosmos32 sets mode: -r
-
* Your nick is now Cosmos32{Auto-Away}
-
You have been marked as being away
-
Cosmos32{Auto-Away} is [email]TwelveDays@2e60f4af.1e624c7d.36cd2766.28a85a1bX[/email] * Cosmos32
Cosmos32{Auto-Away} is using modes +ix +
Cosmos32{Auto-Away} real hostname 64.63.213.18 64.63.213.18
Cosmos32{Auto-Away} on #dssfordummies @#TwelveDays @#Twikki
Cosmos32{Auto-Away} using swap.uicn.net uicn beer server
Cosmos32{Auto-Away} is away: -Auto-Away After 655 Seconds-
Cosmos32{Auto-Away} has been idle 11mins 56secs, signed on Sat Jan 29 14:47:28
Cosmos32{Auto-Away} End of /WHOIS list.
-
CID: 2
Network: UICN
Nick: Cosmos32{Auto-Away}
Usermodes: +ix
Idle Time: 95
Away: $true
-
You are no longer marked as being away
-
* Your nick is now Cosmos32
-
-NickServ- This nickname is registered and protected. If it is your
-
-NickServ- nick, type /msg NickServ IDENTIFY password. Otherwise,
-
-NickServ- please choose a different nick.
-
* Cosmos32 sets mode: +r
-
-NickServ- Password accepted - you are now recognized.
-
Cosmos32 is [email]TwelveDays@2e60f4af.1e624c7d.36cd2766.28a85a1bX[/email] * Cosmos32
Cosmos32 has identified for this nick
Cosmos32 is using modes +irx +
Cosmos32 real hostname 64.63.213.18 64.63.213.18
Cosmos32 on #dssfordummies @#TwelveDays @#Twikki
Cosmos32 using swap.uicn.net uicn beer server
Cosmos32 has been idle 42secs, signed on Sat Jan 29 14:47:28
Cosmos32 End of /WHOIS list.
================================================================================
CID: 3
Network: Elite-Irc
Nick: Twikki
Usermodes: +xi
Idle Time: 629
Away: $false
-
* Your nick is now Twikki{Auto-Away}
-
You have been marked as being away
-
Twikki{Auto-Away} is ~TwelveDay@Elite-2780EEAA.fatl1.hawkcommunications.com * Cosmos32
Twikki{Auto-Away} is connecting from *@client18.fatl1.hawkcommunications.com 64.63.213.18
Twikki{Auto-Away} on @#Buck-Rogers @#Testing-My-Mirc-Scripts
Twikki{Auto-Away} using HellBoy.Elite-Irc.Net investigator of the paranormal
Twikki{Auto-Away} is away: -Auto-Away After 629 Seconds-
Twikki{Auto-Away} has been idle 12mins 3secs, signed on Sat Jan 29 14:36:12
Twikki{Auto-Away} End of /WHOIS list.
-
CID: 3
Network: Elite-Irc
Nick: Twikki{Auto-Away}
Usermodes: +xi
Idle Time: 83
Away: $true
-
You are no longer marked as being away
-
* Your nick is now Twikki
-
Twikki is ~TwelveDay@Elite-2780EEAA.fatl1.hawkcommunications.com * Cosmos32
Twikki is connecting from *@client18.fatl1.hawkcommunications.com 64.63.213.18
Twikki on @#Buck-Rogers @#Testing-My-Mirc-Scripts
Twikki using HellBoy.Elite-Irc.Net investigator of the paranormal
Twikki has been idle 39secs, signed on Sat Jan 29 14:36:12
Twikki End of /WHOIS list.
================================================================================
Thanks