mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2004
Posts: 17
_
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2004
Posts: 17
Hello

This away-snippet is supposed to change my nick (Patrik) to my away-nick (Pataway) after 1200 seconds of idling and when I get back to my keyboard and types something in the channel then the script should automatically change my nick back to Patrik, but the script I´m currently using doesnt work that way, in fact it doesnt work at all! the script shall also set an away-message when my script changes my nick to awaynick(Pataway) and when I get back remove the away-message automatically..I hope this makes any sence..heh
Here´s the snippet that didnt work:

on *:connect:.timeridlenick 0 500 changenick

alias changenick {
if ($idle > 1200 && $me != Pataway) { ; if idletime is more than 1200s AND you're not away
nick Pataway
away 4[12AFK4]3 I´m currently not here $+ $chr(91) $time $+ $chr(93) 12G41M1T1+1 timezone
}
else { ; if idletime is under 1200s AND you are away
nick Patrik
away
}
}

I would be very happy if someone could help me ot with this, plz test the script you post just to be sure that its working.

Regards/Pat


*!*@help.me.if.you.can
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:input:#:{ 
  if ($me == Pataway) { changenick }
  .timeridlenick 1 1200 changenick 
}
alias changenick { 
  if ($idle > 1200) && ($me != Pataway) {   
    nick Pataway 
    away 4[12AFK4]3 I´m currently not here $+ $chr(91) $time $+ $chr(93) 12G41M1T1+1 timezone 
  } 
  else { 
    nick Patrik 
    away 
  } 
}


New username: hixxy
Joined: Sep 2004
Posts: 17
_
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2004
Posts: 17
It did not work as expected :-(

My awaynick is Pataway and my regular nick is Patrik
plz can u fix it?


*!*@help.me.if.you.can

Link Copied to Clipboard